CN107832178A - A kind of automated testing method of server stability - Google Patents
A kind of automated testing method of server stability Download PDFInfo
- Publication number
- CN107832178A CN107832178A CN201711158528.1A CN201711158528A CN107832178A CN 107832178 A CN107832178 A CN 107832178A CN 201711158528 A CN201711158528 A CN 201711158528A CN 107832178 A CN107832178 A CN 107832178A
- Authority
- CN
- China
- Prior art keywords
- script
- restart
- testing method
- automated testing
- inspection
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2284—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
Design server stability test field of the present invention, a kind of automated testing method of server stability is specifically provided, realized by shell scripts and restart automatically and examine basic configuration, function automatically, while record result.And the inspection record restarted each time can be collected, when each inspection that and if only if records normal, discriminating test passes through.Otherwise, it is determined that test crash.This programme adds the inspection of machine basic functions in traditional restarting on Script Basics, can observe whether various functions are normal when restarting each time.The ability for finding defect can be improved using this method progress stability test, lifts quality control level.
Description
Technical field
The invention belongs to server stability test technical field, and in particular to a kind of automation of server stability is surveyed
Method for testing.
Background technology
For server product, stability is a key index of product quality.Conventional stability test, lead to
Script often is restarted using some to be tested, and can restart n stopping afterwards by running these script machines.But these
The problem of script is that, unless automated procedures are interrupted, otherwise some probabilistic performance deficiencies can not be found at all.
For example, when certain is restarted machine have an internal memory do not have inspection to or there is one piece of network interface card not have inspection to arrive, but have no effect on and open
It is dynamic.Therefore, the traditional script of this problem can not find and position.
Therefore it provides a kind of automated testing method of server stability is very necessary.
The content of the invention
It is an object of the invention to solve problem present in above-mentioned prior art, there is provided a kind of server stability from
Dynamicization method of testing, realized by shell scripts and restart automatically and examine basic configuration, function automatically, while record result.And
The inspection record restarted each time can be collected, when each inspection that and if only if records normal, discriminating test passes through.Otherwise,
Discriminating test fails.
The present invention is achieved by the following technical solutions:
A kind of automated testing method of server stability, comprises the following steps:
10)Write and restart script(reboot.sh), the .bashrc files that linux system is given tacit consent to are replaced with and restart script;
20)System starts, and script is restarted in automatic loading;
30)Restart script generation pcishu files, record restarts number;
40)Judgement restarts whether number is equal to setting number;Restart script if so, closing, and carry out inspection result judgement eventually;It is no
Then, into step 50;
50)Script is examined in loading(finalcheck.sh)Capture information;
60) checked with the sequence information in database, export assay;
70)Return to step 20, is restarted.
Further, script is restarted(reboot.sh)Cold restart and hot restart can be achieved, and can set and restart number.
Further, script is examined mainly to include basic configuration detection, the verification of all types of versions.
Further, inspection script preserves inspection record after operation, when each inspection that and if only if records normal, sentences
The fixed result of inspection eventually is qualified, and test passes through;Otherwise, inspection result is unqualified eventually, test crash.
Further, examining the information of script crawl includes machine configuration information, firmware information, the daily record that reports an error, portion
Part model.
Further, the sequence information in database is imported by ERP system.
Compared with prior art, the beneficial effects of the invention are as follows:
The present invention is realized by Linux Shell scripts automatic restart and examines basic configuration automatically, function and records result;It is logical
The inspection record for collecting and restarting each time is crossed, when each inspection that and if only if records normal, discriminating test passes through;Otherwise,
Discriminating test fails.This programme adds the inspection of machine basic functions in traditional restarting on Script Basics, can observe
Whether various functions are normal when restarting each time.The energy of discovery defect can be improved by carrying out stability test using this method
Power, lift quality control level.
In addition, the inventive method principle is reliable, step is simple, has very extensive application prospect.
As can be seen here, the present invention compared with prior art, has prominent substantive distinguishing features and significantly improved, it is implemented
Beneficial effect be also obvious.
Brief description of the drawings
Fig. 1 is a kind of basic flow sheet of the automated testing method of server stability provided by the invention.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings:
As shown in figure 1, a kind of automated testing method of server stability provided by the invention, comprises the following steps:
10)Write and restart script(reboot.sh), the .bashrc files that linux system is given tacit consent to are replaced with and restart script;
20)System starts, and script is restarted in automatic loading;
30)Restart script generation pcishu files, record restarts number;
40)Judgement restarts whether number is equal to setting number;Restart script if so, closing, and carry out inspection result judgement eventually;It is no
Then, into step 50;
50)Script is examined in loading(finalcheck.sh)Capture information;
60) checked with the sequence information in database, export assay;
70)Return to step 20, is restarted.
In the present embodiment, script is restarted(reboot.sh)Cold restart and hot restart can be achieved, and can set and restart time
Number.
In the present embodiment, script is examined mainly to include basic configuration detection, the verification of all types of versions.
In the present embodiment, script is examined to preserve inspection record after operation, and if only if examines record normal every time
When, judge that inspection result is qualified eventually, test passes through;Otherwise, unqualified, test crash is examined eventually.
In the present embodiment, examining the information of script crawl includes machine configuration information, firmware information, reports an error day
Will, number of element types.
In the present embodiment, the sequence information in database is imported by ERP system.
In a kind of automated testing method of the server stability provided using this programme, first by Linux
Shell scripting languages restart script(reboot.sh).The .bashrc files that linux system is given tacit consent to are replaced with and restarted
Script, it can so load this script automatically upon power-up of the system.Then, script generates a pcishu file and is used for recording weight
Open number:When pcishu is less than when restarting number of setting, script is examined in loading, examines script to be ordered after having performed using reboot
Order is restarted;When pcishu when restarting number, closes script, restart end equal to setting.Secondly, Linux shell pin are used
This language writes inspection script(finalcheck.sh).The script uses the linux orders carried or third party manufacturer(Such as net
Block manufacturer)The program crawl configuration information of machine of offer, Firmware information, the daily record that reports an error etc., as CPU, internal memory, hard disk,
The number of element types such as network interface card;After crawl with the sequence information in database(Sequence information in database imports from ERP system)
Checked, and export result of determination.The script loads automatically when restarting every time after the execution of reboot scripts, and in reboot
Once, the inspection before collecting records script for last operation after being finished.
The present invention is realized by Linux Shell scripts automatic restart and examines basic configuration automatically, function and records knot
Fruit;The inspection record restarted each time by collecting, when each inspection that and if only if records normal, discriminating test passes through;
Otherwise, it is determined that test crash.This programme adds the inspection of machine basic functions, Ke Yiguan in traditional restarting on Script Basics
Whether normal measure various functions when restarting each time.Discovery defect can be improved by carrying out stability test using this method
Ability, lift quality control level.
Above-mentioned technical proposal is one embodiment of the present invention, for those skilled in the art, at this
On the basis of disclosure of the invention application process and principle, it is easy to make various types of improvement or deformation, be not limited solely to this
Invent the method described by above-mentioned embodiment, therefore previously described mode is simply preferable, and and without limitation
The meaning of property.
Claims (6)
- A kind of 1. automated testing method of server stability, it is characterised in that:Comprise the following steps:10)Write and restart script(reboot.sh), the .bashrc files that linux system is given tacit consent to are replaced with and restart script;20)System starts, and script is restarted in automatic loading;30)Restart script generation pcishu files, record restarts number;40)Judgement restarts whether number is equal to setting number;Restart script if so, closing, and carry out inspection result judgement eventually;It is no Then, into step 50;50)Script is examined in loading(finalcheck.sh)Capture information;60) checked with the sequence information in database, export assay;70)Return to step 20, is restarted.
- A kind of 2. automated testing method of server stability as claimed in claim 1, it is characterised in that:Restart script (reboot.sh)Cold restart and hot restart can be achieved, and can set and restart number.
- A kind of 3. automated testing method of server stability as claimed in claim 1, it is characterised in that:Examine script master To include basic configuration detection, the verification of all types of versions.
- A kind of 4. automated testing method of server stability as claimed in claim 1, it is characterised in that:Script is examined to exist Preservation, which is examined, after operation records, and when each inspection that and if only if records normal, inspection result is qualified eventually, and discriminating test passes through;It is no Then, inspection result is unqualified eventually, test crash.
- A kind of 5. automated testing method of server stability as claimed in claim 1, it is characterised in that:Script is examined to grab The information taken includes machine configuration information, firmware information, the daily record that reports an error, number of element types.
- A kind of 6. automated testing method of server stability as claimed in claim 1, it is characterised in that:In database Sequence information is imported by ERP system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711158528.1A CN107832178A (en) | 2017-11-20 | 2017-11-20 | A kind of automated testing method of server stability |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711158528.1A CN107832178A (en) | 2017-11-20 | 2017-11-20 | A kind of automated testing method of server stability |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107832178A true CN107832178A (en) | 2018-03-23 |
Family
ID=61652237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711158528.1A Pending CN107832178A (en) | 2017-11-20 | 2017-11-20 | A kind of automated testing method of server stability |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107832178A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108256331A (en) * | 2018-01-04 | 2018-07-06 | 郑州云海信息技术有限公司 | A kind of test method of server B MC safety approach |
CN110213126A (en) * | 2019-05-24 | 2019-09-06 | 苏州浪潮智能科技有限公司 | A kind of method and device that automatic detection network link CRC reports an error |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN103970660A (en) * | 2014-05-19 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Total system stability automatic test method based on crontab |
CN105718340A (en) * | 2016-01-13 | 2016-06-29 | 浪潮电子信息产业股份有限公司 | Crontab-based CPU stability test method |
CN106598796A (en) * | 2016-12-16 | 2017-04-26 | 郑州云海信息技术有限公司 | Method for testing hardware information stability in reboot |
-
2017
- 2017-11-20 CN CN201711158528.1A patent/CN107832178A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN103970660A (en) * | 2014-05-19 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Total system stability automatic test method based on crontab |
CN105718340A (en) * | 2016-01-13 | 2016-06-29 | 浪潮电子信息产业股份有限公司 | Crontab-based CPU stability test method |
CN106598796A (en) * | 2016-12-16 | 2017-04-26 | 郑州云海信息技术有限公司 | Method for testing hardware information stability in reboot |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108256331A (en) * | 2018-01-04 | 2018-07-06 | 郑州云海信息技术有限公司 | A kind of test method of server B MC safety approach |
CN110213126A (en) * | 2019-05-24 | 2019-09-06 | 苏州浪潮智能科技有限公司 | A kind of method and device that automatic detection network link CRC reports an error |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Nguyen et al. | Automated detection of performance regressions using statistical process control techniques | |
Nagaraj et al. | Structured comparative analysis of systems logs to diagnose performance problems | |
CN106484610A (en) | A kind of Beta method and apparatus | |
JP2019519056A5 (en) | ||
US8145949B2 (en) | Automated regression failure management system | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN106027528B (en) | A kind of method and device of the horizontal permission automatic identification of WEB | |
CN105893230A (en) | Method and device for detecting IOPS performance of hard disks | |
CN107003931B (en) | Decoupling test validation from test execution | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
CN105068920A (en) | Shell-based method for testing stability of rack asset information | |
CN110750396A (en) | Server operating system compatibility testing method and device and storage medium | |
WO2021008029A1 (en) | Case execution method, apparatus and device, and computer readable storage medium | |
CN110287696A (en) | A kind of detection method, device and the equipment of the shell process that rebounds | |
CN108897686B (en) | Full-entry automatic testing method and device | |
CN112100048B (en) | Self-adaptive inspection method and device for server | |
CN104636242A (en) | Method for automatically deleting repeated content in system logs on basis of Linux operating system | |
CN106021054A (en) | Method and apparatus for testing upgrading and downgrading stability of BMC | |
CN107832178A (en) | A kind of automated testing method of server stability | |
TW201723847A (en) | System and method for automatic testing environment deployment and testing on cloud virtual machine simulating multiple client ends with limited hardware | |
CN111124809B (en) | Test method and device for server sensor system | |
CN104063308B (en) | The verification method and device of data | |
CN101373506A (en) | Method for detecting software loophole model based on loophole model | |
CN106155866A (en) | A kind of method and device of monitoring CPU core frequency | |
CN105786668A (en) | Memory error detection method based on Redhat system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |