CN107203445A - A kind of automated testing method of timing cycle perform script - Google Patents

A kind of automated testing method of timing cycle perform script Download PDF

Info

Publication number
CN107203445A
CN107203445A CN201710374489.2A CN201710374489A CN107203445A CN 107203445 A CN107203445 A CN 107203445A CN 201710374489 A CN201710374489 A CN 201710374489A CN 107203445 A CN107203445 A CN 107203445A
Authority
CN
China
Prior art keywords
test
script
testing method
timing cycle
automated 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.)
Pending
Application number
CN201710374489.2A
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 CN201710374489.2A priority Critical patent/CN107203445A/en
Publication of CN107203445A publication Critical patent/CN107203445A/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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • 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

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 automated testing method of timing cycle perform script, following steps are specifically included:1) a upper task, is terminated;2) test script, is write;3), determine that test script can call execution, test script is assigned and performs authority;4) test execution result, is write into daily record;5) executive mode of test script, is determined;6), by executive mode Editorial Calendar task;7) plan target, is started.The present invention is tested CPU hardware system by writing test script, by the difference of executive mode, is realized and hardware is circulated or fixed time test, substantial amounts of manpower is liberated, improve the efficiency of test, it is to avoid due to the test errors that human factor occurs, improve test quality.

Description

A kind of automated testing method of timing cycle perform script
Technical field
The present invention relates to memory system testing technical field, specifically a kind of automation of timing cycle perform script Method of testing.
Background technology
With the high speed development of IT industries, the development of information-based, big data and cloud computing will to the stability of storage system Seek also more and more higher, what the test scene of storage system also became becomes increasingly complex, steady under the specific time, specific interval It is more and more frequent that location survey examination also becomes.
Storage system is when carrying out stability test, and the various functions of storage system need to carry out repeated test, Need the sufficiently long time to be tested, be a very cumbersome and uninteresting process again during test, if there can be method realization Automatic test, left unguarded can be tested, it will greatly improve the operating efficiency and quality of tester, can be to depositing The quality of storage product has tremendous increase.
The content of the invention
It is an object of the invention to provide a kind of automated testing method of timing cycle perform script, for improving test Efficiency and quality.
The technical scheme adopted by the invention to solve the technical problem is that:A kind of automation of timing cycle perform script is surveyed Method for testing, it is characterized in that, specifically include following steps:
1) a upper task, is terminated;
2) test script, is write;
3), determine that test script can call execution, test script is assigned and performs authority;
4) test execution result, is write into daily record;
5) executive mode of test script, is determined;
6), by executive mode Editorial Calendar task;
7) plan target, is started.
Further, described test script is used to test CPU hardware.
Further, step 1) operation in, end task pass through/sbin/service crond stop perform.
Further, step 2) operation in, write test script and write using shell scripts, specific steps include:
11) CPU hardware running situation, is inquired about;
12) CPU hardware running situation, is write into document and preserved.
Further, inquiry CPU hardware running situation uses ipmitool orders.
Further, step 3) operation in, to test script assign perform authority method be:
chmod+x chmod+x run.sh。
Further, step 5) in operation, the executive mode of test script includes that circulation is performed and timing is performed.
Further, step 6) operation in, Editorial Calendar task pass through crontab orders execution.
Further, step 7) in operation, startup task passes through/and sbin/service crond start perform.
The beneficial effects of the invention are as follows:
The present invention is tested CPU hardware system by writing test script, by the difference of executive mode, is realized Hardware is circulated or fixed time test, has liberated substantial amounts of manpower, improve the efficiency of test, it is to avoid due to it is artificial because The test errors that element occurs, improve test quality.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention example 1;
Fig. 2 is flow chart of the method for the present invention example 2.
Embodiment
In order to be able to the technical characterstic of clear explanation this programme, below by embodiment, and its accompanying drawing is combined, to this Invention is 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, a kind of automated testing method of timing cycle perform script, specifically includes following steps:
1) a upper task, is terminated;
2) test script, is write;
3), determine that test script can call execution, test script is assigned and performs authority;
4) test execution result, is write into daily record;
5) executive mode of test script, is determined;
6), by executive mode Editorial Calendar task;
7) plan target, is started.
As shown in Fig. 2 the method for the present invention can also include:
1) test script, is write;
2), determine that test script can call execution, test script is assigned and performs authority;
3) test execution result, is write into daily record;
4) executive mode of test script, is determined;
5), by executive mode Editorial Calendar task;
6) plan target, is started.
Test script is used to test CPU hardware.
Step 1) operation in, end task pass through/sbin/service crond stop perform.
Step 2) operation in, write test script and write using shell scripts, specific steps include:
11) CPU hardware running situation, is inquired about;
12) CPU hardware running situation, is write into document and preserved.
The hardware running situation for inquiring about CPU uses ipmitool orders.
Step 3) operation in, to test script assign perform authority method be:
chmod+x chmod+x run.sh。
Step 5) in operation, the executive mode of test script includes that circulation is performed and timing is performed.
Step 6) operation in, Editorial Calendar task pass through crontab orders execution.
Step 7) in operation, startup task passes through/and sbin/service crond start perform.
If being not carried out the test of test script, step 1 before) operation:Terminating a upper task can omit;Such as There is the test for performing test script before fruit, then need first to close a task.
The present embodiment is tested CPU rotation speed of the fan by the way of circulation is performed.
1) rotation speed of the fan test script, is write, and writes test.txt and is preserved.
vi run.sh
#!/bin/sh
ipmitool sdr|grep-E"FAN|Inlet">>/root/test.txt
2), determine that rotation speed of the fan test script can call execution, it is fan to use (chmod+x chmod+xrun.sh) Measurement of rotating speed script, which is assigned, performs authority.
3) test execution result, is write into daily record.
4), determine that the executive mode of test script performs for circulation.
5), by executive mode Editorial Calendar task.
Crontab-e (Editorial Calendar task)
*/1****/root/run.sh (execution per minute/root/run.sh files are once).
6) plan target, is started.
/ sbin/service crond start (start service).
/ root/run.sh represents script file, and 5 before/root/run.sh * represents minute (0- respectively successively 59) , little Time (0-23), date (1-31), month (1-12), week (0-6).For example:
06*** represents 6 perform script files every morning;
0*/2*** represents each two hour perform script file;
023-7/28*** represents each two hour perform script file between at 11 points in evening to 8 points of morning;
0114*1-3 represents 11 perform script texts in morning of No. 4 of every month and Monday to the Wednesday of each week Part;
0411* represents 4 perform script files in morning January 1.
The method of the present invention is not restricted to above-mentioned steps, and what above-mentioned steps were only represented is the specific embodiment of the present invention, It should not be construed as limiting protection scope of the present invention.
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 (9)

1. a kind of automated testing method of timing cycle perform script, it is characterized in that, specifically include following steps:
1) a upper task, is terminated;
2) test script, is write;
3), determine that test script can call execution, test script is assigned and performs authority;
4) test execution result, is write into daily record;
5) executive mode of test script, is determined;
6), by executive mode Editorial Calendar task;
7) plan target, is started.
2. a kind of automated testing method of timing cycle perform script according to claim 1, it is characterized in that, it is described Test script is used to test CPU hardware.
3. a kind of automated testing method of timing cycle perform script according to claim 1, it is characterized in that, step 1) In operation, end task and pass through/sbin/service crond stop execution.
4. a kind of automated testing method of timing cycle perform script according to claim 1, it is characterized in that, step 2) In operation, write test script and write using shell scripts, specific steps include:
11) CPU hardware running situation, is inquired about;
12) CPU hardware running situation, is write into document and preserved.
5. a kind of automated testing method of timing cycle perform script according to claim 4, it is characterized in that, inquiry CPU hardware running situation uses ipmitool orders.
6. a kind of automated testing method of timing cycle perform script according to claim 1, it is characterized in that, step 3) In operation, the method for execution authority is assigned to test script is:
chmod+x chmod+x run.sh。
7. a kind of automated testing method of timing cycle perform script according to claim 1, it is characterized in that, step 5) In operation, the executive mode of test script includes circulation and performs and regularly perform.
8. a kind of automated testing method of timing cycle perform script according to claim 1, it is characterized in that, step 6) In operation, Editorial Calendar task is performed by crontab orders.
9. a kind of automated testing method of timing cycle perform script according to claim 1, it is characterized in that, step 7) In operation, startup task passes through/sbin/service crond start execution.
CN201710374489.2A 2017-05-24 2017-05-24 A kind of automated testing method of timing cycle perform script Pending CN107203445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710374489.2A CN107203445A (en) 2017-05-24 2017-05-24 A kind of automated testing method of timing cycle perform script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710374489.2A CN107203445A (en) 2017-05-24 2017-05-24 A kind of automated testing method of timing cycle perform script

Publications (1)

Publication Number Publication Date
CN107203445A true CN107203445A (en) 2017-09-26

Family

ID=59906592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710374489.2A Pending CN107203445A (en) 2017-05-24 2017-05-24 A kind of automated testing method of timing cycle perform script

Country Status (1)

Country Link
CN (1) CN107203445A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656859A (en) * 2017-09-28 2018-02-02 四川长虹电器股份有限公司 Possesses the stability test method of high fault tolerance for cloud system
CN107766240A (en) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 UEFI Shell internal command automatic running detection methods and system
CN108845907A (en) * 2018-08-14 2018-11-20 郑州云海信息技术有限公司 A kind of test method being operating abnormally based on IPMITool analysis CPU
CN109669860A (en) * 2018-11-30 2019-04-23 郑州云海信息技术有限公司 A kind of refreshing BIOS method for testing pressure and system based on REDHAT system
CN110727574A (en) * 2018-07-17 2020-01-24 龙芯中科技术有限公司 Method and device for testing stability of operating system and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166623A (en) * 2014-08-20 2014-11-26 浪潮电子信息产业股份有限公司 Test method for detecting ME states of intel platforms
CN104598344A (en) * 2015-02-03 2015-05-06 浪潮电子信息产业股份有限公司 Shell-based memory read-write testing method
CN105718340A (en) * 2016-01-13 2016-06-29 浪潮电子信息产业股份有限公司 Crontab-based CPU stability test method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166623A (en) * 2014-08-20 2014-11-26 浪潮电子信息产业股份有限公司 Test method for detecting ME states of intel platforms
CN104598344A (en) * 2015-02-03 2015-05-06 浪潮电子信息产业股份有限公司 Shell-based memory read-write testing method
CN105718340A (en) * 2016-01-13 2016-06-29 浪潮电子信息产业股份有限公司 Crontab-based CPU stability test method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656859A (en) * 2017-09-28 2018-02-02 四川长虹电器股份有限公司 Possesses the stability test method of high fault tolerance for cloud system
CN107766240A (en) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 UEFI Shell internal command automatic running detection methods and system
CN110727574A (en) * 2018-07-17 2020-01-24 龙芯中科技术有限公司 Method and device for testing stability of operating system and electronic equipment
CN108845907A (en) * 2018-08-14 2018-11-20 郑州云海信息技术有限公司 A kind of test method being operating abnormally based on IPMITool analysis CPU
CN109669860A (en) * 2018-11-30 2019-04-23 郑州云海信息技术有限公司 A kind of refreshing BIOS method for testing pressure and system based on REDHAT system

Similar Documents

Publication Publication Date Title
CN107203445A (en) A kind of automated testing method of timing cycle perform script
US8990792B2 (en) Method for constructing dynamic call graph of application
US20140351793A1 (en) Prioritizing test cases using multiple variables
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN107168879B (en) Method and device for generating test report of centralized configuration management system
CN103744759A (en) Method for verifying unattended disk performance and stability under Linux system
US9740595B2 (en) Method and apparatus for producing a benchmark application for performance testing
CN104407951A (en) Method for automatically testing complete server
US10013335B2 (en) Data flow analysis in processor trace logs using compiler-type information method and apparatus
CN104317693A (en) Method for automatically testing hard disk performance fluctuation
CN103019855B (en) Method for forecasting executive time of Map Reduce operation
CN110543420B (en) Software testing method, system, terminal and storage medium
CN104182335A (en) Software testing method and device
CN104850479A (en) FIO-based hard disk automatic testing method
US9524225B2 (en) Dynamically providing application analytic information
CN105487952A (en) PCIE-SSD automatic testing method based on FIO
US11158394B2 (en) Performance evaluation of solid state memory device
CN107273257A (en) A kind of automatic method for carrying out the out of order inspection of hard disk under linux system
CN104636242A (en) Method for automatically deleting repeated content in system logs on basis of Linux operating system
CN106648839B (en) Data processing method and device
Wang et al. A zoom-in analysis of i/o logs to detect root causes of i/o performance bottlenecks
US20190012348A1 (en) Data aggregation method and device
CN104598382A (en) Test control method and device
CN105243003A (en) Memory allocation monitoring method and apparatus
US20140215440A1 (en) Marked test script creation

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

Application publication date: 20170926

RJ01 Rejection of invention patent application after publication