CN107220183A - Method of testing and system that a kind of server B MC event logs are set - Google Patents

Method of testing and system that a kind of server B MC event logs are set Download PDF

Info

Publication number
CN107220183A
CN107220183A CN201710515064.9A CN201710515064A CN107220183A CN 107220183 A CN107220183 A CN 107220183A CN 201710515064 A CN201710515064 A CN 201710515064A CN 107220183 A CN107220183 A CN 107220183A
Authority
CN
China
Prior art keywords
test
daily record
strategy
module
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710515064.9A
Other languages
Chinese (zh)
Other versions
CN107220183B (en
Inventor
胥志泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710515064.9A priority Critical patent/CN107220183B/en
Publication of CN107220183A publication Critical patent/CN107220183A/en
Application granted granted Critical
Publication of CN107220183B publication Critical patent/CN107220183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses the method for testing and system that a kind of server B MC event logs are set, to call web the step of methods described, browsing device net page is opened;The order of increase daily record is performed, the daily record strategy of setting is tested;Output test result, generation test log.The system includes test starting module, test module and the result output module being sequentially connected.Compared with prior art, the present invention carries out test that server B MC event logs set to be automatically performed, and improves operating efficiency, and test process produces log log files, and with subsequently checking and analyzing to test process and result.

Description

Method of testing and system that a kind of server B MC event logs are set
Technical field
The present invention relates to BMC technical field of measurement and test, the test side that specifically a kind of server B MC event logs are set Method and system.
Background technology
Event log test is used as server B MC (Baseboard Management Controller, substrate management control Device processed) basic test in test is essential in BMC test process one.The test of BMC event logs needs a large amount of Daily record is added, and daily record quantity is judged.Traditional method of testing is manually operated, and test takes time and effort, to whole Test process and result are not recorded, and to follow-up checking, analysis is more inconvenient.
The content of the invention
To overcome the shortcomings of that above-mentioned prior art is present, it is an object of the invention to provide a kind of server B MC events day Method of testing and system that will is set, make test easier, automatical and efficient and are easy to follow-up analysis and check.
The technical solution adopted for the present invention to solve the technical problems is:The survey that a kind of server B MC event logs are set Method for testing, it is characterized in that:Comprise the following steps:
Web is called, browsing device net page is opened;
The order of increase daily record is performed, the daily record strategy of setting is tested;
Output test result, generation test log files.
Further, web is called using described in webdriver progress, opens the operation of browsing device net page.
Further, the daily record strategy includes Linear Strategy and cyclic policy, and the execution increases the order of daily record, right What the daily record strategy of setting was tested concretely comprises the following steps:
Judge whether the daily record strategy set is Linear Strategy;
If Linear Strategy, carry out Linear Strategy test and judged to test whether to lead to according to the testing standard of Linear Strategy Cross;
If not Linear Strategy, carry out cyclic policy test and judged to test whether according to the testing standard of cyclic policy Pass through.
Further, the detailed process of the progress Linear Strategy test is:
Call daily record increase order;
The bar number increased to according to daily record, carries out corresponding status display in log recording.
Further, the testing standard of the Linear Strategy is:
1) the last item daily record ID is 3639 in log files, and the status display in corresponding log recording is " daily record is full ";
2) when continuing to increase daily record bar number, log files will not change, and ID is 3639 to the maximum.
Further, it is described to be judged to test whether by being specially according to the testing standard of Linear Strategy:Make increased day Will bar number is more than 3639, and daily record ID maximum is read by web, if maximum is the shape in 3639, and log recording State is shown as " daily record is full ", then Linear Strategy test passes through, and otherwise tests and does not pass through.
Further, the detailed process of the progress cyclic policy test is:
Call daily record increase order;
According to the increase of daily record bar number, daily record ID and log file is continually changing.
Further, the testing standard of the cyclic policy is:
1) daily record ID sums are 3639;
2) when daily record bar number is more than 3639, then a new daily record can be sequentially produced, less one of ID loses display, ID Sum holding 3639 is constant.
Further, it is described to be judged to test whether by being specially according to the testing standard of cyclic policy:Make increased day Will bar number is more than 3639, and daily record ID maximum and minimum value are read by web, if daily record ID minimum value be not 1 and The difference of daily record ID maxima and minimas is 3938, then cyclic policy test passes through, and otherwise tests and does not pass through.
The test system that a kind of server B MC times daily record is set, using the method described in any one of claim 1 to 9, It is characterized in that:Including the test starting module, test module and result output module being sequentially connected;The test starting module is used In calling web, browsing device net page is opened;The test module is used for the order for performing increase daily record, to the daily record strategy of setting Tested;The result output module is used to output test result, generation test log files;
The test module also include daily record strategy judge module, Linear Strategy test module, standard strategy test module, Testing standard judge module and test result judge module;The output end of test result judge module connects Linear Strategy survey respectively The input of die trial block and standard strategy test module, Linear Strategy test module, standard strategy test module and testing standard The output end of judge module is all connected with the input of test result judge module, the output end connection knot of test result judge module Fruit output module output end.
The beneficial effects of the invention are as follows:
1st, by calling web automatically and increasing the order of daily record, the automatic test of BMC event log settings is carried out, this Process is automatically performed, and saves the time, improves operating efficiency.
2nd, it is convenient that subsequently BMC time daily record settings are checked to test process and test result by log file records And analysis.
3rd, different test process is used cyclic policy and Linear Strategy respectively, and is specified according to the property of daily record strategy Different testing standards, carries out analysis checking to test result respectively, makes test process become apparent from understanding, it is ensured that test result Reliability.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the system structure diagram of the present invention;
Fig. 3 is the structural representation of the system test modules of the present invention.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment, and its accompanying drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention Structure.In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relation between various embodiments are discussed and/or set.It should be noted that part illustrated in the accompanying drawings is not necessarily to scale Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
As shown in figure 1, the schematic flow sheet of the method for the present invention, comprises the following steps:
S1, calls web, opens browsing device net page;
S2, performs the order of increase daily record, the daily record strategy of setting is tested;
S3, outputs test result, generation test log files.
Web is called in wherein step S1, browsing device net page is opened and realizes that webdriver is by webdriver Web automated test tool, makes browser page manually operated be changed into being automatically brought into operation from traditional.
Daily record strategy includes performing the order of increase daily record in Linear Strategy and cyclic policy, step S2, to the day of setting What will strategy was tested concretely comprises the following steps:
S21, judges whether the daily record strategy set is Linear Strategy;
S22, if Linear Strategy, carries out the test of Linear Strategy and is judged to test according to the testing standard of Linear Strategy Whether pass through;
S23, if not Linear Strategy, carries out cyclic policy test and is judged to test according to the testing standard of cyclic policy Whether pass through.
The detailed process of progress Linear Strategy test is in step S22:
Call daily record increase order;
The bar number increased to according to daily record, carries out corresponding status display in log recording.
Bar number is wherein increased according to daily record, corresponding status display is carried out in log recording is specially:Daily record bar number When increasing to 2736, the prompting of display " SEL nearly expires-triggering " in log recording;Daily record bar number is between 2736~3639 When, the prompting of display " daily record will be full " in log recording;When increasing to 3639, the last item log recording shows " daily record Prompting completely ";When continuing to increase, the content of daily record quantity and log recording is not changing, i.e. the daily record of Linear Strategy Bar number is reached after 3639, and newly-increased daily record is not re-recorded.
The testing standard of Linear Strategy is:1) the last item daily record ID is 3639 in log files, in corresponding log recording Status display is " daily record is full ";2) when continuing to increase daily record bar number, log files will not change, and ID is 3639 to the maximum.It is full Standard is enough, then Linear Strategy is by test, and otherwise Linear Strategy test does not pass through.
Concretely comprising the following steps for cyclic policy test is carried out in step S23:
Call daily record increase order;
According to the increase of daily record bar number, daily record ID and log file is continually changing.
Under cyclic policy, it is continuously increased in daily record bar number, whole process that log recording is without prompting, when daily record bar number increases to Increase is may proceed to after 3639, daily record ID can continue to increase, but final bar number holding 3639 is constant, i.e., and cyclic policy can continue to remember The newly-increased daily record of record.
The testing standard of cyclic policy is:1) daily record ID sums are 3639;2), then can be suitable when daily record bar number is more than 3639 Sequence produces a new daily record, and less one of ID loses display, and ID sum holdings 3639 are constant.Above standard is met, then is circulated Strategy is not passed through by test, otherwise cyclic policy test.
Judge to test whether by being specially in step S22 and step S23:
S2-1, determines whether Linear Strategy;
S2-2, if Linear Strategy, makes increased daily record bar number be more than 3639, daily record ID is read most by web Big value, if it is " daily record is full " that maximum, which be status display in 3639, and log recording, then Linear Strategy is tested and passed through, Otherwise test and do not pass through;
S2-3, if not Linear Strategy, makes increased daily record bar number be more than 3639, reads daily record ID's by web Maximum and minimum value, if daily record ID minimum value be not 1 and daily record ID maxima and minimas difference be 3938, follow The test of ring strategy passes through, and otherwise tests and does not pass through.
Also include the test to function button before step S2, function button includes SR and save button.It is right The test process of function button is:Current strategies are first looked at, another strategy is then automatically selected, next selection resets Whether button, the strategy chosen by checking is that current strategies judge whether the function of SR can normal, if choose Strategy is current strategies, then SR function is normal, if what is chosen is another strategy, SR function occurs Exception.It is to the test process of save button:Current strategies are first looked at, are selected before system automatically selects another strategy Save button, checks whether the strategy chosen is current strategies, if the strategy chosen is current strategies, save button function Normally, if what is chosen is another strategy, save button function occurs in that exception.
Log files in step S3 are preserved in the form of txt, and log files are included to test process and test result Record.
As shown in Fig. 2 the system structure diagram of the present invention, system includes test starting module 1, the test being sequentially connected Module 2 and result output module 3.Wherein test starting module 1, for calling web, opens browsing device net page;Test module 2, Order for performing increase daily record, is tested the daily record strategy of setting;As a result output module 3, are tied for exporting test Really, generation test log files.
As shown in figure 3, test module 2 also includes daily record strategy judge module 21, Linear Strategy test module 22, standard plan Omit test module 23, testing standard judge module 24 and test result judge module 25.The output of test result judge module 21 Hold and connect Linear Strategy test module 22 and the ground input of standard strategy test module 23 respectively, Linear Strategy test module 22, Standard strategy test module 23 and the output end of testing standard judge module 24 are all connected with the input of test result judge module 25 End, the output end connection result output module 3 of test result judge module 25.
Wherein daily record strategy judge module, the daily record strategy for judging to set is Linear Strategy or cyclic policy;Line Property strategy test module, the test for carrying out Linear Strategy, and preserve test result;Cyclic policy test module, be used for into The test of row cyclic policy, and preserve test result;Testing standard memory module, the testing standard for storing daily record strategy; Test result judge module, for the test result to be contrasted with the testing standard, judges the daily record strategy set Whether test is passed through.
Simply the preferred embodiment of the present invention described above, for those skilled in the art, Without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also regarded as this hair Bright protection domain.

Claims (10)

1. the method for testing that a kind of server B MC event logs are set, it is characterized in that:Comprise the following steps:
Web is called, browsing device net page is opened;
The order of increase daily record is performed, the daily record strategy of setting is tested;
Output test result, generation test log files.
2. the method for testing that a kind of server B MC event logs according to claim 1 are set, it is characterized in that:Utilize Webdriver calls web described in carrying out, and opens the operation of browsing device net page.
3. the method for testing that a kind of server B MC event logs according to claim 1 are set, it is characterized in that:The day Will strategy includes Linear Strategy and cyclic policy, and the execution increases the order of daily record, the daily record strategy of setting is tested Concretely comprise the following steps:
Judge whether the daily record strategy set is Linear Strategy;
If Linear Strategy, carry out Linear Strategy test and judged to test whether to pass through according to the testing standard of Linear Strategy;
If not Linear Strategy, carry out cyclic policy test and judged to test whether to lead to according to the testing standard of cyclic policy Cross.
4. the method for testing that a kind of server B MC event logs according to claim 3 are set, it is characterized in that:It is described enter Row Linear Strategy test detailed process be:
Call daily record increase order;
The bar number increased to according to daily record, carries out corresponding status display in log recording.
5. the method for testing that a kind of server B MC event logs according to claim 4 are set, it is characterized in that:The line The testing standard of property strategy is:
1) the last item daily record ID is 3639 in log files, and the status display in corresponding log recording is " daily record is full ";
2) when continuing to increase daily record bar number, log files will not change, and ID is 3639 to the maximum.
6. the method for testing that a kind of server B MC event logs according to claim 5 are set, it is characterized in that:Described Judge to test whether by being specially according to the testing standard of Linear Strategy:Increased daily record bar number is more than 3639, pass through web Daily record ID maximum is read, if it is " daily record is expired " that maximum, which be status display in 3639, and log recording, then linearly Strategy test passes through, and otherwise tests and does not pass through.
7. the method for testing that a kind of server B MC event logs according to claim 3 are set, it is characterized in that:It is described enter Row cyclic policy test detailed process be:
Call daily record increase order;
According to the increase of daily record bar number, daily record ID and log file is continually changing.
8. the method for testing that a kind of server B MC event logs according to claim 7 are set, it is characterized in that:It is described to follow The testing standard of ring strategy is:
1) daily record ID sums are 3639;
2) when daily record bar number is more than 3639, then a new daily record can be sequentially produced, less one of ID loses display, ID sums Keep 3639 constant.
9. the method for testing that a kind of server B MC event logs according to claim 8 are set, it is characterized in that:Described Judge to test whether by being specially according to the testing standard of cyclic policy:Increased daily record bar number is more than 3639, pass through web Daily record ID maximum and minimum value is read, if daily record ID minimum value is not the difference of 1 and daily record ID maxima and minimas It is worth for 3938, then cyclic policy test passes through, and otherwise tests and does not pass through.
10. the test system that a kind of server B MC times daily record is set, using the method described in any one of claim 1 to 9, It is characterized in that:Including the test starting module, test module and result output module being sequentially connected;The test starting module is used In calling web, browsing device net page is opened;The test module is used for the order for performing increase daily record, to the daily record strategy of setting Tested;The result output module is used to output test result, generation test log files;
The test module also includes daily record strategy judge module, Linear Strategy test module, standard strategy test module, test Standard judge module and test result judge module;The output end of test result judge module connects Linear Strategy test mould respectively The input of block and standard strategy test module, Linear Strategy test module, standard strategy test module and testing standard judge The output end of module is all connected with the input of test result judge module, and the output end connection result of test result judge module is defeated Go out module output end.
CN201710515064.9A 2017-06-29 2017-06-29 Test method and system for setting event log of server BMC (baseboard management controller) Active CN107220183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710515064.9A CN107220183B (en) 2017-06-29 2017-06-29 Test method and system for setting event log of server BMC (baseboard management controller)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710515064.9A CN107220183B (en) 2017-06-29 2017-06-29 Test method and system for setting event log of server BMC (baseboard management controller)

Publications (2)

Publication Number Publication Date
CN107220183A true CN107220183A (en) 2017-09-29
CN107220183B CN107220183B (en) 2020-09-18

Family

ID=59951237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710515064.9A Active CN107220183B (en) 2017-06-29 2017-06-29 Test method and system for setting event log of server BMC (baseboard management controller)

Country Status (1)

Country Link
CN (1) CN107220183B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450723A (en) * 2018-10-11 2019-03-08 郑州云海信息技术有限公司 A kind of BMC Web network information display verifying automated testing method
CN109726130A (en) * 2019-01-02 2019-05-07 浪潮商用机器有限公司 Test macro, method, equipment and the storage medium of BMC event log strategy
CN110515804A (en) * 2019-08-29 2019-11-29 浪潮商用机器有限公司 System Event Log test method, device, equipment and the storage medium of BMC

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902435A (en) * 2012-12-26 2014-07-02 鸿富锦精密工业(深圳)有限公司 System and method for recording log events in server testing
CN103973486A (en) * 2014-04-29 2014-08-06 上海上讯信息技术股份有限公司 Log management system based on B/S structure
CN105893229A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for testing journaling function of computer protection system
US9563544B2 (en) * 2012-01-10 2017-02-07 Sap Se Framework for automated testing of mobile apps

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9563544B2 (en) * 2012-01-10 2017-02-07 Sap Se Framework for automated testing of mobile apps
CN103902435A (en) * 2012-12-26 2014-07-02 鸿富锦精密工业(深圳)有限公司 System and method for recording log events in server testing
CN103973486A (en) * 2014-04-29 2014-08-06 上海上讯信息技术股份有限公司 Log management system based on B/S structure
CN105893229A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for testing journaling function of computer protection system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张晨东: "可扩展事务处理系统中的日志同步策略", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
浪潮: "浪潮英信服务器I28&NS3124M4用户手册", 《HTTPS://WWW.INSPUR.COM/EPORTAL/FILEDIR/ACTIVE_DOWNLOAD/USERBOOK/I28/浪潮英信服务器I28&NS3124M4用户手册V1.0.PDF》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450723A (en) * 2018-10-11 2019-03-08 郑州云海信息技术有限公司 A kind of BMC Web network information display verifying automated testing method
CN109726130A (en) * 2019-01-02 2019-05-07 浪潮商用机器有限公司 Test macro, method, equipment and the storage medium of BMC event log strategy
CN110515804A (en) * 2019-08-29 2019-11-29 浪潮商用机器有限公司 System Event Log test method, device, equipment and the storage medium of BMC

Also Published As

Publication number Publication date
CN107220183B (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN109947646A (en) Interface test method, device, computer equipment and storage medium
CN107220183A (en) Method of testing and system that a kind of server B MC event logs are set
CN105354126B (en) Monitor method and apparatus abnormal in page script file
CN104702784B (en) A kind of detection method and system of the hot plug of mobile terminal plurality of SIM cards
CN105095069A (en) Test method and system of artificial intelligence answering system
CN106681913A (en) Application not responding positioning system and method
CN108446362A (en) Data cleansing processing method, device, computer equipment and storage medium
CN106534242B (en) The processing method and device requested in a kind of distributed system
CN102855184B (en) Android automatic test cross application device and method
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN109885499B (en) Robot automatic test system and test method
CN106682036A (en) Data exchange system and exchange method thereof
CN108153675A (en) A kind of Android application automated testing methods towards mobile cloud computing
CN104615523A (en) Fatigue testing method of BMC management module based on IPMI protocol
CN106484624A (en) The method of testing of interface automatic test
CN107241220A (en) The aging of product monitors automatic analysis method and system
CN108681507A (en) Method for realizing automatic testing of RESTful API and web service
CN109325010A (en) Log inspection method, device, computer equipment and storage medium
CN105279092A (en) Software testing method and apparatus
CN109871321A (en) A kind of method and test case management platform of test case Code automatic build
CN109272249A (en) A kind of platform area line loss defect elimination method based on platform area identifier
CN109614342A (en) A kind of method and test case management platform of application program automatic test
CN106528364B (en) The building method of automation collaborative verification platform based on memory access driving
CN113452965A (en) Automatic testing method and system for testing compatibility of switch and network camera
CN103699482B (en) Method and device for testing reasonableness of controls

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200820

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant