[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN100489794C - System and method for detecting time of starting up computer system - Google Patents

System and method for detecting time of starting up computer system Download PDF

Info

Publication number
CN100489794C
CN100489794C CNB2006100332657A CN200610033265A CN100489794C CN 100489794 C CN100489794 C CN 100489794C CN B2006100332657 A CNB2006100332657 A CN B2006100332657A CN 200610033265 A CN200610033265 A CN 200610033265A CN 100489794 C CN100489794 C CN 100489794C
Authority
CN
China
Prior art keywords
computer system
time
computer
test
restarting
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.)
Expired - Fee Related
Application number
CNB2006100332657A
Other languages
Chinese (zh)
Other versions
CN101004697A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNB2006100332657A priority Critical patent/CN100489794C/en
Publication of CN101004697A publication Critical patent/CN101004697A/en
Application granted granted Critical
Publication of CN100489794C publication Critical patent/CN100489794C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A method for testing start-up time of computer system includes setting test parameters through input unit and storing set test parameters, fetching and storing information of said computer system, checking whether rapid mode of restart-up execution program on said computer system is existed or not and testing start-up time of said computer system and generating test data if it is.

Description

The test macro of computer system starting time and method
[technical field]
The present invention relates to test macro and the method for a kind of computer system starting time.
[background technology]
For scientific and technological manufacturing enterprise, a kind of computer system to putting goods on the market, often will be passed through the repeatedly testing authentication of too many levels from development.For whether testing authentication computer system security and performance reach the expection of design, enterprise tends to the various functions of computer system are tested, for example: the stable degree of the travelling speed of system, system.
Along with the continuous development and the innovation of computer technology, the client is also constantly changing and harsh for computer system security and performance demands, and for example: the client was stronger in the past for the ratio that the requirement of the start-up time of computer system also becomes.At present, in order to adapt to the client,, must need this performance demands of product is verified in the product test stage for the requirement of the start-up time of computer system.
Yet, also do not have effective method of testing to come accurately and the start-up time of the testing computer system of standard at present.
Avoid can not the Validity Test computer system start-up time, help avoid inaccurate and test process lack of standardization of test result.
[summary of the invention]
In view of above content, be necessary to provide the start-up time of the test macro of a kind of computer system starting time with the Validity Test computer system, avoid inaccurate and test process lack of standardization of test result.
In addition, also be necessary to provide the start-up time of the method for testing of a kind of computer system starting time, avoid inaccurate and test process lack of standardization of test result with the Validity Test computer system.
The test macro of a kind of computer system starting time, this computing machine comprises input media.This system comprises test module and the memory storage that links to each other with this test module, and described test module comprises: submodule is set, is used for being provided with by this input media the required parameter of test process start-up time of computer system; The I/O submodule, being used for parameter with above-mentioned setting is input to this memory storage and stores, read this system for computer information, this system for computer information that reads is input in this memory storage stores, this computer system not restart the shortcut of executive routine the time create the shortcut that computer system is restarted executive routine, just often call computer system in this system for computer information and restart the shortcut of executive routine and restart this computer system, and the test data that produces in this computer system restarting process is input in this memory storage stores; Judge submodule, be used to check the shortcut of restarting executive routine that whether has this computer system, and whether normal according to the system information of this system for computer information check current computer of storing in this memory storage; Reach the operator module, be used for just often calculating the test data of current computer system restarting process in the system information of current computer.
Further, described parameter comprises the store path of restarting total degree, parameter of this computer system, the store path of test data, the quick calling path of restarting executive routine of computer system.
Further, described test data comprises the average start-up time of start time that this computer system is restarted at every turn and concluding time, service time that this computer system is restarted at every turn, this computer system and adds up and restarts number of times.
Further, described judge that submodule also is used to judge the current computer system restart number of times whether less than the total degree of restarting of the computer system that is provided with.
Further, described computing machine also comprises output unit, described I/O submodule also be used for the current computer system restart computer system that number of times equals to be provided with restart total degree the time provide test report by this output unit.
The method of testing of a kind of computer system starting time, this method comprise the steps: the start-up time that (a) be provided with computer system by input media of required parameter in the test process; (b) store the parameter of this setting; (c) read and store this system for computer information; (d) check the shortcut of restarting executive routine that whether has this computer system; (e) if there is the shortcut of restarting executive routine of this computer system, then whether the system information according to this system for computer information check current computer of storing is normal; (f) just often call this computer system in this system for computer information and restart the shortcut of executive routine and restart this computer system, with start-up time of testing this computer system and produce test data.
Further,, then create the shortcut of restarting executive routine of this computer system, and change the step of the start-up time of this computer system of test over to if there is not the shortcut of restarting executive routine of this computer system.
Further, the step of testing the start-up time of this computer system and producing test data comprises: (e3) calculate and storage current computer system restarting process in test data; (e4) and the current computer system restart computer system that number of times equals to be provided with restart total degree the time, provide test report by output unit.
Compare prior art, the test macro of described computer system starting time and method have fully been considered the validity of the start-up time test of computer system, avoid inaccurate and test process lack of standardization of test result.
[description of drawings]
Fig. 1 is the logical schematic of the test macro better embodiment of computer system starting time of the present invention.
Fig. 2 is the concrete implementing procedure figure of the method for testing better embodiment of computer system starting time of the present invention.
Fig. 3 is the sub-implementing procedure figure of the start-up time of testing computer system among Fig. 2 of the present invention.
[embodiment]
As shown in Figure 1, be the logical schematic of the test macro better embodiment of computer system starting time of the present invention.The test macro of computer system starting time is built in the computing machine (not shown), is used to test the start-up time of this computer system.The test macro of this computer system starting time comprises that one is used for the testing computer system test module 10 of start-up time, and a memory storage 20 that is used for storing the data that these test module 10 implementations produce.This test module 10 links to each other with this memory storage 20, is used for storing data and call the data of storage from this memory storage 20 at this memory storage 20.This memory storage 20 is not fixed, it can be the memory device (for example: read-only register, hard disk, floppy disk etc.) of a computer-internal, can be external memory device on computers (for example: server), can also be the association of memory device with the outside memory device of computer-internal.This computing machine comprises an input media, and (for example: keyboard), an output unit (for example: display).
This test module 10 comprises that one is provided with submodule 100, an I/O submodule 102, a judgement submodule 104 and an operator module 106.
This is provided with submodule 100, is used for being provided with by this input media the required parameter of test process start-up time of computer system, and restarts the setting of number of times M in test process.This parameter that need set comprises: system for computer is restarted total degree n, the quick calling path path3 of restarting executive routine of the store path path2 of the store path path1 of parameter, test data, computer system is set.In the present embodiment, this store path path1 points to an initialization that is called REBOOT.INI file is set; This store path path2 points to the unconventional file of a TEST.AVL by name; This quick calling path path3 points to the shortcut that a computer system is restarted executive routine.
This I/O submodule 102, being used for according to above-mentioned store path path1 the above-mentioned parameter that submodule 100 settings are set being input to this REBOOT.INI file stores, read this system for computer information, this system for computer information that will read according to above-mentioned store path path2 is input in this TEST.AVL file stores, the sensing position establishment computer system of restarting the quick calling path path3 of executive routine in computer system is restarted the shortcut of executive routine, and calls the shortcut that computer system is restarted executive routine.In the present embodiment, described system for computer information comprises the information of 26 drivers from A to Z of this computing machine and the activation bit of hardware.
This I/O submodule 102 also is used for being input to storage in this memory storage 20 according to the test data that above-mentioned store path path2 produces the each restarting process of computer system.In the present embodiment, described test data comprises start time t1 and the concluding time t2 that this computer system is restarted at every turn, restarts T service time at every turn M, and average start-up time of the t3 of this computer system is input in this TEST.AVL file and stores, and provide the test report of the start-up time of computer system by this output unit.
The mode that these I/O submodule 102 establishment computer systems are restarted the shortcut of executive routine is not fixed, in the present embodiment, this I/O submodule 102 is to duplicate a system to restart the sensing position of executive routine to quick calling path path3 from the hard disk of computing machine.The test report of this system start-up time comprises: the start-up time of the computer system of the number of times that the computer system of finishing is restarted, maximum, the average start-up time of start-up time, system for computer of minimum computer system, the error message of computer system.
This judges submodule 104, be used for checking whether exist computer system to restart the shortcut of executive routine in the sensing position of quick calling path path3, whether the activation bit of checking the Driver Information of current computer system and hardware before computer system is restarted at every turn is normal, and judges that whether the number of times M of restarting of current computer system restart total degree n less than the computer system of setting.This judgement submodule 104 is to compare by the Driver Information of the computer system of will store in the activation bit of the Driver Information of current computer system and hardware and the TEST.AVL file and the activation bit of hardware, whether the activation bit of checking the Driver Information of current computer system and hardware is normal, even the activation bit of the Driver Information of the computer system of storing in the activation bit of the Driver Information of current computer system and hardware and the TEST.AVL file and hardware is identical, and then the activation bit of the Driver Information of current computer system and hardware is normal; Otherwise, then be unusual.
This operator module 106 is used for the start time t1 of will at every turn restart and concluding time t2 and carries out subtraction and calculate T service time of at every turn restarting M, by restarting T service time with all MSummation with restart number of times M and carry out average start-up time of the t3 that division arithmetic comes the computing computer system, and the number of times M of restarting of current computer system is added up.
This memory storage 20 comprise one be used to store above-mentioned parameter that submodule 100 is provided with is set parameter memory block 200 is set, the one test data memory block 201, that is used for storing the test data that test process produces is used for storage computation machine system and restarts the system of the shortcut of executive routine and restart executive routine memory block 202.Above-mentioned REBOOT.INI file is arranged in this parameter memory block 200 is set, and above-mentioned TEST.AVL file is arranged in this test data memory block 201, and the shortcut that executive routine is restarted in aforementioned calculation machine system is arranged in this system and restarts executive routine memory block 202.
To using this test module 10, carry out following elaboration to realize that reached the step of test accurately the start-up time of computer system fast.
At first, preparation work before the test, particularly, order is provided with the start-up time that submodule 100 is provided with computer system of required parameter in the test process, the parameter that I/O submodule 102 will be provided with is input to storage in this memory storage 20, read the Driver Information of computer system and the activation bit of hardware, and the activation bit of the Driver Information of this computer system that will read and hardware is input in this memory storage 20 storage, judges whether submodule 104 inspections exist this computer system to restart the shortcut of executive routine.
Then, when the shortcut of executive routine is restarted in this computer system existence, carry out the test jobs of the start-up time of this computer system, particularly, order judges whether the activation bit of the Driver Information of submodule 104 inspection current computer systems and hardware is normal, and at the activation bit of the Driver Information of current computer system and hardware just often, I/O submodule 102, operator module 106 and judge that submodule 104 carries out the collection of restarting operation and test data of this computer system.
Afterwards, after the collection of restarting operation and test data of this computer system was finished, I/O submodule 102 provided the test report of the start-up time of this computer system.
As shown in Figure 2, be the concrete implementing procedure figure of the method for testing better embodiment of computer system starting time of the present invention.At first, the start-up time that submodule 100 is provided with computer system of required parameter in the test process is set, this parameter that need be provided with comprises: system for computer is restarted total degree n, the quick calling path path3 of restarting executive routine of the store path path2 of the test data that produces in the store path path1 of parameter, the test process, computer system is set, and I/O submodule 102 is input to an initialization according to the store path path1 that is provided with the above-mentioned parameter that submodule 100 settings are set storage (step S20) among the file REBOOT.INI is set.I/O submodule 102 reads the information of 26 drivers from A to Z of this computer system and the activation bit of hardware, and according to the store path path2 of above-mentioned setting the information of this driver that reads and the activation bit of hardware is input to storage (step S21) in the TEST.AVL file.Judge submodule 104 checks whether exist this computer system to restart the shortcut of executive routine (step S22) in the sensing position of the quick calling path of above-mentioned setting path3.If exist this computer system to restart the shortcut of executive routine, judge that then submodule 104, I/O submodule 102 and operator module 106 carry out the test jobs (step S24) of this computer system starting time in the sensing position of the quick calling path of above-mentioned setting path3.
In step S22, if do not exist this computer system to restart the shortcut of executive routine in the sensing position of the quick calling path of above-mentioned setting path3, then I/O submodule 102 is created the shortcut that computer system is restarted executive routine in the sensing position of the quick calling path of above-mentioned setting path3, submodule 100 is set this number of times M of restarting is made as 1, change step S24 (step S23) subsequently over to.
As shown in Figure 3, be the sub-implementing procedure figure of the start-up time of testing computer system among Fig. 2 of the present invention.At first, judge activation bit that submodule 104 checks the Driver Information of current computer systems and hardware whether normal (step S240).If the Driver Information of current computer system and the activation bit of hardware are normal, then I/O submodule 102 calls computer system and restarts the shortcut of executive routine and restart this computer system, and according to above-mentioned store path path2 this start time t1 of restarting and the concluding time t2 of restarting is input to storage (step S242) in this TEST.AVL file.Operator module 106 is carried out subtraction with this start time t1 of restarting and concluding time t2 and is calculated T service time that this is restarted M, by restarting T service time with all MSummation with restart number of times M and carry out average start-up time of the t3 that division arithmetic comes the computing computer system, the number of times M of restarting that reaches the current computer system adds up, and the I/O submodule is input to storage (step S244) in this TEST.AVL file with the operation result of operator module 106.Judge that submodule 104 judges that whether the number of times M of restarting of current computer system restart total degree n (step S246) less than the computer system that is provided with.If the current computer system restart computer system that number of times M equals to be provided with restart total degree n, then I/O submodule 102 provides test report (step S248) by output unit.
In step S240,, then change among the step S248 if the Driver Information of current computer system and the activation bit of hardware are unusual.
In step S246, if the current computer system restart number of times M less than the computer system that is provided with restart total degree n, then return among the step S240.

Claims (12)

1. the test macro of a computer system starting time, this computing machine comprises input media, it is characterized in that, and this system comprises test module and the memory storage that links to each other with this test module, and described test module comprises:
Submodule is set, is used for being provided with the required parameter of test process start-up time of computer system by this input media;
The I/O submodule, being used for parameter with above-mentioned setting is input to this memory storage and stores, read this system for computer information, this system for computer information that reads is input in this memory storage stores, this computer system not restart the shortcut of executive routine the time create the shortcut that computer system is restarted executive routine, just often call computer system in this system for computer information and restart the shortcut of executive routine and restart this computer system, and the test data that produces in this computer system restarting process is input in this memory storage stores;
Judge submodule, be used to check the shortcut of restarting executive routine that whether has this computer system, and whether normal according to the system information of this system for computer information check current computer of storing in this memory storage; And
The operator module is used for just often calculating in the system information of current computer the test data of current computer system restarting process.
2. the test macro of computer system starting time as claimed in claim 1, it is characterized in that described parameter comprises the store path of the test data that produces in the store path of restarting total degree, parameter, this computer system restarting process of this computer system, the quick calling path of restarting executive routine of computer system.
3. the test macro of computer system starting time as claimed in claim 2, it is characterized in that the test data that produces in described this computer system restarting process comprises the average start-up time of start time that this computer system is restarted at every turn and concluding time, service time that this computer system is restarted at every turn, this computer system and adds up restarts number of times.
4. the test macro of computer system starting time as claimed in claim 1 is characterized in that, described system for computer information comprises the activation bit of Driver Information and hardware.
5. the test macro of computer system starting time as claimed in claim 3 is characterized in that, described judge that submodule also is used to judge the current computer system restart number of times whether less than the total degree of restarting of the computer system that is provided with.
6. the test macro of computer system starting time as claimed in claim 5, it is characterized in that, described computing machine also comprises output unit, described I/O submodule also be used for the current computer system restart computer system that number of times equals to be provided with restart total degree the time provide the test report of this computer system starting time by this output unit.
7. the method for testing of a computer system starting time is characterized in that, this method comprises the steps:
The start-up time that computer system is set by input media required parameter in the test process;
Store the parameter of this setting;
Read and store this system for computer information;
Check the shortcut of restarting executive routine that whether has this computer system;
If there is the shortcut of restarting executive routine of this computer system, then whether the system information according to this system for computer information check current computer of storing is normal;
Just often call this computer system in this system for computer information and restart the shortcut of executive routine and restart this computer system, with start-up time of testing this computer system and produce test data.
8. the method for testing of computer system starting time as claimed in claim 7, it is characterized in that, if there is not the shortcut of restarting executive routine of this computer system, then create the shortcut of restarting executive routine of this computer system, and change the system information normal step whether of checking current computer over to.
9. the method for testing of computer system starting time as claimed in claim 7, it is characterized in that described parameter comprises the store path of restarting total degree, parameter of this computer system, the store path of test data, the quick calling path of restarting executive routine of computer system.
10. the method for testing of computer system starting time as claimed in claim 7, it is characterized in that described test data comprises the average start-up time of start time that this computer system is restarted at every turn and concluding time, service time that this computer system is restarted at every turn, this computer system and adds up restarts number of times.
11. the method for testing of computer system starting time as claimed in claim 7 is characterized in that, described system for computer information comprises the activation bit of Driver Information and hardware.
12. the method for testing of computer system starting time as claimed in claim 9 is characterized in that, the step of testing the start-up time of this computer system and producing test data comprises:
Calculate and store the test data in the current computer system restarting process;
And the current computer system restart computer system that number of times equals to be provided with restart total degree the time, provide test report by output unit.
CNB2006100332657A 2006-01-21 2006-01-21 System and method for detecting time of starting up computer system Expired - Fee Related CN100489794C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100332657A CN100489794C (en) 2006-01-21 2006-01-21 System and method for detecting time of starting up computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100332657A CN100489794C (en) 2006-01-21 2006-01-21 System and method for detecting time of starting up computer system

Publications (2)

Publication Number Publication Date
CN101004697A CN101004697A (en) 2007-07-25
CN100489794C true CN100489794C (en) 2009-05-20

Family

ID=38703864

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100332657A Expired - Fee Related CN100489794C (en) 2006-01-21 2006-01-21 System and method for detecting time of starting up computer system

Country Status (1)

Country Link
CN (1) CN100489794C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049359A (en) * 2012-12-17 2013-04-17 浪潮电子信息产业股份有限公司 Testing method for automatic continuous refreshing PMON (process monitor) based on Loongson platform computer
CN106603463A (en) * 2015-10-14 2017-04-26 天津雅达电子商务有限公司 Method for regulation of computer system for multilevel dialogue
CN105740125B (en) * 2016-01-29 2018-03-30 四川秘无痕信息安全技术有限责任公司 Obtain Android application program launchings number and the method for time
CN107704355A (en) * 2017-10-27 2018-02-16 郑州云海信息技术有限公司 A kind of method that reboot tests are carried out under Solaris11 systems

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6721885B1 (en) * 2000-09-08 2004-04-13 International Business Machines Corporation Reducing start-up time and avoiding customer-induced system failures for personal computers
CN1512344A (en) * 2002-12-30 2004-07-14 神达电脑股份有限公司 Computer startup and shutdown testing method
CN1614532A (en) * 2004-11-16 2005-05-11 威盛电子股份有限公司 Reboot card and its method for deciding when to test the reboot mechanism
CN1622005A (en) * 2003-11-24 2005-06-01 顺德市顺达电脑厂有限公司 Power supply status automatic test method for computer apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6721885B1 (en) * 2000-09-08 2004-04-13 International Business Machines Corporation Reducing start-up time and avoiding customer-induced system failures for personal computers
CN1512344A (en) * 2002-12-30 2004-07-14 神达电脑股份有限公司 Computer startup and shutdown testing method
CN1622005A (en) * 2003-11-24 2005-06-01 顺德市顺达电脑厂有限公司 Power supply status automatic test method for computer apparatus
CN1614532A (en) * 2004-11-16 2005-05-11 威盛电子股份有限公司 Reboot card and its method for deciding when to test the reboot mechanism

Also Published As

Publication number Publication date
CN101004697A (en) 2007-07-25

Similar Documents

Publication Publication Date Title
US7376549B2 (en) System performance prediction mechanism and method based on software component performance measurements
US20090037885A1 (en) Emulating execution of divergent program execution paths
US20050160405A1 (en) System and method for generating code coverage information
CN103109276A (en) System testing method
CN100489794C (en) System and method for detecting time of starting up computer system
US20190317837A1 (en) Quantification of compute performance across multiple independently executed microservices with a state machine supported workflow graph
EP3470988A1 (en) Method for replicating production behaviours in a development environment
US20100312541A1 (en) Program test device and program
JP2003122599A (en) Computer system and program execution monitoring method in computer system
CN110580220B (en) Method for measuring code segment execution time and terminal equipment
CN109406025B (en) Stress testing method, apparatus and electronic equipment
CN111552635A (en) Data detection method, equipment, server and readable storage medium
CN112463188B (en) Network card firmware automatic upgrading method and device and computer readable storage medium
WO2019142266A1 (en) Test case generation device, test case generation method, and test case generation program
CN107085532B (en) task monitoring method and device
CN111597093B (en) Exception handling method, device and equipment thereof
CN112632174A (en) Data inspection method, device and system
CN117370092A (en) Random test program, chip detection method and device
CN115599401A (en) Publishing method, device, equipment and medium of user-defined model
CN113342698B (en) Test environment scheduling method, computing device and storage medium
CN114090357A (en) A hard disk performance testing method, device, electronic device and storage medium
CN114780412A (en) Page testing method, system, device and medium
CN113986592A (en) Log recording method, apparatus, terminal device and readable storage medium
CN113342600A (en) Method and device for monitoring program dependent plug-in
CN113407394A (en) Method, device, equipment and medium for server RAS function test

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090520

Termination date: 20100221