CN107704355A - A kind of method that reboot tests are carried out under Solaris11 systems - Google Patents

A kind of method that reboot tests are carried out under Solaris11 systems Download PDF

Info

Publication number
CN107704355A
CN107704355A CN201711025397.XA CN201711025397A CN107704355A CN 107704355 A CN107704355 A CN 107704355A CN 201711025397 A CN201711025397 A CN 201711025397A CN 107704355 A CN107704355 A CN 107704355A
Authority
CN
China
Prior art keywords
test
script file
time
restarted
file
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
Application number
CN201711025397.XA
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information 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 CN201711025397.XA priority Critical patent/CN107704355A/en
Publication of CN107704355A publication Critical patent/CN107704355A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection 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)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method that reboot tests are carried out under Solaris11 systems, comprise the following steps:The first script file is generated under execution route of starting shooting;The second script file for carrying out reboot tests is added in the first script file;Test parameter variable and corresponding test process are write in the second script file;Start performs the first script file, and reboot tests are carried out according to the test parameter variable write in the second script file and corresponding test process.The present invention is tested accordingly automatically in start, and automatic recording test time and testing time, is saved testing cost, is improved the reliability of test.

Description

A kind of method that reboot tests are carried out under Solaris11 systems
Technical field
The present invention relates to field of computer technology, specifically one kind carries out reboot surveys under Solaris11 systems The method of examination.
Background technology
The server newly prepared can not determine that hardware has no problem, and whether hardware compatibility is problematic and system operation is No stabilization is required for carrying out stability test to verify.In stability test, reboot tests are emulating servers for several times Whether there is and make a mistake in restarting process, to examine the test of its stability.Test terminate after can check crashed without appearance or Delay machine, under BMC daily records and system daily record have error-free information.
The test process of existing method of testing is:Reboot files are generated under system/root catalogues, reboot files Content is:Each run script can write in past/root/times files " reboot " words, perform weight after waiting 45 seconds Open;S99reboot.sh files are created under/etc/rc2.d catalogues, the reboot write in file under execution/root catalogues File, it can be performed once by system when S99reboot.sh files are started shooting, complete to restart automatically whereby.
Above-mentioned method of testing can not grasp number of run, and often other tests are impacted, and test result lacks Reliability.
The content of the invention
It is an object of the invention to provide a kind of method that reboot tests are carried out under Solaris11 systems, for solving Certainly existing reboot method of testings can not grasp testing time, the insecure problem of test result.
The technical solution adopted for the present invention to solve the technical problems is:One kind is carried out under Solaris11 systems The method of reboot tests, comprises the following steps:
The first script file is generated under execution route of starting shooting;
The second script file for carrying out reboot tests is added in the first script file;
Test parameter variable and corresponding test process are write in the second script file;
Start performs the first script file, according to the test parameter variable and corresponding test write in the second script file Process carries out reboot tests.
Further, the value of the test parameter variable is " start ", " time " and " stop ".
Further, when the value of the test parameter variable is " start ", the test of unlimited number, corresponding survey are carried out Examination process is:
The Stub File of last time test is deleted, restarts system;
Record performs the time restarted and the number restarted;
Waited according to the stand-by period of setting;
If within the stand-by period, the value of modification test parameter variable is " stop ", then terminates to test;Otherwise repeat to survey Examination.
Further, when the value of the test parameter variable is " time ", the test of number, corresponding test set Process is:
The file of last time test residual is deleted, restarts system;
Obtain the testing time of setting;
Record performs the time restarted and the number restarted;
Record is restarted into number compared with the testing time set, in the survey restarted number and be more than setting of record When trying number, terminate test.
Further, the file of the last time test residual restarts the file of number for record.
Further, it is described to terminate after testing, delete the first script file.
Further, the start execution route is /etc/rc2.d.
The effect provided in the content of the invention is only the effect of embodiment, rather than whole effects that invention is all, above-mentioned A technical scheme in technical scheme has the following advantages that or beneficial effect:
1st, under execution route of starting shooting under file path add carry out reboot tests related content, start when according to The content of second script file is tested accordingly automatically, and automatic recording test time and testing time, is saved the time, is carried The reliability of height test.
2nd, the first script file is deleted after the completion of testing, the first script file is no longer performed after making start, so as to terminate Test, it is simple to operate.
3rd, test start when, first delete last time test Stub File, the influence for avoiding Stub File from testing this, Improve the accuracy of test.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the test flow chart when present invention does not limit testing time;
Test flow chart when Fig. 3 is present invention setting testing time.
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.
A kind of as shown in figure 1, method that reboot tests are carried out under Solaris11 systems of the present invention.Including following Step:
S1, the first script file is generated under execution route of starting shooting;
S2, the second script file for carrying out reboot tests is added in the first script file;
S3, test parameter variable and corresponding test process are write in the second script file;
S4, start perform the first script file, according to the test parameter variable that is write in the second script file and corresponding Test process carries out reboot tests.
In step S1, the first script file is generated under/etc/rc2.d/ paths, the file start under the catalogue enters system It can be performed once by system during system, the first script file is S99reboot.sh files.
In step S2, the second script file for performing reboot tests is added under S99reboot.sh files, and is added Entering to perform the order of the second script file, the second script file is bootfile files, when starting to perform the first script file, The order for performing the second script file is called, realizes that start is automatic and carries out reboot tests.
In step S3, the value of the test parameter variable of write-in is " start ", " time " and " stop ".
In step S4, when the value of test parameter variable is " start ", the test of unlimited number is carried out, as shown in Fig. 2 Corresponding test process is:
The Stub File of last time test is deleted, restarts system;
Record performs the time restarted and the number restarted;
Waited according to the stand-by period of setting;
Within the stand-by period, the value for judging whether to change test parameter variable is " stop ";
In this way, then terminate to test;If it is not, then repeat to test.
Wherein, the time of wait is typically set at 100s, and within waiting time, tester is according to testing requirement, more It is " stop " so as to terminate to test to change the value of test parameter variable, simple to operate.
When the value of test parameter variable is " time ", set the test of number, as shown in figure 3, corresponding test Process is:
The file of last time test residual is deleted, restarts system;
Obtain the testing time of setting;
Record performs the time restarted and the number restarted;
Record is restarted into number compared with the testing time set, in the survey restarted number and be more than setting of record When trying number, terminate test.
In above-mentioned test process, the test of unlimited number or the test of setting number no matter are carried out, is started in test When, the file of last time test residual is deleted first, and the file of residual refers to the file for recording testing time, because this document may This test can be impacted, cause the inaccuracy of test result.
By the way that data orders are write into bootfile to obtain reboot time, while " reboot " character is write In bootfile files, reboot tests successively are often performed, write " reboot " character, by counting " reboot " character Number, calculate carry out reboot tests number.
To ensure being smoothed out for above-mentioned test, it is also necessary to set the right of execution of the first script file and the second script file Limit, is that the first script file and the second script file can be performed under Solaris11 systems.
To ensure the accuracy of test result, in test process, if receive other orders beyond mentioned order, Test errors are prompted, so as to exit test.
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 (7)

1. a kind of method that reboot tests are carried out under Solaris11 systems, it is characterized in that:Comprise the following steps:
The first script file is generated under execution route of starting shooting;
The second script file for carrying out reboot tests is added in the first script file;
Test parameter variable and corresponding test process are write in the second script file;
Start performs the first script file, according to the test parameter variable and corresponding test process write in the second script file Carry out reboot tests.
2. the method according to claim 11, it is characterized in that:The value of the test parameter variable be " start ", " time " and “stop”。
3. the method according to claim 11, it is characterized in that:When the value of the test parameter variable is " start ", carry out not The test of number is limited, corresponding test process is:
The Stub File of last time test is deleted, restarts system;
Record performs the time restarted and the number restarted;
Waited according to the stand-by period of setting;
If within the stand-by period, the value of modification test parameter variable is " stop ", then terminates to test;Otherwise repeat to test.
4. the method according to claim 11, it is characterized in that:When the value of the test parameter variable is " time ", set Determine the test of number, corresponding test process is:
The file of last time test residual is deleted, restarts system;
Obtain the testing time of setting;
Record performs the time restarted and the number restarted;
Record is restarted into number compared with the testing time set, in the test time restarted number and be more than setting of record During number, terminate test.
5. the method according to claim 3 or 4, it is characterized in that:The file of the last time test residual is restarted secondary for record Several files.
6. the method according to claim 3 or 4, it is characterized in that:It is described to terminate after testing, delete the first script file.
7. according to the method described in claim any one of 1-4, it is characterized in that:The start execution route is /etc/rc2.d.
CN201711025397.XA 2017-10-27 2017-10-27 A kind of method that reboot tests are carried out under Solaris11 systems Pending CN107704355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711025397.XA CN107704355A (en) 2017-10-27 2017-10-27 A kind of method that reboot tests are carried out under Solaris11 systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711025397.XA CN107704355A (en) 2017-10-27 2017-10-27 A kind of method that reboot tests are carried out under Solaris11 systems

Publications (1)

Publication Number Publication Date
CN107704355A true CN107704355A (en) 2018-02-16

Family

ID=61176261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711025397.XA Pending CN107704355A (en) 2017-10-27 2017-10-27 A kind of method that reboot tests are carried out under Solaris11 systems

Country Status (1)

Country Link
CN (1) CN107704355A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6681389B1 (en) * 2000-02-28 2004-01-20 Lucent Technologies Inc. Method for providing scaleable restart and backout of software upgrades for clustered computing
CN101004697A (en) * 2006-01-21 2007-07-25 鸿富锦精密工业(深圳)有限公司 System and method for detecting time of starting up computer system
CN102981955A (en) * 2012-11-29 2013-03-20 浪潮电子信息产业股份有限公司 Automatic continuous restarting method based on Linux system
CN103744764A (en) * 2013-12-26 2014-04-23 浪潮电子信息产业股份有限公司 Crontab based whole computer memory stability test method
CN106354599A (en) * 2016-08-25 2017-01-25 浪潮电子信息产业股份有限公司 Automatic restart testing method used for server of Solaris 11 series

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6681389B1 (en) * 2000-02-28 2004-01-20 Lucent Technologies Inc. Method for providing scaleable restart and backout of software upgrades for clustered computing
CN101004697A (en) * 2006-01-21 2007-07-25 鸿富锦精密工业(深圳)有限公司 System and method for detecting time of starting up computer system
CN102981955A (en) * 2012-11-29 2013-03-20 浪潮电子信息产业股份有限公司 Automatic continuous restarting method based on Linux system
CN103744764A (en) * 2013-12-26 2014-04-23 浪潮电子信息产业股份有限公司 Crontab based whole computer memory stability test method
CN106354599A (en) * 2016-08-25 2017-01-25 浪潮电子信息产业股份有限公司 Automatic restart testing method used for server of Solaris 11 series

Similar Documents

Publication Publication Date Title
US7908518B2 (en) Method, system and computer program product for failure analysis implementing automated comparison of multiple reference models
US9841826B2 (en) Automatic test system and test method for computer, record medium, and program product
US10162742B2 (en) System and method for end to end performance response time measurement based on graphic recognition
CN107391333B (en) OSD disk fault testing method and system
US20150074648A1 (en) Software defect verification
WO2016000546A1 (en) Method and device for checking influence of deletion of cache file, and mobile terminal
WO2018120965A1 (en) Automatic test method and device, and computer-readable storage medium
US10049031B2 (en) Correlation of violating change sets in regression testing of computer software
CN108459850B (en) Method, device and system for generating test script
CN108923997B (en) Cloud service node automatic testing method and device based on python
WO2019085466A1 (en) Association test method and system, application server, and computer readable storage medium
CN108572895B (en) Stability test method for automatically checking software and hardware configuration under Linux
US11200140B2 (en) Software performance testing
CN108153635B (en) System memory edge testing method, system device and computer readable storage medium
EP2883134A1 (en) Executable software specification generation
US7904754B2 (en) Systems and methods for automated determination of out of memory handling
CN107766240A (en) UEFI Shell internal command automatic running detection methods and system
CN110990207B (en) BPS memory test method, system, terminal and storage medium based on Whitley platform
US10481969B2 (en) Configurable system wide tests
CN107704355A (en) A kind of method that reboot tests are carried out under Solaris11 systems
CN115757165A (en) Automatic testing method, device, equipment and storage medium
CN107797917B (en) Performance test script generation method and device
JP2011141631A (en) Automatic teller machine and method for testing update program of the automatic teller machine
US10296449B2 (en) Recording an application test
CN111694727A (en) Network card firmware upgrading and downgrading test method, system, terminal and storage medium

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: 20180216