CN102236598A - Method and device for testing software - Google Patents

Method and device for testing software Download PDF

Info

Publication number
CN102236598A
CN102236598A CN2010101647557A CN201010164755A CN102236598A CN 102236598 A CN102236598 A CN 102236598A CN 2010101647557 A CN2010101647557 A CN 2010101647557A CN 201010164755 A CN201010164755 A CN 201010164755A CN 102236598 A CN102236598 A CN 102236598A
Authority
CN
China
Prior art keywords
tested program
described tested
program
correspondence
test parameter
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.)
Granted
Application number
CN2010101647557A
Other languages
Chinese (zh)
Other versions
CN102236598B (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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201010164755.7A priority Critical patent/CN102236598B/en
Publication of CN102236598A publication Critical patent/CN102236598A/en
Application granted granted Critical
Publication of CN102236598B publication Critical patent/CN102236598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and device for testing software. The method comprises the following steps of: acquiring a tested program and a testing parameter corresponding to the tested program; testing the tested program according to the testing parameter; and restarting the tested program according to the testing parameter if the tested program exits from a testing process, and continuously executing a testing operation on the tested program according to the testing parameter. In the invention, when MTTF (Mean Time To Failure) of the tested program is tested and the tested program normally exits because an escape key is pressed through simulation operation, the tested program can be automatically restored to an application scene before exit through a preset scene restoration script, so that normal implementation of the testing process is guaranteed, and the MTTF of the tested program can be accurately tested.

Description

A kind of method of testing of software and device
Technical field
The present invention relates to computer application field, particularly relate to a kind of method of testing and device of software.
Background technology
Along with the fast development of science and technology, various types of terminals continue to bring out, and the function of terminal is enriched constantly.User's demand has been enriched in the variation of termination function, and wherein, the function of terminal comprises connecing makes a phone call, receives and dispatches note, receiving and dispatching mail, plays games, listens to the music, sees a film etc.But, when termination function is from strength to strength, also can causes problems such as terminal frequently occurs crashing, restarts, can't converse, thereby cause great inconvenience to the user owing to the defective of each functional software.
As can be seen, one of terminal key factor that the problems referred to above occur is that each software of terminal exists quality problems.Therefore, before each software issue of terminal, need carry out necessary test to the software quality of terminal, and improve the software quality of terminal, thereby reduce the probability that the user encounters problems in the process of using corresponding software.
In order to address the above problem, proposed a kind of in the prior art by obtaining the mode that MTTF (Mean TimeTo Failure, mean free error time) determines software quality.Wherein, MTTF is meant and allows program use each function of tested program (being the program of terminal software correspondence) always, and calculates the averaging time of tested program from bringing into use to makeing mistakes.As can be seen, the mean free error time is long more, and the reliability of terminal software is high more.Therefore, MTTF becomes the important evidence of user when selecting terminal software.In sum, test mean free error time MTTF is the important means that detects software reliability.
But in realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
In the prior art, when tested program being carried out the MTTF test, because test needs simulation always to use tested program, operation in this simulation process is an operating process at random, so this simulation process may be pressed ESC Escape by simulated operation, thereby causes tested program normally to withdraw from; At this moment,, need to continue the MTTF of test tested program, promptly need to log on again the MTTF of the interface continuation test tested program before withdrawing from because tested program for normally withdrawing from, is not owing to withdrawing from that failure and other reasons causes.
But, in some special application scenarioss, for example, when A software is carried out the MTTF test, owing to need to start A software and manual login in the MTTF test process, start MTTF at last and carry out random test, if simulated operation is by arriving ESC Escape in simulation process, and normally withdraw from A software, at this moment, MTTF test to A software does not finish, still need analogue-key, need information such as user name or password during still owing to the login of A software, and stochastic simulation almost is impossible by bond energy input right user name or password, take place by situation about can't login once more after withdraw from thereby cause A software to simulated operation, also can't test most of function after the login again the MTTF test of A software to ESC Escape.
Summary of the invention
The invention provides a kind of method of testing and device of software, after withdrawing from, can restart this software, and continue the MTTF of this software of test at software.
In order to achieve the above object, the invention provides a kind of method of testing of software, said method comprising the steps of:
Obtain the test parameter of tested program and described tested program correspondence;
According to described test parameter described tested program is tested;
If tested program withdraws from described in the test process, restart described tested program according to described test parameter, and continue to carry out the operation of described tested program being tested according to described test parameter.
Preferably, described test parameter comprises following content: described tested program corresponding simulating keying frequency, and the working time of described tested program correspondence, the scene of described tested program correspondence is recovered script;
Obtain the test parameter of described tested program correspondence, comprising: the scene of obtaining described tested program correspondence is recovered script, is specially:
When described tested program starts first, write down the input information of described tested program correspondence, and obtain the scene recovery script of described tested program correspondence according to described input information.
Preferably, tested program described in the described test process withdraws from and comprises:
Judge whether described tested program is that the simulation ESC Escape causes described tested program to withdraw from;
If the simulation ESC Escape causes described tested program to withdraw from, judge that described tested program is for normally withdrawing from;
Cause described tested program to withdraw from if not the simulation ESC Escape, judge that described tested program is for withdrawing from unusually.
Preferably, judge that described tested program for after withdrawing from unusually, also comprises:
Write down the information that described tested program withdraws from unusually, and when the time of described tested program being tested according to described test parameter arrives the working time of described tested program correspondence, the mean free error time MTTF of the described tested program of information calculations that withdraws from unusually according to described tested program.
Preferably, restart described tested program, comprising according to described test parameter:
The input information that recovers in the script according to the scene of described tested program correspondence restarts described tested program, and recovers described tested program to withdrawing from preceding state.
The present invention also proposes a kind of proving installation of software, comprising:
Acquisition module is used to obtain the test parameter of tested program and described tested program correspondence;
Test module is used for according to the described test parameter that described acquisition module obtains described tested program being tested;
Start module, be used for when tested program withdraws from described in the test process, the described test parameter that obtains according to described acquisition module restarts described tested program.
Preferably, described test parameter comprises following content: described tested program corresponding simulating keying frequency, and the working time of described tested program correspondence, the scene of described tested program correspondence is recovered script;
Described acquisition module specifically is used for, and obtains the scene of described tested program correspondence and recovers script; Described acquisition module further comprises:
Record sub module is used for writing down the input information of described tested program correspondence when described tested program starts first;
Obtain submodule, be used for obtaining the scene recovery script of described tested program correspondence according to the input information of described record sub module record.
Preferably, also comprise:
Judge module is used to judge whether described tested program is that the simulation ESC Escape causes described tested program to withdraw from; If the simulation ESC Escape causes described tested program to withdraw from, judge that described tested program is for normally withdrawing from; Cause described tested program to withdraw from if not the simulation ESC Escape, judge that described tested program is for withdrawing from unusually.
Preferably, also comprise:
Logging modle, be used to write down the information that described tested program withdraws from unusually, and when the time of described tested program being tested according to described test parameter arrives the working time of described tested program correspondence, the mean free error time MTTF of the described tested program of information calculations that withdraws from unusually according to described tested program.
Preferably,
Described startup module specifically is used for, and the input information that recovers in the script according to the scene of described tested program correspondence restarts described tested program, and recovers described tested program to withdrawing from preceding state.
Compared with prior art, the present invention has the following advantages: when the MTTF of test tested program, when simulated operation when causing tested program normally to withdraw to ESC Escape, application scenarios before can recovering script and tested program is automatically restored to withdraw from by preset scene, guarantee normally carrying out of test process, thereby can test out the MTTF of tested program accurately.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method for testing process flow diagram of a kind of software of the present invention's proposition;
Fig. 2 is the method for testing process flow diagram of a kind of software of proposition under a kind of application scenarios of the present invention;
Fig. 3 is the proving installation structural drawing of a kind of software of the present invention's proposition;
Fig. 4 is the proving installation structural drawing of the another kind of software of the present invention's proposition.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not paying the every other embodiment that is obtained under the creative work prerequisite.
Among the present invention, by being set, scene recovers script, when the MTTF of test tested program, when simulated operation when causing tested program normally to withdraw to ESC Escape, application scenarios before can recovering script and tested program is automatically restored to withdraw from by preset scene, do not need equipment to interfere, guaranteed normally carrying out of test process, thereby can test out the MTTF of tested program accurately.
The present invention proposes a kind of method of testing of software, as shown in Figure 1, said method comprising the steps of:
Step 101 is obtained the test parameter of tested program and described tested program correspondence.Wherein, described test parameter comprises following content: described tested program corresponding simulating keying frequency, the working time of described tested program correspondence, the scene of described tested program correspondence is recovered script.
In this step, obtain the test parameter of described tested program correspondence, comprise: the scene of obtaining described tested program correspondence is recovered script, at this moment, the scene recovery script that obtains described tested program correspondence is specially: when described tested program starts first, write down the input information of described tested program correspondence, and obtain the scene recovery script of described tested program correspondence according to described input information.
Step 102 is tested described tested program according to described test parameter.
Step 103 if tested program withdraws from described in the test process, restarts described tested program according to described test parameter, and forwards in the step 102, continues to carry out the operation of described tested program being tested according to described test parameter.Wherein, restart described tested program according to described test parameter, comprising: the input information that recovers in the script according to the scene of described tested program correspondence restarts described tested program, and recovers described tested program to withdrawing from preceding state.
It should be noted that tested program described in the test process withdraws from the two kinds of situations that are divided into, a kind of situation, another kind of situation for withdrawing from unusually for normally withdrawing from.Therefore, when tested program withdraws from described in the described test process, comprising: judge whether described tested program is that the simulation ESC Escape causes described tested program to withdraw from; If the simulation ESC Escape causes described tested program to withdraw from, judge that described tested program is for normally withdrawing from; Cause described tested program to withdraw from if not the simulation ESC Escape, judge that described tested program is for withdrawing from unusually.
In addition, judge that described tested program is for after withdrawing from unusually, also comprise: write down the information that described tested program withdraws from unusually, and when the time of described tested program being tested according to described test parameter arrives the working time of described tested program correspondence, the mean free error time MTTF of the described tested program of information calculations that withdraws from unusually according to described tested program.
As seen, among the present invention, when the MTTF of test tested program, when simulated operation when causing tested program normally to withdraw to ESC Escape, application scenarios before can recovering script and tested program is automatically restored to withdraw from by preset scene, guarantee normally carrying out of test process, thereby can test out the MTTF of tested program accurately.
In order more clearly to set forth technical scheme provided by the invention, the method for testing of the software of the present invention's proposition is discussed in detail below in conjunction with a kind of concrete application scenarios.
A kind of method of testing of software is provided under a kind of application scenarios of the present invention, as shown in Figure 2, may further comprise the steps:
Step 201 is provided with tested program and the test parameter relevant with this tested program.
Wherein, the test parameter relevant with this tested program includes but not limited to: tested program corresponding simulating keying frequency, the working time of tested program correspondence, the scene of tested program correspondence is recovered script etc.
Need to prove, in this step, the main body that execution is provided with tested program and the test parameter relevant with this tested program can be equipment arbitrarily, for example, when needs were provided with tested program on the terminal and the test parameter relevant with this tested program, the main body of then carrying out this step was a terminal, wherein, this terminal includes but not limited to mobile phone terminal, the network terminal, mobile communication terminal etc.
In actual applications, on above-mentioned each main body, can carry out relevant operation, promptly in this step, can tested program and the test parameter relevant with this tested program be set by the MTTF testing tool by the MTTF testing tool.Certainly, in actual applications, can also carry out the process that tested program and the test parameter relevant with tested program are set in this step, give unnecessary details no longer in detail among the present invention for other the software or the functional entity of equipment.
Concrete, in the test parameter relevant with tested program, this tested program corresponding simulating keying frequency is meant the keying frequency according to each function in the practical application, the keying frequency of the tested program that simulates, for example, if when this tested program needed per minute to be beaten button 30 times at random in the practical application, it was 30 times/minute that the analogue-key frequency then can be set.
Be meant according to the actual needs that the working time of the tested program of setting, for example, if when needing to test the MTTF of tested program in 60 minutes in the practical application, be 60 minutes the working time that tested program then can be set the working time of this tested program.
This scene is recovered script and is meant when tested program starts first, recovers script according to the scene that the input information of tested program correspondence obtains.Wherein, in actual applications, when tested program starts first, need input information (this information is input information) such as user name, password, at this moment, need recover script according to the scene of information setting tested program correspondences such as this user name, password, for example, when tested program is A software (tested program), when landing first, A software need be imported username and password, at this moment, needs that this username and password is recorded into scene and recovers script.
Need to prove; when the input information in this scene recovery script is not limited to land tested program first; the specifying information of the username and password of input; also can be other shortcut or link; all can realize that the scene of scene recovery effects among the present invention recovers script all within protection domain of the present invention, give unnecessary details no longer in detail at this.
Step 202 is recovered the script startup tested program according to scene.
After tested program withdraws from, because A software can sign in in this A software after need importing username and password information, so when the stochastic simulation button, can't simulate username and password information accurately.Among the present invention, by being set, scene recovers script, and this scene recovers to have write down in the script username and password information of this A software, therefore, can arrive this A software according to the username and password information registration that this scene is recovered in the script, promptly after tested program withdraws from, can recover this tested program of script startup according to this scene.
Step 203 is tested this tested program according to the mode of stochastic simulation button.Wherein, after tested program is activated, need simulate each function of tested program by the mode of stochastic simulation button.
Concrete, owing in above-mentioned steps, be provided with the working time of the tested program of tested program corresponding simulating keying frequency and tested program correspondence, then in this step, need simulate each function of tested program according to this analogue-key frequency, and need be according to whether arriving this working time the real-time working time of judging this tested program of this working time, if arrive this working time, then finish the operation that this tested program is tested; If do not arrive this working time, then continue to carry out the associative operation among the present invention.
Further, in the process of this tested program being tested according to the mode of stochastic simulation button, because the mode of analogue-key is a randomness, then analogue-key might be simulated ESC Escape, thereby cause tested program to withdraw from, this withdraws from situation for normally withdrawing from.In addition, in the process of tested program being carried out the MTTF test, tested program may cause tested program to withdraw from owing to breaking down in the MTTF test process, and this withdraws from situation for withdrawing from unusually.
Under the situation that normally withdraws from or withdraw from unusually, in order to guarantee proceeding of MTTF test, need restart this tested program, promptly recover this tested program to withdrawing from preceding state, at this moment, need to recover script by the above-mentioned scene of operation, tested program is returned to the preceding state that withdraws from, thereby guaranteed proceeding of MTTF test, given unnecessary details explanation no longer in detail in this step in the superincumbent step of this process.
Step 204 judges whether tested program withdraws from, if do not withdraw from, then continues execution in step 203; If withdraw from, then execution in step 205.
Among the present invention, in the process of this tested program being tested, need the real-time tested program of judging whether to withdraw from, to guarantee the normal operation of tested program according to the mode of stochastic simulation button.
Step 205, the situation that withdraws from of judgement tested program.Wherein, this withdraws from situation for normally withdrawing from or withdrawing from unusually.
This step can judge whether tested program is the situation that withdraws from of judging tested program that withdraws that the simulation ESC Escape causes tested program; If the simulation ESC Escape causes tested program to withdraw from, judge that tested program is for normally withdrawing from; Cause tested program to withdraw from if not the simulation ESC Escape, judge that tested program is for withdrawing from unusually.
Certainly, in actual applications, can also judge whether tested program is to break down in the MTTF test process to cause tested program to withdraw the situation that withdraws from of judging tested program; Cause tested program to withdraw from if break down in the MTTF test process, judge that tested program is for withdrawing from unusually; Breaking down in the MTTF test process causes tested program to withdraw from, and judges that tested program is for normally withdrawing from.
Concrete, if tested program for normally withdrawing from, then needs to recover the script startup tested program according to scene, and continue execution in step 202; If tested program is for withdrawing from unusually, the information that then needs recording exceptional to withdraw from is recovered the script startup tested program according to scene, and continues execution in step 202.
It should be noted that when the time of tested program being tested according to test parameter arrives the working time of tested program correspondence, also need the mean free error time MTTF of the information calculations tested program that withdraws from unusually according to tested program.For example, be 60 minutes the working time that tested program is set, in the process of tested program being tested according to the working time of tested program, unusually the information that withdraws from of record is: broke down in the 10th minute, broke down in the 20th minute, broke down in the 50th minute, then calculate in 60 minutes working times, fault takes place altogether 3 times in tested program, be 10 minutes fault-time for the first time, and be 10 minutes (subtracting 10 minutes in 20 minutes) fault-time for the second time, and be 30 minutes (subtracting 20 minutes in 50 minutes) fault-time for the third time, therefore, the mean free error time MTTF of tested program is 16.67 minutes ((10+10+30)/3).
Wherein, the ordinal relation between each step among the present invention can also be adjusted according to actual needs.
As seen, the method that the application of the invention provides, when the MTTF of test tested program, when simulated operation when causing tested program normally to withdraw to ESC Escape, application scenarios before can recovering script and tested program is automatically restored to withdraw from by preset scene, guarantee normally carrying out of test process, thereby can test out the MTTF of tested program accurately.
Based on same inventive concept, the invention allows for a kind of structural representation of software test device, as shown in Figure 3, comprising:
Acquisition module 31 is used to obtain the test parameter of tested program and described tested program correspondence.
Test module 32 is used for according to the described test parameter that described acquisition module 32 obtains described tested program being tested.
Start module 33, be used for withdrawing from when tested program described in the test process, the described test parameter that obtains according to described acquisition module 31 restarts described tested program.
As mentioned above, each module of this device can be integrated in one among the present invention, also can separate deployment.Above-mentioned module can be merged into a device, also can further split into a plurality of submodules.
As seen, the device that the application of the invention provides, when the MTTF of test tested program, when simulated operation when causing tested program normally to withdraw to ESC Escape, application scenarios before can recovering script and tested program is automatically restored to withdraw from by preset scene, guarantee normally carrying out of test process, thereby can test out the MTTF of tested program accurately.
Based on same inventive concept, the invention allows for a kind of structural representation of software test device, as shown in Figure 4, comprising:
Acquisition module 41 is used to obtain the test parameter of tested program and described tested program correspondence.Wherein, described test parameter comprises following content: described tested program corresponding simulating keying frequency, and the working time of described tested program correspondence, the scene of described tested program correspondence is recovered script;
Described acquisition module 41 specifically is used for, and obtains the scene of described tested program correspondence and recovers script; Described acquisition module 41 further comprises:
Record sub module 411 is used for writing down the input information of described tested program correspondence when described tested program starts first;
Obtain submodule 412, be used for obtaining the scene recovery script of described tested program correspondence according to the input information of described record sub module 411 records.
Test module 42 is used for according to the described test parameter that described acquisition module 41 obtains described tested program being tested;
Start module 43, be used for when tested program withdraws from described in the test process, the described test parameter that obtains according to described acquisition module 41 restarts described tested program.
Described startup module 43 specifically is used for, and the input information that recovers in the script according to the scene of described tested program correspondence restarts described tested program, and recovers described tested program to withdrawing from preceding state.
In the device provided by the invention, also comprise:
Judge module 44 is used to judge whether described tested program is that the simulation ESC Escape causes described tested program to withdraw from; If the simulation ESC Escape causes described tested program to withdraw from, judge that described tested program is for normally withdrawing from; Cause described tested program to withdraw from if not the simulation ESC Escape, judge that described tested program is for withdrawing from unusually.
Logging modle 45, be used to write down the information that described tested program withdraws from unusually, and when the time of described tested program being tested according to described test parameter arrives the working time of described tested program correspondence, the mean free error time MTTF of the described tested program of information calculations that withdraws from unusually according to described tested program.
As mentioned above, each module of this device can be integrated in one among the present invention, also can separate deployment.Above-mentioned module can be merged into a device, also can further split into a plurality of submodules.
As seen, the device that the application of the invention provides, when the MTTF of test tested program, when simulated operation when causing tested program normally to withdraw to ESC Escape, application scenarios before can recovering script and tested program is automatically restored to withdraw from by preset scene, guarantee normally carrying out of test process, thereby can test out the MTTF of tested program accurately.
By the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1. the method for testing of a software is characterized in that, said method comprising the steps of:
Obtain the test parameter of tested program and described tested program correspondence;
According to described test parameter described tested program is tested;
If tested program withdraws from described in the test process, restart described tested program according to described test parameter, and continue to carry out the operation of described tested program being tested according to described test parameter.
2. the method for claim 1 is characterized in that, described test parameter comprises following content:
Described tested program corresponding simulating keying frequency, the working time of described tested program correspondence, the scene of described tested program correspondence is recovered script;
Obtain the test parameter of described tested program correspondence, comprising: the scene of obtaining described tested program correspondence is recovered script, is specially:
When described tested program starts first, write down the input information of described tested program correspondence, and obtain the scene recovery script of described tested program correspondence according to described input information.
3. method as claimed in claim 2 is characterized in that, tested program described in the test process withdraws from and comprises:
Judge whether described tested program is that the simulation ESC Escape causes described tested program to withdraw from;
If the simulation ESC Escape causes described tested program to withdraw from, judge that described tested program is for normally withdrawing from;
Cause described tested program to withdraw from if not the simulation ESC Escape, judge that described tested program is for withdrawing from unusually.
4. method as claimed in claim 3 is characterized in that, judges that described tested program for after withdrawing from unusually, also comprises:
Write down the information that described tested program withdraws from unusually, and when the time of described tested program being tested according to described test parameter arrives the working time of described tested program correspondence, the mean free error time MTTF of the described tested program of information calculations that withdraws from unusually according to described tested program.
5. method as claimed in claim 2 is characterized in that, restarts described tested program according to described test parameter, comprising:
The input information that recovers in the script according to the scene of described tested program correspondence restarts described tested program, and recovers described tested program to withdrawing from preceding state.
6. the proving installation of a software is characterized in that, comprising:
Acquisition module is used to obtain the test parameter of tested program and described tested program correspondence;
Test module is used for according to the described test parameter that described acquisition module obtains described tested program being tested;
Start module, be used for when tested program withdraws from described in the test process, the described test parameter that obtains according to described acquisition module restarts described tested program.
7. device as claimed in claim 6 is characterized in that, described test parameter comprises following content:
Described tested program corresponding simulating keying frequency, the working time of described tested program correspondence, the scene of described tested program correspondence is recovered script;
Described acquisition module specifically is used for, and obtains the scene of described tested program correspondence and recovers script; Described acquisition module further comprises:
Record sub module is used for writing down the input information of described tested program correspondence when described tested program starts first;
Obtain submodule, be used for obtaining the scene recovery script of described tested program correspondence according to the input information of described record sub module record.
8. device as claimed in claim 7 is characterized in that, also comprises:
Judge module is used to judge whether described tested program is that the simulation ESC Escape causes described tested program to withdraw from; If the simulation ESC Escape causes described tested program to withdraw from, judge that described tested program is for normally withdrawing from; Cause described tested program to withdraw from if not the simulation ESC Escape, judge that described tested program is for withdrawing from unusually.
9. device as claimed in claim 8 is characterized in that, also comprises:
Logging modle, be used to write down the information that described tested program withdraws from unusually, and when the time of described tested program being tested according to described test parameter arrives the working time of described tested program correspondence, the mean free error time MTTF of the described tested program of information calculations that withdraws from unusually according to described tested program.
10. device as claimed in claim 7 is characterized in that,
Described startup module specifically is used for, and the input information that recovers in the script according to the scene of described tested program correspondence restarts described tested program, and recovers described tested program to withdrawing from preceding state.
CN201010164755.7A 2010-05-07 2010-05-07 Method and device for testing software Active CN102236598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010164755.7A CN102236598B (en) 2010-05-07 2010-05-07 Method and device for testing software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010164755.7A CN102236598B (en) 2010-05-07 2010-05-07 Method and device for testing software

Publications (2)

Publication Number Publication Date
CN102236598A true CN102236598A (en) 2011-11-09
CN102236598B CN102236598B (en) 2014-04-16

Family

ID=44887266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010164755.7A Active CN102236598B (en) 2010-05-07 2010-05-07 Method and device for testing software

Country Status (1)

Country Link
CN (1) CN102236598B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279787A (en) * 2010-06-08 2011-12-14 腾讯科技(深圳)有限公司 Method and device for testing average fault-free time
CN103516557A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Method and system for testing
CN103631702A (en) * 2012-08-20 2014-03-12 腾讯科技(深圳)有限公司 Automatic random key test method and device
CN103678094A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 Random key test method and device
CN103778054A (en) * 2012-10-19 2014-05-07 腾讯科技(深圳)有限公司 Application program pressure measuring method and pressure measuring device
CN105279052A (en) * 2014-07-04 2016-01-27 福建天晴数码有限公司 IOS stability test method and apparatus
CN105677562A (en) * 2016-01-05 2016-06-15 浪潮电子信息产业股份有限公司 Method for achieving mutual refreshing of BIOS versions under DOS
CN107392575A (en) * 2017-07-12 2017-11-24 北京奇安信科技有限公司 A kind of automated payment method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021810A (en) * 2007-03-08 2007-08-22 山东浪潮齐鲁软件产业股份有限公司 Software system performance estimating method
CN101989225A (en) * 2009-07-29 2011-03-23 中兴通讯股份有限公司 Method and device for automated test based on breakpoint

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021810A (en) * 2007-03-08 2007-08-22 山东浪潮齐鲁软件产业股份有限公司 Software system performance estimating method
CN101989225A (en) * 2009-07-29 2011-03-23 中兴通讯股份有限公司 Method and device for automated test based on breakpoint

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279787A (en) * 2010-06-08 2011-12-14 腾讯科技(深圳)有限公司 Method and device for testing average fault-free time
CN102279787B (en) * 2010-06-08 2015-06-17 腾讯科技(深圳)有限公司 Method and device for testing average fault-free time
CN103516557A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Method and system for testing
CN103631702A (en) * 2012-08-20 2014-03-12 腾讯科技(深圳)有限公司 Automatic random key test method and device
CN103631702B (en) * 2012-08-20 2018-01-30 腾讯科技(深圳)有限公司 Automate random key test method and device
CN103678094A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 Random key test method and device
CN103678094B (en) * 2012-08-31 2018-01-23 腾讯科技(深圳)有限公司 Random key test method and device
CN103778054A (en) * 2012-10-19 2014-05-07 腾讯科技(深圳)有限公司 Application program pressure measuring method and pressure measuring device
CN105279052A (en) * 2014-07-04 2016-01-27 福建天晴数码有限公司 IOS stability test method and apparatus
CN105279052B (en) * 2014-07-04 2019-01-22 福建天晴数码有限公司 A kind of stability test method and apparatus of iOS system
CN105677562A (en) * 2016-01-05 2016-06-15 浪潮电子信息产业股份有限公司 Method for achieving mutual refreshing of BIOS versions under DOS
CN107392575A (en) * 2017-07-12 2017-11-24 北京奇安信科技有限公司 A kind of automated payment method and device

Also Published As

Publication number Publication date
CN102236598B (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN102236598B (en) Method and device for testing software
CN102880532B (en) Cloud technology-based test system and method
US20170337116A1 (en) Application testing on different device types
CN111427803B (en) Automated random test method, apparatus, computer device and medium
CN103428333B (en) Mobile terminal, server and errors repair method
CN105487966A (en) Program testing method, device and system
CN109684125A (en) A kind of method, apparatus, equipment and storage medium for repairing DDR physical damage
CN105512562B (en) Vulnerability mining method and device and electronic equipment
CN110851307A (en) Method, system, terminal and storage medium for testing performance of hard disk in vibration environment
CN107818029A (en) A kind of cloud hard disc data recovers the automated testing method of uniformity
CN113961419A (en) Memory verification method and device, electronic equipment and storage medium
CN106547667A (en) A kind of fault cues method and system of mobile terminal
CN114647531B (en) Failure solving method, failure solving system, electronic device, and storage medium
CN102298483A (en) Input information display method and device
CN103220569B (en) The automatic recovery method of a kind of Set Top Box and equipment
CN113961465A (en) Method, device and program product for processing reproduction of program crash scene
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN105335209A (en) Virtual machine scheduling method, electronic device and server
CN110909337B (en) Beijing digital certificate authentication integration method based on GSP platform
CN109408380B (en) Game system defect management method and device and electronic equipment
CN107172228A (en) Change the method and apparatus and computer-readable recording medium of virtual machine IP address
CN111880896A (en) Method and device for rapidly restoring container and running state data
CN112532747B (en) Method, apparatus, device and storage medium for outputting information
JP2007328447A (en) Software test item selecting device, software test item selecting program, recording medium in which software test item selecting program is stored, and software test item selecting method
CN113407394B (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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151230

Address after: The South Road in Guangdong province Shenzhen city Fiyta building 518057 floor 5-10 Nanshan District high tech Zone

Patentee after: Shenzhen Tencent Computer System Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518057 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.