CN102855174B - The target program progress control method that can automatically recover in automatic test and device - Google Patents

The target program progress control method that can automatically recover in automatic test and device Download PDF

Info

Publication number
CN102855174B
CN102855174B CN201110176416.5A CN201110176416A CN102855174B CN 102855174 B CN102855174 B CN 102855174B CN 201110176416 A CN201110176416 A CN 201110176416A CN 102855174 B CN102855174 B CN 102855174B
Authority
CN
China
Prior art keywords
target program
module
file
boot entry
described target
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.)
Active
Application number
CN201110176416.5A
Other languages
Chinese (zh)
Other versions
CN102855174A (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.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201110176416.5A priority Critical patent/CN102855174B/en
Publication of CN102855174A publication Critical patent/CN102855174A/en
Application granted granted Critical
Publication of CN102855174B publication Critical patent/CN102855174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The target program progress control method that can automatically recover in a kind of automatic test and device, including: target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, set up a configuration file for recording the implementation status of the module being currently executing, and the configuration file of target program and correspondence is saved in nonsystematic subregion; Performance objective program, it is judged that if current system operation exception, then according to pre-setting automatic reboot operation system, and use the system image file access pattern operating system made in advance; After recovery system, in query configuration file record cause abnormal module id, bring into operation target program from the next module of this module id. The application present invention, can ensure in automatic test course, real user behavior under simulation windows and due to software issue cause system operation exception time, it is possible to automatic recovery system and automatically perform test process, it is ensured that automatic test continuously carry out ability.

Description

The target program progress control method that can automatically recover in automatic test and device
Technical field
The present invention relates to field of computer technology, particularly relate to the target program progress control method and device that can automatically recover in a kind of automatic test.
Background technology
Along with developing rapidly and the extensive use of Windows system of computer technology, in Windows software automated testing, it is necessary to replace people to operate tested software with program.
There is blue screen in computer, is again BSOD (BlueScreenofDeath, is abbreviated as: BSoD), as it is shown in figure 1, refer to the screen picture that Microsoft's Windows operating system is shown when recovering from a system mistake.
In the process carrying out windows software automated testing, if the security of system softwares such as measurand antivirus software or wooden horse fire wall, the test case running of automatization often will be encountered in system and there is multiple antivirus software or this kind of software carrying driver of firewall software, imperfection when beta versions such as fire walls, when there is the reasons such as bug, system operation exception will be suffered from, mainly blue screen occurs. Causing that the reason of blue screen is very complicated, situation is also a lot, and the software of blue screen occurs in the system of actually resulting in, is not limited in this kind of fail-safe software of antivirus software, if general application software exists bug, is also to cause that blue screen occurs in system.
Currently encountering system operation exception problem, a kind of solution is to unload, by user, the software causing system operation exception in the secure mode by hand, carrys out restoring system, and recovery system runs; The method needs user's manual operations, it is impossible to be applied to the software automated testing under windows.
Still an alternative is that reducing software (include SymantecGhost, a key Ghost, a key reduction smart etc. software) by Ghost carrys out restoring system, recovery system runs;
Ghost reduction software is a kind of very outstanding system reducing instrument, but carrying out system reducing operation, need nonetheless remain for being performed manually by, interface is not externally provided, for automatic test program, if meet with blue screen cannot the mode of Autonomous Control restoring system, the inadaptable software automated testing that is placed on performs flow process.
In the running of automatic test program, system operation exception is caused by software issue, how to ensure that automatic test program can revert to normal condition and continue to run with, to realize not needing the software automated testing completely of manpower intervention to simulate, be the problem being currently needed for solving.
Summary of the invention
The technical problem to be solved is to provide in a kind of automatic test the target program progress control method and device that can automatically recover, solve in the running of automatic test program, when being caused system operation exception by software issue, ensure that automatic test program can revert to the problem that normal condition continues to run with, reach the purpose of Windows system automation test.
In order to solve the problems referred to above, the invention provides the target program progress control method that can automatically recover in a kind of automatic test, comprise the steps:
Described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, set up a configuration file for recording the implementation status of the module being currently executing, and the configuration file of described target program and correspondence is saved in nonsystematic subregion;
Performance objective program, it is judged that if current system operation exception, then according to pre-setting automatic reboot operation system, and use the system image file access pattern operating system made in advance;
After recovery system, that inquires about in described configuration file record causes abnormal module id, brings into operation described target program from the next module of this module id.
Further, said method may also include, and described image file is stored in nonsystematic subregion by making in advance, provides and recover boot entry in system starting process, startup is pointed to described image file by this recovery boot entry, and uses this image file recovery operation system.
Further, said method may also include, and described target program is preconfigured to and automatically runs after os starting.
Further, said method may also include, if described judgement current system operation exception, then according to the step pre-setting automatic reboot operation system, is by being pre-configured with realization.
Further, said method may also include, and after each os starting, described target program first the acquiescence boot entry in start-up course is pointed to described recovery boot entry.
Further, said method may also include, and during described target program runs, it is judged that if current system normally restarts, is then pointed to by the acquiescence boot entry in described start-up course before restarting and normally starts boot entry.
Further, said method may also include, described described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, set up a configuration file for recording the implementation status of the module being currently executing, and the configuration file of described target program and correspondence is saved in the step of nonsystematic subregion, farther include:
It is pre-configured with the action after system operation exception for Debugging message dump to nonsystematic subregion is generated dump file.
Further, said method may also include, and after each os starting, whether having newly-increased dump file, if had, backing up the content of described newly-increased dump file in inquiry nonsystematic subregion.
Further, said method may also include, and after described target program has performed last module, collects the dump file of described backup, automatically generates and perform report.
Present invention also offers the target program operating control device that can automatically recover in a kind of automatic test, including:
Target program performs record unit, for described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, setting up a configuration file for recording the implementation status of the module being currently executing, the configuration file of wherein said target program and correspondence is saved in nonsystematic subregion; And
Object program executing unit, for performance objective program, if judging current system operation exception, then according to pre-setting automatic reboot operation system, and by after the system image file access pattern operating system that makes in advance, that inquires about in described configuration file record causes abnormal module id, brings into operation described target program from the next module of this module id.
Further, said apparatus may also include system backup unit, for manufacturing system image file and be stored in nonsystematic subregion; And
Acquiescence boot entry amendment unit, for after each os starting, acquiescence boot entry in start-up course is pointed to one and recovers boot entry, the image file of the system partitioning that this recovery boot entry is made in advance by this system backup unit and generate, described image file is pointed in startup, and uses this image file recovery operation system.
Further, said apparatus may also include, described acquiescence boot entry amendment unit, is further used in described target program runs, if judging when current system normally restarts, then before restarting, the acquiescence boot entry in described start-up course is pointed to and normally start boot entry.
Further, said apparatus may also include dispensing unit, for being configured to after os starting automatically run by the startup item of described target program, and configures the action after system operation exception for resetting automatically;
Described object program executing unit is to realize automatic reboot operation system by arranging of dispensing unit of reading.
Further, said apparatus may also include, described dispensing unit, is further used for the action after configuration system operation exception for Debugging message dump to nonsystematic subregion is generated dump file.
Further, said apparatus may also include dump file backup units, for, after each os starting, whether having newly-increased dump file, if had, backing up the content of described newly-increased dump file in inquiry nonsystematic subregion.
Further, said apparatus may also include collector unit, for, after described target program has performed last module, collecting the dump file of described backup, automatically generate and perform report.
Compared with prior art, the application present invention, can ensure that in automatic test course, simulation windows under real user behavior and due to software issue cause system operation exception time, can automatic recovery system and automatically perform test process, what guarantee automatic test continuously carries out ability, is truly realized unattended automatic test. The current present invention, through practice, has the plurality of advantages such as the software compatibility, stability, vigorousness, reliability.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that blue screen occurs in computer;
Fig. 2 is the schematic flow sheet of the target program progress control method that can automatically recover in the automatic test of the present invention;
Fig. 3 is the schematic flow sheet of an embodiment of the control method of the present invention;
Fig. 4 is that the present invention arranges the schematic diagram configured after blue screen occurs in system;
Fig. 5 is that the present invention selects a key Ghost to carry out the schematic diagram of system reducing;
Fig. 6 is the schematic diagram of the configuration file of the test case of the present invention;
Fig. 7 be the present invention configuration file c: dosh ghost the schematic diagram of gho_run.ini;
Fig. 8 be the present invention the schematic diagram of inlet point after system reboot is set;
Fig. 9 is the schematic diagram of the target program operating control device that can certainly automatically recover of the present invention.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
As in figure 2 it is shown, the target program progress control method that can automatically recover in a kind of automatic test of the present invention, comprise the steps:
Step 210, described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, set up a configuration file for recording the implementation status of the module being currently executing, and the configuration file of described target program and correspondence is saved in nonsystematic subregion;
Step 220, performance objective program, it is judged that if current system operation exception, then according to pre-setting automatic reboot operation system, and use the system image file access pattern operating system made in advance;
If described judgement current system operation exception, then according to the step pre-setting automatic reboot operation system, it is by being pre-configured with realization.
After step 230, recovery system, that inquires about in described configuration file record causes abnormal module id, brings into operation described target program from the next module of this module id.
Wherein, described image file is stored in nonsystematic subregion by making in advance, and for for the recovery boot entry in start-up course, startup is pointed to described image file by this recovery boot entry, and uses this image file recovery operation system.
The startup item of described target program is preconfigured to automatically to be run after os starting.
After each os starting, described target program first the acquiescence boot entry in start-up course is pointed to described recovery boot entry. All restoring system after system can being started every time by this setting, guarantee after system operation exception, after os starting, target program can carry out system reducing by recovery boot entry, normally starts boot entry without entering, again leads to system operation exception.
Further, during described target program runs, it is judged that if current system normally restarts, then before restarting, the acquiescence boot entry in described start-up course is pointed to and normally start boot entry. By this setting, it is possible to when normally starting after normally having performed certain module, it is not necessary to carry out system reducing, save system resource every time, also reduce the time that target program runs, improve efficiency.
Also include: be pre-configured with the action after system operation exception for Debugging message dump to nonsystematic subregion is generated dump file.
After each os starting, whether inquiry nonsystematic subregion there is newly-increased dump file, if had, backing up the content of described newly-increased dump file.
Farther include: after described target program has performed last module, collect the dump file of described backup, automatically generate and perform report.
Pass through dump file, it is possible to clearly analyze the concrete reason of the module causing system operation exception, it is simple to user is adjusted, it is to avoid reappear system operation exception.
As it is shown on figure 3, control method of the present invention occurs the embodiment of restoring system during blue screen for test module in testing, comprise the following steps:
Step 310, system being backed-up and stores, being arranged to the configuration file of system test, this configuration file is for recording the execution information of test module;
Wherein, by the mode of Ghost mirror image, system can be backed-up.
After system is backed-up, can pass through to arrange the mode of system registry, make system restart when blue screen occurs, and obtain blue screen Debugging message when blue screen occurs in system and store this blue screen Debugging message.
Wherein, the execution information testing module includes the serial number (CaseID) of test module and the status information of test module.
In the status information of test module, 0 represents the original state of whole test, represents that test program needs to bring into operation; 1 represents beginning state, represents that test module starts to perform; 2 represent done state, represent that test module performs to terminate. Such as: serial number is the test module of 35, and its status information is 2, illustrate that it has completed test; Serial number is the test module of 36, and its status information is 1, illustrates that it starts test, it is likely that test does not pass through, the like. The serial number of status information and its correspondence testing module can be passed through, determine which test module present stage goes to, and will also realize that the implementation status of executed test module, for in status information 0,1 and 2, simply enumerate, for the indicating mode of other status informations, the present invention is not construed as limiting.
Step 320, startup automatic test, perform test module successively and new configuration file is more tested the execution information of module, if judgement restarts system after there is blue screen, system reducing is carried out, according to the execution information of the test module of record in configuration file, it is determined that cause that the test module of blue screen occurs in system by the system backup stored, skip this test module, performing next one test module, the rest may be inferred, until completing the test of all test modules.
Wherein, to carry out system reducing be by the mode of Ghost according to storage system backup system is reduced.
Described according to the execution information of the test module of record in configuration file, it is determined that to cause that the test module of blue screen occurs in system, perform the step of next one test module, including:
Serial number according to the status information He its correspondence of testing module in configuration file, it is determined that cause that the serial number of the test module of blue screen occurs in system, performs the test module of next serial number.
Such as: when going to the 3rd test module, blue screen occur, restart after system and carry out system reducing, being 1 according to the state of the 3rd test module of record in configuration file, system determines that the 3rd module causes blue screen, performs the 4th test module; When going to the 8th test module, blue screen occurs again, restart after system and carry out system reducing, it is 1 according to the state of the 3rd test module of record in configuration file, and the state of the record the 8th test module is also 1, now system determines that current 8th module causes blue screen, performs the 9th test module, the rest may be inferred, until completing the test of all test modules.
After completing the test of all test modules, also include: read the blue screen Debugging message of storage, the reason of the test module causing that blue screen occurs in system can be analyzed according to blue screen Debugging message.
Farther include: before bringing into operation after restarting system every time, carry out system reducing by the system backup stored. Namely after the execution process being successfully completed a test module, restart system, system reducing can be carried out. So by system introducing to reduction-mode after restarting system, can automatically into the system reducing process of Ghost, automatic recovery system after blue screen now occurs.
Present invention can ensure that automatic test course is when the real user behavior simulated under windows causes system operation exception (as blue screen occurs in system) due to software issue (program or drive compatibility issue), can automatic recovery system and automatically perform test process, what guarantee automatic test continuously carries out ability, is truly realized unattended automatic test. The current present invention, through practice, has the plurality of advantages such as the software compatibility, stability, vigorousness, reliability.
From brand-new angle, the present invention considers that existing technology performs pattern, originally artificial operation is replaced with the execution automatically of computer, it is truly realized the unmanned in automatic test and automatic recovery system function, greatly reduce workload, improve the work efficiency of automatic test, this invention can be widely used in the solution of all kinds of software automated testing.
Another embodiment of the present invention is presented herein below, comprises the steps:
The image file of manufacturing system subregion in advance, and store to nonsystematic subregion, to provide the recovery boot entry in start-up course, startup is pointed to described image file by this recovery boot entry, and uses this image file recovery operation system;
In advance the startup item of described target program is configured to after os starting automatically run, and configures the action after system operation exception for resetting automatically;
Described target program is sequentially divided into multiple module, and is one unique mark of each module assignment, set up a configuration file for recording the module id being currently executing, and the configuration file of described target program and correspondence is saved in nonsystematic subregion;
After each os starting, first the acquiescence boot entry in start-up course is pointed to described recovery boot entry by described target program, and inquire about in described configuration file the module id of record, bring into operation described target program from the next module of this module id.
An instantiation according to above-mentioned embodiment is presented herein below, and whole execution flow process can be divided into 3 parts:
One, the initialization context preparatory stage
A) initialize system environments and make Ghost mirror image
I. system environments (being used for the CrashDump mode after system blue screen is set and follow-up system autostart function) is initialized.
1. configure the startup item (allowing automatic test program automatically run after every time restarting system) of automatic test program
A) need to arrange one string item auto of establishment under system registry list item HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows CurrentVersion Run, content point to start automatic test program path, for instance: e: autotool autotest.exe.
2. as shown in Figure 4, the configuration after blue screen occurs in system is set:
A) human window input controlsysdm.cpl, starts system property window,
B) click senior-> to arrange, be on and fault recovery window;
C) setting is resetted automatically;
The write complete core dump of Debugging message-> (obtaining complete blue screen Debugging message during for obtaining fulldump and blue screen) d) is set;
E) dump file path is set, it is noted here that use system default path %SystemRoot% MEMORY.DMP, this refers to c: under windows path, All Files under c dish all can be recovered to fall by each system reducing, MEMORY.DMP file just cannot remain, be therefore arranged on here e: MEMORY.DMP;
F) any existing file of covering is cancelled. (MEMORY.DMP also for after each blue screen of reservation);
G) initialized system reducing mirror image is made, as it is shown in figure 5, select a key Ghost to realize;
H) the system image GHO file made can automatically save in systems under last drive, for instance F:��1 C_PAN.GHO, so far environmental preparation has worked.
Two, automatic test cases performs the stage
A) automatic test program performs a collection of test case (namely testing module) due to needs, it is thus desirable to record a configuration file under test catalogue, as shown in Figure 6, for preserving the test case ID (CaseID) of last execution; Simultaneously need to record one performs pattern, definition 0 here is the original state of whole test, and test program needs to bring into operation, and 1 represents beginning state, represents that CaseID starts to perform, and 2 represent done state, represents that CaseID performs to terminate.
B) automatically performing after restarting system owing to being provided with automatic test program in the reduction mirror image of test execution environments, therefore, program can pass through the value the configuring mode switch as the execution of automatic test program every time. Working as of acquiescence is absent from above-mentioned configuration file under automatization's catalogue, be not carried out automatic test case, but automatically terminate after normally starting with system after restarting system.
When c) starting whole automatic test program, tester has disposed measurand by hand and has namely installed the software of beta version in systems every time, so that it may start automatic test program.
D) automatic test program requires over a batch processing before activation first to arrange the mode value of configuration file is 0, caseID arrange needs from which use-case start to perform, and then calling interface Auto_reboot (), restarts system.
E) now automatic test program with system start-up, bring into operation, the moment automatic test program brought into operation after every time restarting system arranges system at once and enters reduction-mode (this is the key arranged in test), but does not restart system.
Automatic test program brings into operation:
I. the system that arranges enters reduction-mode, it is possible to calling external interface Auto_setrecover () and complete, its principles illustrated is as follows:
1. enter system recovery at present, depend on corresponding menu.lst in Ghost and set the One-key recovery systemic-function of a key reduction;
2. as it is shown in fig. 7, preserve configuration file c: dosh ghost gho_run.ini:
Wherein timeout represents to restart after rear waiting time 5s, default=2 representative is restarted and enters system reducing pattern, for the Ghost mirror image that automatic reduction step 1 init state preserves, recovery system.
3. as shown in Figure 8, inlet point after system reboot is set;
4. specifically, under XP system directly amendment c: boot.ini, wherein default=C: GHLDR (acquiescence enter Ghost reduce menu);
5. specifically, under Win7 or vista system configure bootmgr, arrange startup item be C: GHLDR.
Ii following automatic test program starts properly functioning, order implementation of test cases.
1. when meeting with blue screen in running, system can initially enter dumpmemory state automatically, after this process completes, system is restarted automatically, due to every secondary program system run before all by system introducing to reduction-mode, can automatically into the system reducing process of Ghost after blue screen now occurs, automatic recovery system, after system recovery, automatic test program reads local configuration file, owing to being configured with reservation before blue screen, find have a new MEMORY.DMP file to occur simultaneously, now it is believed that the last time blue screen occurred, start to back up MEMORY.DMP, skip a caseID simultaneously, automatically next use-case is performed, thus ensure that a whole set of program circuit has been smoothed out.
2. when restarting system in system operation normally without blue screen generation, program recovers the system reducing state configured before before restarting, operating system can normally be restarted until a whole set of testing process has run.
3 EP (end of program) states
A) when automatic test program completes the execution of the last item test case, system automatically generates report, before collection, the MEMORY.DMP file of backup, completes whole automatic test course, it is possible to produced the reason of blue screen by each test case of MEMORY.DMP file analysis.
It is based on the basis of existing Ghost reduction software (wherein indication is Ghost one-key restoration software) improvement and expansion that carry out in instances, certainly it is fixed to be not limited, as long as system backup can be realized and the mode reduced can serve as embodiments of the present invention.
As shown in Figure 9, a kind of target program operating control device that can automatically recover in the automatic test of the present invention, including: target program performs record unit 901, object program executing unit 902, system backup unit 903, acquiescence boot entry amendment unit 904, dispensing unit 905, dump file backup units 906 and collector unit 907, wherein
Target program performs record unit 901, for described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, setting up a configuration file for recording the implementation status of the module being currently executing, the configuration file of wherein said target program and correspondence is saved in nonsystematic subregion;
Object program executing unit 902, for performance objective program, if judging current system operation exception, then according to pre-setting automatic reboot operation system, and by after the system image file access pattern operating system that makes in advance, that inquires about in described configuration file record causes abnormal module id, brings into operation described target program from the next module of this module id;
System backup unit 903, for manufacturing system image file and be stored in nonsystematic subregion;
Acquiescence boot entry amendment unit 904, for after each os starting, acquiescence boot entry in start-up course is pointed to one and recovers boot entry, the image file of the system partitioning that this recovery boot entry is made in advance by this system backup unit 903 and generate, described image file is pointed in startup, and uses this image file recovery operation system;
Dispensing unit 905, for the startup item of described target program is configured to after os starting automatically run, and configuring the action after system operation exception for resetting automatically, the action after configuration system operation exception is that Debugging message dump to nonsystematic subregion is generated dump file;
Whether dump file backup units 906, for, after each os starting, having newly-increased dump file in inquiry nonsystematic subregion, if had, backing up the content of described newly-increased dump file;
Collector unit 907, for, after described target program has performed last module, collecting the dump file of described backup, automatically generate and perform report.
Described acquiescence boot entry amendment unit 904, is further used in described target program runs, it is judged that if current system normally restarts, then pointed to by the acquiescence boot entry in described start-up course before restarting and normally start boot entry.
Described object program executing unit 902 is to realize automatic reboot operation system by arranging of dispensing unit 905 of reading.
The present invention is that all kinds of automatic test program encounters system when there is blue screen in the process of implementation, a kind of recovery process automatically is provided, and recovery test environment ensure that the solution continued executing with, for guaranteeing automatic test program in the process of implementation, particularly perform the software compatibility, during robustness testing automatic test cases, completely disengage from manual monitoring, there is provided strong guarantee, it is ensured that automatic test program reliability of operation and seriality.
The above; being only the present invention preferably detailed description of the invention, but protection scope of the present invention is not limited thereto, any people being familiar with this technology is in the technical scope that disclosed herein; the change that can readily occur in or replacement, all should be encompassed within protection scope of the present invention. Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (14)

1. the target program progress control method that can automatically recover in an automatic test, it is characterised in that comprise the steps:
The startup item of described target program is preconfigured to and automatically runs after os starting;
Described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, set up a configuration file for recording the implementation status of the module being currently executing, and the configuration file of described target program and correspondence is saved in nonsystematic subregion;
Performance objective program, it is judged that if current system operation exception, then according to pre-setting automatic reboot operation system, and use the system image file access pattern operating system made in advance;
After recovery system, that inquires about in described configuration file record causes abnormal module id, brings into operation described target program from the next module of this module id.
2. the method for claim 1, it is characterised in that also include:
Described image file is stored in nonsystematic subregion by making in advance, provides and recover boot entry in system starting process, and startup is pointed to described image file by this recovery boot entry, and uses this image file recovery operation system.
3. the method for claim 1, it is characterised in that
If described judgement current system operation exception, then according to the step pre-setting automatic reboot operation system, it is by being pre-configured with realization.
4. method as claimed in claim 2, it is characterised in that farther include:
After each os starting, described target program first the acquiescence boot entry in start-up course is pointed to described recovery boot entry.
5. method as claimed in claim 2, it is characterised in that farther include:
During described target program runs, it is judged that if current system normally restarts, then before restarting, the acquiescence boot entry in described start-up course is pointed to and normally start boot entry.
6. the method for claim 1, it is characterized in that, described described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, set up a configuration file for recording the implementation status of the module being currently executing, and the configuration file of described target program and correspondence is saved in the step of nonsystematic subregion, farther include:
It is pre-configured with the action after system operation exception for Debugging message dump to nonsystematic subregion is generated dump file.
7. method as claimed in claim 6, it is characterised in that farther include:
After each os starting, whether inquiry nonsystematic subregion there is newly-increased dump file, if had, backing up the content of described newly-increased dump file.
8. method as claimed in claim 7, it is characterised in that farther include:
After described target program has performed last module, collect the dump file of described backup, automatically generate and perform report.
9. the target program operating control device that can automatically recover in an automatic test, it is characterised in that including:
Target program performs record unit, for described target program is sequentially divided into multiple there is uniquely identified can the module of independent operating, setting up a configuration file for recording the implementation status of the module being currently executing, the configuration file of wherein said target program and correspondence is saved in nonsystematic subregion; And
Object program executing unit, for performance objective program, if judging current system operation exception, then according to pre-setting automatic reboot operation system, and by after the system image file access pattern operating system that makes in advance, that inquires about in described configuration file record causes abnormal module id, brings into operation described target program from the next module of this module id;
Dispensing unit, for being configured to after os starting automatically run by the startup item of described target program.
10. device as claimed in claim 9, it is characterised in that also include:
System backup unit, for manufacturing system image file and be stored in nonsystematic subregion, described image file recovers boot entry for providing in system starting process; And
Acquiescence boot entry amendment unit, for, after each os starting, the acquiescence boot entry in start-up course being pointed to this recovery boot entry, startup is pointed to described image file by this recovery boot entry, and uses this image file recovery operation system.
11. device as claimed in claim 10, it is characterised in that
Described acquiescence boot entry amendment unit, is further used in described target program runs, it is judged that if current system normally restarts, then pointed to by the acquiescence boot entry in described start-up course before restarting and normally start boot entry.
12. device as claimed in claim 9, it is characterised in that
Described dispensing unit, is further used for the action after configuration system operation exception for Debugging message dump to nonsystematic subregion is generated dump file.
13. device as claimed in claim 12, it is characterised in that farther include:
Whether dump file backup units, for, after each os starting, having newly-increased dump file in inquiry nonsystematic subregion, if had, backing up the content of described newly-increased dump file.
14. device as claimed in claim 13, it is characterised in that farther include:
Collector unit, for, after described target program has performed last module, collecting the dump file of described backup, automatically generate and perform report.
CN201110176416.5A 2011-06-28 2011-06-28 The target program progress control method that can automatically recover in automatic test and device Active CN102855174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110176416.5A CN102855174B (en) 2011-06-28 2011-06-28 The target program progress control method that can automatically recover in automatic test and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110176416.5A CN102855174B (en) 2011-06-28 2011-06-28 The target program progress control method that can automatically recover in automatic test and device

Publications (2)

Publication Number Publication Date
CN102855174A CN102855174A (en) 2013-01-02
CN102855174B true CN102855174B (en) 2016-06-01

Family

ID=47401778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110176416.5A Active CN102855174B (en) 2011-06-28 2011-06-28 The target program progress control method that can automatically recover in automatic test and device

Country Status (1)

Country Link
CN (1) CN102855174B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572347B (en) * 2014-12-02 2018-01-30 上海爱数信息技术股份有限公司 Based on block level restoration and edit the registry and inject the system recovery method of driving
CN105487972A (en) * 2014-12-31 2016-04-13 中国信息安全认证中心 WinPE (Windows Preinstallation Environment)-free software test method under multiple operating systems
CN104579989B (en) * 2015-01-14 2017-11-21 清华大学 Member function consistency verification method and device based on route switching normal form
CN105701404B (en) * 2016-01-04 2018-06-05 广东欧珀移动通信有限公司 Virus method, device and the mobile terminal of mobile terminal
CN107577591A (en) * 2016-07-05 2018-01-12 中兴通讯股份有限公司 A kind of method, apparatus and system of automatic test abnormal protection
CN107801064B (en) * 2016-09-05 2020-08-18 中国移动通信集团公司 Self-repairing method and device for multi-screen interactive system
CN106941672A (en) * 2017-03-09 2017-07-11 东软集团股份有限公司 The method and device of application software abnormality processing
CN107329894B (en) * 2017-06-21 2020-05-12 广州华多网络科技有限公司 Application program system testing method and device and electronic equipment
CN109597656A (en) * 2017-09-28 2019-04-09 北京国双科技有限公司 Application executing method and device
CN107844331B (en) * 2017-11-23 2021-01-01 腾讯科技(成都)有限公司 Method, device and equipment for generating boot configuration file
JP6819660B2 (en) * 2018-09-26 2021-01-27 横河電機株式会社 Process control system, process control device, and program update method
RU2739866C2 (en) * 2018-12-28 2020-12-29 Акционерное общество "Лаборатория Касперского" Method for detecting compatible means for systems with anomalies
CN110309128B (en) * 2019-07-05 2020-07-17 广东铭太信息科技有限公司 Oracle backup file automatic importing device, implementation method thereof and method for importing backup file by using device
CN110990283A (en) * 2019-12-04 2020-04-10 中国直升机设计研究所 Method for automatically testing robustness of airborne display and control software
CN111124728B (en) * 2019-12-12 2024-02-23 加弘科技咨询(上海)有限公司 Service automatic recovery method, system, readable storage medium and server
CN111737138B (en) * 2020-06-28 2023-05-26 杭州迪普科技股份有限公司 Automatic recovery system and method for test environment
CN112328428B (en) * 2020-11-03 2023-12-19 厦门亿联网络技术股份有限公司 Method and system for restoring factory configuration of embedded equipment and embedded equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6219782B1 (en) * 1997-04-29 2001-04-17 Microsoft Corporation Multiple user software debugging system
CN101159498A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 Method of testing radio frequency hardware module
CN101174240A (en) * 2006-11-03 2008-05-07 凌阳科技股份有限公司 Software testing management method and system thereof
CN101876940A (en) * 2009-11-30 2010-11-03 北京飞天诚信科技有限公司 Automatic test method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6219782B1 (en) * 1997-04-29 2001-04-17 Microsoft Corporation Multiple user software debugging system
CN101174240A (en) * 2006-11-03 2008-05-07 凌阳科技股份有限公司 Software testing management method and system thereof
CN101159498A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 Method of testing radio frequency hardware module
CN101876940A (en) * 2009-11-30 2010-11-03 北京飞天诚信科技有限公司 Automatic test method and device

Also Published As

Publication number Publication date
CN102855174A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN102855174B (en) The target program progress control method that can automatically recover in automatic test and device
CN102637144B (en) System fault processing method and device
CN112948157B (en) Server fault positioning method, device and system and computer readable storage medium
US5745669A (en) System and method for recovering PC configurations
US7428663B2 (en) Electronic device diagnostic methods and systems
CN101876940B (en) Automatic test method and device
US20150100829A1 (en) Method and system for selecting and executing test scripts
US20150100832A1 (en) Method and system for selecting and executing test scripts
CN101556547B (en) Safe method and system used for remotely upgrading embedded Linux kernel
JPH0816408A (en) Information processor
CN104699615B (en) A kind for the treatment of method and apparatus of the system failure
KR100952585B1 (en) Method and system for automatic recovery of an embedded operating system
CN109032838B (en) Automatic verification method for consistency of backup and recovery data of virtual machine
US20150100830A1 (en) Method and system for selecting and executing test scripts
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN110119330A (en) Method for automatically restoring BIOS file of cloud backup server BIOSROM
CN111090546A (en) Method, device and equipment for restarting operating system and readable storage medium
US10929261B1 (en) Device diagnosis
CN111984195A (en) Method and device for improving stability of embedded Linux system
CN104699569B (en) A kind of MQX operation system images structure, MQX operating systems, power information acquisition terminal and image update method
TWI786871B (en) Computer and system bootup method
CN111831484B (en) Automatic backup and restoration method for system
CN114020530A (en) Automatic factory backup method and system for operating system
US7389442B1 (en) Apparatus and method for self diagnosis, repair, removal by reversion of computer problems from desktop and recovery from booting or loading of operating system errors by removable media
Headrick et al. Automated configuration of modern ATE

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160429

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Applicant after: Qizhi software (Beijing) Co.,Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

Applicant before: Qizhi software (Beijing) Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220728

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230705

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.