CN1866219A - System and method for testing measured object based on automatic test script - Google Patents

System and method for testing measured object based on automatic test script Download PDF

Info

Publication number
CN1866219A
CN1866219A CN 200510130429 CN200510130429A CN1866219A CN 1866219 A CN1866219 A CN 1866219A CN 200510130429 CN200510130429 CN 200510130429 CN 200510130429 A CN200510130429 A CN 200510130429A CN 1866219 A CN1866219 A CN 1866219A
Authority
CN
China
Prior art keywords
case
script
level
information
aftertreatment
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
CN 200510130429
Other languages
Chinese (zh)
Other versions
CN100362479C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005101304293A priority Critical patent/CN100362479C/en
Publication of CN1866219A publication Critical patent/CN1866219A/en
Application granted granted Critical
Publication of CN100362479C publication Critical patent/CN100362479C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The related testing method based on automatic testing script comprises: forming the testing pre-process script and post-process script, extracting out the global pre-process and shared script information during testing to set into former pre-process script, and the global post-process information after testing to set in former post-process script; then, executing test based on formed scripts. This invention is benefit to public source management and script repetition.

Description

The method and system of measurand being tested based on automatic test script
Technical field
The present invention relates to the communications field, relate in particular to automatic test course.
Background technology
Test is the key activities that guarantees software quality, is indispensable link in the software project implementation process.Automatic test is used more and more widely in software development process at present.In automatic testing process, can use resources such as a large amount of scripts, use-case, function, variable, if these resources can not get effective organization and administration, or execution mechanism is unreasonable, will cause automatic test to be difficult to get a desired effect or the robotization achievement is difficult to inherit.
The prior art relevant with the present invention adopted the measuring technology based on script, as TCL (ToolCommand Language, Tool Command Language) script.Its core is: be the resource of using in the center definition test process with the script, as defined function in script, variable, in script, define use-case, definition rules (use-case is carried out series in batches), relation between definition script and the use-case, define the executing rule of script, use-case and rules etc., and finish these definition procedures by tester's hand-coding scripted code.
By the technical scheme of above-mentioned prior art as can be seen, there is following defective in it:
When 1, with the script being the executing rule of relation, script, use-case and rules of center definition script and use-case, owing to script is not carried out classification and classification, therefore the shared information overprogram of using in can be when the compile script code of overall importance to some test processs, therefore workload and complexity are very big, and the scripted code of writing is readable relatively poor, lacks dirigibility;
When 2, with the script being the resource of using in the center definition test process,, can't fully guaranteeing the resource sharing such as function and variable between the script and reuse, be unfavorable for that the centralized management of public resource, data separate with script because script does not have classification;
When 3, with the script being the resource of using in the center definition test process, because it is sub-category that script does not have, thus cause script function indeterminate easily, and then cause the relation between script and the use-case indeterminate, execution sequence confusion between the script can't guarantee that use-case carries out the integrality of data.
Summary of the invention
The purpose of this invention is to provide a kind of method and system of measurand being tested based on automatic test script, can carry out classification to script by the present invention, overall situation and partial situation's script difference is come, thereby the centralized management, the data that help public resource are separated with script, and the present invention can finish public resource by code compiling process once, thereby makes the workload of compile script code obtain simplifying.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of method of measurand being tested based on automatic test script, it comprises:
A, structure testing engineering pre-service script and engineering aftertreatment script, pre-service of overall importance and the shared script information used in the test process are extracted, be set in the described engineering pre-service script, after the use-case operation is finished in the test process, need to do the information setting of aftertreatment of overall importance in described engineering aftertreatment script;
B, measurand is tested based on posttectonic script.
Wherein, described pre-service of overall importance and shared script information comprise: need the global variable of the used use-case tested, the information of resource pool and function, test environment ready message and/or initialization script information of overall importance in the test process.
Wherein, the information of described aftertreatment of overall importance comprises: test environment of overall importance withdraws from information and/or recovery operation information.
Wherein, described steps A also comprises:
At a use-case, make up at least one use-case level and carry out script, and the main body script that is used for finishing this use-case test function in the test process is arranged on described use-case level carries out script.
Wherein, described steps A also comprises:
At a use-case, make up use-case level pre-service script, and go out and be arranged in the described use-case level pre-service script with each configuration information of each use-case, for the prepare information extraction of sex work of use-case level execution script with the resource bid information in the case script, use-case test data;
And/or,
At a use-case, make up use-case level aftertreatment script, and the data recovering information after described use-case is finished and cleaning information setting are in described use-case level aftertreatment script.
Wherein, described step B specifically comprises:
Sequencing according to engineering level pre-service script, use-case, engineering level aftertreatment script is handled corresponding information, and when engineering level pre-service script executing is wrong, then performance of work level aftertreatment script.
Wherein, among the step B, when handling use-case, the processing procedure of each use-case is specifically comprised:
Each use-case that needs in the test to handle is divided into groups, and be set in the different sets of uses case;
According to the sequencing between set of uses case, order is carried out each set of uses case, and each use-case that parallel processing or sequential processes set within it in each set of uses case.
Wherein, among the step B, when handling use-case, the processing procedure of each use-case is specifically comprised:
All use-case levels under each use-case of parallel processing are carried out script, and after any one use-case level execution script was made mistakes, the use-case level that stops all operations in this use-case was carried out script, finishes this process then;
Or,
According to the sequencing of use-case level pre-service script and use-case level execution script, order is carried out corresponding scripts, and each use-case level under each use-case of parallel processing is carried out script; And after described use-case level pre-service script is made mistakes, or after any one use-case level execution script was made mistakes, the use-case level that stops all operations in this use-case was carried out script, finishes this process then;
Or,
According to the sequencing of use-case level pre-service script, use-case level execution script and use-case level aftertreatment script, order is carried out corresponding scripts, and each use-case level under each use-case of parallel processing is carried out script; And after described use-case level pre-service script is made mistakes, then carry out described use-case level aftertreatment script, finish this process then;
Or,
According to the sequencing of use-case level execution script and use-case level aftertreatment script, the information in the sequential processes corresponding scripts, and each use-case level under each use-case of parallel processing is carried out script; And after any one use-case level execution script was made mistakes, the use-case level that stops all operations in this use-case was carried out script, then carries out described use-case level aftertreatment script, finishes this process then.
The invention provides a kind of system that measurand is tested based on automatic test script, it comprises: engineering pretreatment unit, use-case processing unit and engineering post-processing unit;
When testing, call and handle pre-service and the shared resource information that all use-cases need move in the test process by described engineering pretreatment unit, then by used use-case in the described use-case processing unit processes test process, and after described use-case disposes, carry out aftertreatment work of overall importance by described engineering post-processing unit.
Wherein, described system also comprises: information identificating unit, whether the process information that is used for the recognitive engineering pretreatment unit makes mistakes, and when monitoring error message, stop the operation of engineering pretreatment unit, and trigger the engineering post-processing unit and carry out corresponding aftertreatment work.
Wherein, described use-case processing unit comprises:
At least one use-case is carried out subelement, is used to finish the main body script of use-case test function.
Wherein, described use-case processing unit also comprises:
Use-case pre-service subelement and/or use-case aftertreatment subelement;
When calling the use-case processing unit, call and handle when sharing and pretreatment information that operation needs when used use-case is carried out information in the subelement in the test process by described use-case pre-service subelement, and after described use-case disposes, carry out the data that need by described use-case aftertreatment subelement and recover and cleaning work.
Wherein, described use-case processing unit also comprises:
The information Recognition subelement, whether the process information that is used for discerning use-case pre-service subelement makes mistakes, and when monitoring error message, stops the operation of use-case pre-service subelement, and triggers use-case aftertreatment subelement and carry out corresponding aftertreatment work; And,
Be used for discerning use-case and carry out the process information of subelement and whether make mistakes, and when monitor error message, stop described use-case and carry out the subelement operation, and triggering use-case aftertreatment subelement carries out corresponding aftertreatment work.
As seen from the above technical solution provided by the invention, the present invention at first constructs testing engineering pre-service script and engineering aftertreatment script, pre-service of overall importance and the shared script information used in the test process are extracted, be set in the described engineering pre-service script, after the use-case operation is finished in the test process, need to do the information setting of aftertreatment of overall importance in described engineering aftertreatment script; Based on posttectonic script measurand is tested then.By the present invention script is classified into engineering pre-service script, engineering aftertreatment script etc., overall situation and partial situation's script difference is come, thereby the centralized management, the data that help public resource are separated with script, and the present invention can finish public resource by code compiling process once, thereby makes the workload of compile script code obtain simplifying.
In addition, by the present invention to after classifying with case script, use-case pre-service script and use-case aftertreatment script are extracted, thereby make the function of all kinds of scripts clearer and more definite, use the relation between the case script very clear and definite, thereby guarantee with the execution sequence between the case script, and then guarantee the integrality of use-case execution data, and can make the workload of compile script code obtain simplifying equally.
Description of drawings
Fig. 1 is the system works schematic diagram among first embodiment provided by the invention;
Fig. 2 is the process flow diagram of second embodiment provided by the invention;
The process flow diagram of Fig. 3 among second embodiment provided by the invention use-case being handled.
Embodiment
The invention provides a kind of method and system of measurand being tested based on automatic test script, its core is: at first construct testing engineering pre-service script and engineering aftertreatment script, pre-service of overall importance and the shared script information used in the test process are extracted, be set in the described engineering pre-service script, after the use-case operation is finished in the test process, need to do the information setting of aftertreatment of overall importance in described engineering aftertreatment script; Based on posttectonic script measurand is tested then.
At system of the present invention, first embodiment provided by the invention as shown in Figure 1, comprises
Engineering pretreatment unit, information identificating unit, use-case processing unit and engineering post-processing unit;
When testing, call and handle the pre-service shared resource information that all use-cases need move in the test process by described engineering pretreatment unit, and whether make mistakes by the process information in the described information identificating unit monitoring works pretreatment unit, if the error message of monitoring, then stop described engineering pretreatment unit operation, and trigger the engineering post-processing unit and carry out corresponding aftertreatment work; If described engineering pretreatment unit can normally be finished processing procedure, then subsequently by used use-case in the described use-case processing unit processes test process, and after described use-case disposes, carry out aftertreatment work of overall importance by described engineering post-processing unit.
During used all use-cases, described use-case processing unit is handled by following parts in by described use-case processing unit processes test process:
In described use-case processing unit, be provided with use-case pre-service subelement, at least one use-case is carried out subelement, when use-case post-processing unit and information Recognition subelement, then call and handle the shared pretreatment information that needs when used use-case is carried out information in the subelement in the test process when operation by described use-case pre-service subelement, whether make mistakes by the process information in the described information Recognition subelement identification use-case pre-service subelement simultaneously, and when monitoring error message, stop described use-case pre-service subelement operation, and trigger the work of described use-case post-processing unit; If described use-case pre-service subelement normally moves, then behind its end-of-job, trigger described each use-case execution subelement parallel processing and be arranged on the test script that defines in each use-case execution subelement, simultaneously in processing procedure, whether make mistakes by the process information that described information Recognition subelement identification use-case is carried out in the subelement, and when monitoring any one use-case when carrying out subelement and error message occurring, then stop described use-case and carry out the subelement operation, trigger the work of described use-case post-processing unit then; Can normal process if each use-case is carried out subelement, then behind its end of run, trigger the work of described use-case post-processing unit.After the data recovery and cleaning work after described use-case post-processing unit is finished the use-case execution, trigger the work of described engineering post-processing unit.
When only being provided with at least one use-case execution subelement and information Recognition subelement in the described use-case processing unit, then utilize each described use-case execution subelement setting and parallel processing to carry out the test script that defines in subelement at each use-case, whether the process information of carrying out in the subelement by information Recognition subelement identification use-case makes mistakes simultaneously, and when monitoring error message, stop described use-case and carry out the subelement operation, trigger the work of described engineering post-processing unit then; Can normal process if described use-case is carried out subelement, then behind its end of run, trigger the work of described engineering post-processing unit.
When being provided with use-case pre-service subelement, at least one use-case execution subelement and information Recognition subelement in the described use-case processing unit, then call and handle the shared pretreatment information that needs when used use-case is carried out information in the subelement in the test process when operation by described use-case pre-service subelement, whether make mistakes by the process information in the described information Recognition subelement identification use-case pre-service subelement simultaneously, and when monitoring error message, stop the operation of use-case pre-service subelement, and trigger the work of described engineering post-processing unit; If described use-case pre-service subelement normally moves, then behind its end-of-job, trigger described each use-case execution subelement parallel processing and be arranged on the test script that defines in each use-case execution subelement, simultaneously in processing procedure, whether make mistakes by the process information that described information Recognition subelement identification use-case is carried out in the subelement, and when monitoring error message, stop described use-case and carry out the subelement operation, trigger the work of described engineering post-processing unit then; Can normal process if described use-case is carried out subelement, then behind its end of run, trigger the work of described engineering post-processing unit.
When being provided with at least one use-case execution subelement, use-case aftertreatment subelement and information Recognition subelement in the described use-case processing unit, then carrying out subelement parallel processing by each use-case is arranged on each use-case and carries out the test script that defines in subelement simultaneously in processing procedure, whether make mistakes by the process information that described information Recognition subelement identification use-case is carried out in the subelement, and when monitoring error message, stop described use-case and carry out the subelement operation, trigger the work of described use-case post-processing unit then; Can normal process if described use-case is carried out subelement, then behind its end of run, trigger the work of described use-case post-processing unit.After the data recovery and cleaning work after described use-case post-processing unit is finished the use-case execution, trigger the work of described engineering post-processing unit.
At method of the present invention, second embodiment provided by the invention comprises the steps:
Step 11, script is carried out classification, when classification, make up engineering level script and use-case level script; And in engineering level script the definition shared resource of overall importance, its reach is the used use-case level script in the test process, and in described use-case level script, construct use-case, and make the use-case of described structure when carrying out, inherit the resource of overall importance that in engineering pre-service script, defines.
Step 12, according to the function of script to stating engineering level script and use-case level script level is classified, the script type of formation is as shown in table 1:
Numbering Script type The content of script definition
1 Engineering level pre-service script Definition needs the global variable of the used use-case tested, the information of resource pool and function, test environment ready message, initialization script information of overall importance in the test process.
2 Engineering level aftertreatment script Definition needs the global variable of the used use-case tested, the information of resource pool and function, test environment ready message, initialization script information of overall importance in the test process.
3 Use-case level pre-service script Define the application, use-case test data of this use-case resource and for described
Use-case is carried out the configuration information of preparing property of script.
4 The use-case level is carried out script Define the main body script of use-case test script, finish the test function of use-case.The reach of the variable and function that defines in this script is only limited to current script.
5 Use-case level aftertreatment script The data that the definition use-case is carried out after script is finished are recovered and cleaning work information.
Table 1
This table 1 is divided into engineering level pre-service script, engineering level aftertreatment script, use-case level pre-service script, use-case level execution script and use-case level aftertreatment script with script according to function after the above-mentioned classification of process as can be seen, and each script is finished difference in functionality respectively:
Described engineering level pre-service script, be used for defining the resource of overall importance of all use-cases that the test process that extracts uses, as the global variable of the used use-case that needs in the test process to test, the information of resource pool and function, test environment ready message, initialization script information of overall importance, and described engineering level pre-service script is carried out at first when testing.
Described engineering level aftertreatment script is used to define test environment of overall importance and withdraws from information such as information and/or recovery operation.In test process, after finishing, all use-case level script executing carry out again.
Described use-case level pre-service script is used to define application, the use-case test data of this use-case resource and the job information of carrying out preparing property of script for described use-case.
Described use-case level is carried out script, is used to define the main body script of use-case test script, finishes the test function of use-case.The reach of the variable and function that defines in this script is only limited to current script.
Described use-case level aftertreatment script, the environmental data that is used to define after use-case execution script is finished recovers and cleaning work information.
By above-mentioned process of script being carried out classification and classification, with corresponding respectively the writing in the middle of the corresponding script of the script of difference in functionality, as, recover to write in the use-case level aftertreatment script with finishing the use-case data, rather than be put into the last of execution script with the script of clearing function.Therefore can not cause and data recovered in time not recovered, and influence the correct execution of back use-case.In addition, by some data extracts relevant with test environment and that often will use in case script are come out, replace with variable of overall importance, in case these data change or have changed test environment, only need to revise these variablees and get final product, do not use case script, therefore can accomplish script and data separating and do not need to revise, thereby improve script to the adaptive faculty of test environment and the reusability of script, reduced size of code and the workload in the programming process.And, the variable that these are of overall importance, and other need use resources shared in the case script at all, be defined in the engineering level pre-service script as function or script, not only can allow all scripts have access to, reach public shared purpose, and can realize centralized management, be easy to safeguard.
Step 13, basis are carried out the testing process of classification and sorted rules of organization as a result to script and the use-case under the described rules are tested.As shown in Figure 2, comprising:
Step 131, user create rules and finish the compiling of user data.
Step 132, treatment project level pre-service script.
If described engineering level pre-service script can correctly be handled, then change step 133 over to; If described engineering level pre-service script executing is made mistakes, then directly change step 134 over to, carry out the processing procedure of engineering level aftertreatment script.
Step 133, handle each use-case.
Characteristic according to use-case is disposed a plurality of use-cases of using in the test process, being about to the relevant use-case of characteristic puts in the same set of uses case, the incoherent use-case of characteristic is put in the different sets of uses case, in the same set of uses case or the use-case between different sets of uses case can repeat, specifying all use-cases in each set of uses case then is that executed in parallel or order are carried out, and specifies order execution between each set of uses case.For example among Fig. 2 use-case 1, use-case 2... use-case n are put in the set of uses case 1, and specify each use-case executed in parallel; Use-case n+1, use-case n+2... use-case n+n are put in the set of uses case 2, and specify and carry out in proper order according to the order of use-case n+1, use-case n+2... use-case n+n; Use-case a1, use-case a2... use-case an are put in the set of uses case 3, and specify each use-case executed in parallel.Specify order execution between set of uses case 1,2 and 3 then.
For each use-case, when structure use-case level script, can comprise use-case level pre-service script and use-case level aftertreatment script, but must comprise at least one use-case level execution script.For example, if need the application resource, carry out operations such as data are provided with, a use-case just should have use-case level pre-service script.If need operations such as data recovery, a use-case just should have use-case level aftertreatment script, otherwise just need not use-case pre-service script or use-case level aftertreatment script.Carry out script and be as required and fixed, carry out script for the use-case level and define according to the actual needs of use-case, as only simulating a caller phone, it is just passable only to need a use-case level to carry out script; If also will simulate called phone, should increase a use-case level execution script and simulate called phone.
When a use-case level script comprises that use-case level pre-service script, use-case level are carried out script and three kinds of scripts of use-case level aftertreatment script, its treatment scheme as shown in Figure 3:
At first carry out use-case level pre-service script, if described use-case level pre-service script can be normally processed, then each use-case level under the same use-case being carried out script parallel handles, if described use-case level pre-service script can not be normally processed, that is to say abnormal conditions in processing procedure, to occur, then transfer to carry out use-case level aftertreatment script; When handling use-case level execution script, as normal process, then after use-case level execution script disposes, use-case level aftertreatment script is handled, make mistakes as any one execution script in processing procedure, then stop the execution script of all operations in this use-case, then carry out use-case level aftertreatment script.After use-case level aftertreatment script disposes, finish the processing procedure of described use-case level script.
When a use-case level script only comprised that at least one use-case level is carried out script, the processing procedure of described use-case level script was as follows:
All use-case levels under the same use-case are carried out script adopt parallel processing, if wherein any one use-case level execution script is made mistakes, the use-case level that then stops all operations in this use-case is carried out script, and finishes the processing procedure of described use-case level script.
When a use-case level script comprised that use-case level pre-service script and use-case level are carried out script, the processing procedure of described use-case level script was as follows:
At first carry out use-case level pre-service script, if described use-case level pre-service script can be normally processed, then each use-case level under the same use-case being carried out script parallel handles, if described use-case level pre-service script can not be normally processed, that is to say abnormal conditions in processing procedure, to occur, then finish the processing procedure of use-case level script; When described use-case level execution script is handled, adopt parallel processing method, if wherein any one use-case level execution script is made mistakes, the use-case level that then stops all operations in this use-case is carried out script, and finishes the processing procedure of described use-case level script.
Carry out script and use-case level aftertreatment script when a use-case level script comprises the use-case level, the processing procedure of described use-case level script specifically comprises:
At first parallel processing is carried out the use-case level and is carried out script, if wherein any one use-case level execution script is made mistakes, the use-case level that then stops all operations in this use-case is carried out script, and changes the processing procedure of use-case level aftertreatment script over to.After use-case level aftertreatment script disposes, finish the processing procedure of described use-case level script.
Step 134, engineering level aftertreatment script is handled.
Step 135, end said process.
By as can be seen above-mentioned: after the user creates rules, for ease of management maintenance, relevant use-case is put in the same set of uses case, and specifies the executive mode of use-case, the executive mode compiling according to each set of uses case of user's appointment during execution generates relevant execution control script.
When rules begin to carry out, performance of work pre-service script at first, promptly some public resources of overall importance are carried out initialization, set of uses case 1 is carried out in environmental preparations etc. then, after concurrent the executing of all use-cases in the set of uses case 1, begin to carry out set of uses case 2, all use-cases execute the back in proper order and carry out next step in the step 2, and until institute's complete in steps back performance of work aftertreatment script, promptly data and the environmental testing to test process recovers and cleaning.The benefit of making is like this:
Can divide into groups flexibly according to the characteristic of use-case when 1, use-case is carried out in batches, set up the mutual incoherent different sets of uses case of characteristic, and allow to repeat with the interior use-case of same set of uses case between each set of uses case, thereby be convenient to management maintenance;
2, the use-case in the same set of uses case can be specified executed in parallel, thereby can improve the execution speed of use-case, and can simulate the test of concurrency at an easy rate, as simulation a large number of users while access websites; And do not disturb mutually between the use-case, even a certain use-case is made mistakes, also can guarantee the integrality of other use-case data.
In addition, when handling same use-case, the use-case level under the same use-case is carried out between the script and is adopted parallel processing, also can make use-case be easy to simulate different test entities.And no matter be to carry out that script is normally processed or occurring to carry out use-case level aftertreatment script under the unusual situation in the use-case level, thereby data and test environment that use-case level execution script is revised are in the process of implementation recovered timely, guaranteed the use-case data consistance before and after carrying out, eliminated use-case each other data when carrying out in batches and disturbed.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily 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 the protection domain of claim.

Claims (13)

1, a kind of method of measurand being tested based on automatic test script is characterized in that, comprising:
A, structure testing engineering pre-service script and engineering aftertreatment script, pre-service of overall importance and the shared script information used in the test process are extracted, be set in the described engineering pre-service script, after the use-case operation is finished in the test process, need to do the information setting of aftertreatment of overall importance in described engineering aftertreatment script;
B, measurand is tested based on posttectonic script.
2, method according to claim 1, it is characterized in that described pre-service of overall importance and shared script information comprise: need the global variable of the used use-case tested, the information of resource pool and function, test environment ready message and/or initialization script information of overall importance in the test process.
3, method according to claim 1 is characterized in that, the information of described aftertreatment of overall importance comprises: test environment of overall importance withdraws from information and/or recovery operation information.
4, method according to claim 1 is characterized in that, described steps A also comprises:
At a use-case, make up at least one use-case level and carry out script, and the main body script that is used for finishing this use-case test function in the test process is arranged on described use-case level carries out script.
5, method according to claim 4 is characterized in that, described steps A also comprises:
At a use-case, make up use-case level pre-service script, and go out and be arranged in the described use-case level pre-service script with each configuration information of each use-case, for the prepare information extraction of sex work of use-case level execution script with the resource bid information in the case script, use-case test data;
And/or,
At a use-case, make up use-case level aftertreatment script, and the data recovering information after described use-case is finished and cleaning information setting are in described use-case level aftertreatment script.
6, according to any described method of claim 1 to 5, it is characterized in that described step B specifically comprises:
Sequencing according to engineering level pre-service script, use-case, engineering level aftertreatment script is handled corresponding information, and when engineering level pre-service script executing is wrong, then performance of work level aftertreatment script.
7, method according to claim 6 is characterized in that, among the step B, when handling use-case, the processing procedure of each use-case is specifically comprised:
Each use-case that needs in the test to handle is divided into groups, and be set in the different sets of uses case;
According to the sequencing between set of uses case, order is carried out each set of uses case, and each use-case that parallel processing or sequential processes set within it in each set of uses case.
8, method according to claim 7 is characterized in that, among the step B, when handling use-case, the processing procedure of each use-case is specifically comprised:
All use-case levels under each use-case of parallel processing are carried out script, and after any one use-case level execution script was made mistakes, the use-case level that stops all operations in this use-case was carried out script, finishes this process then;
Or,
According to the sequencing of use-case level pre-service script and use-case level execution script, pagination is carried out corresponding scripts, and each use-case level under each use-case of parallel processing is carried out script; And after described use-case level pre-service script is made mistakes, or after any one use-case level execution script was made mistakes, the use-case level that stops all operations in this use-case was carried out script, finishes this process then;
Or,
According to the sequencing of use-case level pre-service script, use-case level execution script and use-case level aftertreatment script, order is carried out corresponding scripts, and each use-case level under each use-case of parallel processing is carried out script; And after described use-case level pre-service script is made mistakes, then carry out described use-case level aftertreatment script, finish this process then;
Or,
According to the sequencing of use-case level execution script and use-case level aftertreatment script, the information in the sequential processes corresponding scripts, and each use-case level under each use-case of parallel processing is carried out script; And after any one use-case level execution script was made mistakes, the use-case level that stops all operations in this use-case was carried out script, then carries out described use-case level aftertreatment script, finishes this process then.
9, a kind of system that measurand is tested based on automatic test script is characterized in that, comprising: engineering pretreatment unit, use-case processing unit and engineering post-processing unit;
When testing, call and handle pre-service and the shared resource information that all use-cases need move in the test process by described engineering pretreatment unit, then by used use-case in the described use-case processing unit processes test process, and after described use-case disposes, carry out aftertreatment work of overall importance by described engineering post-processing unit.
10, system according to claim 9 is characterized in that, also comprises:
Information identificating unit, whether the process information that is used for the recognitive engineering pretreatment unit makes mistakes, and when monitoring error message, stops the operation of engineering pretreatment unit, and triggers the engineering post-processing unit and carry out corresponding aftertreatment work.
According to claim 9 or 10 described systems, it is characterized in that 11, described use-case processing unit comprises:
At least one use-case is carried out subelement, is used to finish the main body script of use-case test function.
12, system according to claim 11 is characterized in that, described use-case processing unit also comprises:
Use-case pre-service subelement and/or use-case aftertreatment subelement;
When calling the use-case processing unit, call and handle when sharing and pretreatment information that operation needs when used use-case is carried out information in the subelement in the test process by described use-case pre-service subelement, and after described use-case disposes, carry out the data that need by described use-case aftertreatment subelement and recover and cleaning work.
13, system according to claim 12 is characterized in that, described use-case processing unit also comprises:
The information Recognition subelement, whether the process information that is used for discerning use-case pre-service subelement makes mistakes, and when monitoring error message, stops the operation of use-case pre-service subelement, and triggers use-case aftertreatment subelement and carry out corresponding aftertreatment work; And,
Be used for discerning use-case and carry out the process information of subelement and whether make mistakes, and when monitor error message, stop described use-case and carry out the subelement operation, and triggering use-case aftertreatment subelement carries out corresponding aftertreatment work.
CNB2005101304293A 2005-12-09 2005-12-09 System and method for testing measured object based on automatic test script Expired - Fee Related CN100362479C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101304293A CN100362479C (en) 2005-12-09 2005-12-09 System and method for testing measured object based on automatic test script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101304293A CN100362479C (en) 2005-12-09 2005-12-09 System and method for testing measured object based on automatic test script

Publications (2)

Publication Number Publication Date
CN1866219A true CN1866219A (en) 2006-11-22
CN100362479C CN100362479C (en) 2008-01-16

Family

ID=37425244

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101304293A Expired - Fee Related CN100362479C (en) 2005-12-09 2005-12-09 System and method for testing measured object based on automatic test script

Country Status (1)

Country Link
CN (1) CN100362479C (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100472472C (en) * 2007-07-26 2009-03-25 南京大学 GUI test and drive method under Windows platform based on MSAA
CN101802792B (en) * 2007-09-14 2012-12-26 空中客车运营简易股份公司 Method for automatic script generation for testing the validity of operational software of a system of aircraft and device for implementing the same
CN102999417A (en) * 2012-11-14 2013-03-27 迈普通信技术股份有限公司 Automatic test management system and method
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN103678104A (en) * 2012-09-17 2014-03-26 腾讯科技(深圳)有限公司 Data-based automatic testing method and data-based automatic testing device
CN103853651A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Software testing method and device
CN103914369A (en) * 2012-12-31 2014-07-09 百度国际科技(深圳)有限公司 Automated testing method and device for registry monitoring software
CN104660696A (en) * 2015-02-10 2015-05-27 上海创景计算机系统有限公司 Parallel transceiver building system and building method thereof
CN110196804A (en) * 2018-04-24 2019-09-03 腾讯科技(深圳)有限公司 The test method and device of business, storage medium, electronic device
CN112711532A (en) * 2020-12-29 2021-04-27 中国航空工业集团公司西安飞机设计研究所 Automatic test method for undercarriage partition software

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5983001A (en) * 1995-08-30 1999-11-09 Sun Microsystems, Inc. Method and system for facilitating the automatic creation of test scripts
CN1328689C (en) * 2002-11-22 2007-07-25 中兴通讯股份有限公司 Automatic test method for system products
CN100421391C (en) * 2003-02-14 2008-09-24 华为技术有限公司 Method for implementing automatic test of intelligent service

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100472472C (en) * 2007-07-26 2009-03-25 南京大学 GUI test and drive method under Windows platform based on MSAA
CN101802792B (en) * 2007-09-14 2012-12-26 空中客车运营简易股份公司 Method for automatic script generation for testing the validity of operational software of a system of aircraft and device for implementing the same
CN103678104B (en) * 2012-09-17 2018-04-27 腾讯科技(深圳)有限公司 Automated testing method and device based on data
CN103678104A (en) * 2012-09-17 2014-03-26 腾讯科技(深圳)有限公司 Data-based automatic testing method and data-based automatic testing device
CN102999417B (en) * 2012-11-14 2015-12-02 迈普通信技术股份有限公司 Automatic test management system and method
CN102999417A (en) * 2012-11-14 2013-03-27 迈普通信技术股份有限公司 Automatic test management system and method
CN103853651A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Software testing method and device
CN103853651B (en) * 2012-11-29 2018-01-09 腾讯科技(深圳)有限公司 Method for testing software and device
CN103914369A (en) * 2012-12-31 2014-07-09 百度国际科技(深圳)有限公司 Automated testing method and device for registry monitoring software
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN104660696A (en) * 2015-02-10 2015-05-27 上海创景计算机系统有限公司 Parallel transceiver building system and building method thereof
CN110196804A (en) * 2018-04-24 2019-09-03 腾讯科技(深圳)有限公司 The test method and device of business, storage medium, electronic device
CN110196804B (en) * 2018-04-24 2022-03-11 腾讯科技(深圳)有限公司 Service testing method and device, storage medium and electronic device
CN112711532A (en) * 2020-12-29 2021-04-27 中国航空工业集团公司西安飞机设计研究所 Automatic test method for undercarriage partition software
CN112711532B (en) * 2020-12-29 2023-10-20 中国航空工业集团公司西安飞机设计研究所 Automatic testing method for undercarriage partition software

Also Published As

Publication number Publication date
CN100362479C (en) 2008-01-16

Similar Documents

Publication Publication Date Title
CN1866219A (en) System and method for testing measured object based on automatic test script
CN1851665A (en) Method for completing product automation test utilizing test kit
EP2482192B1 (en) Testing lifecycle
CN100337235C (en) Method and apparatus for accessing database
CN1731747A (en) Automatization testing frame system and method
CN106446019B (en) A kind of software function treating method and apparatus
CN103885826B (en) Real-time task scheduling implementation method of multi-core embedded system
CN105320589A (en) Automatic analysis system for testing scripts in cloud testing environments and realization method thereof
CN1779652A (en) Method and apparatus for debugging internal core state programm of operation system
CN104320460A (en) Big data processing method
US20050144596A1 (en) Method and apparatus for parallel action processing
CN1967500A (en) Resource using method in automatic testing process
CN100346308C (en) Automatic test method based on database operation
CN1780236A (en) Universal testing system and method for telecommunication intelligent service
CN1306407C (en) Method for autonomic self-learning in selecting resources for dynamic provisioning
CN1245685C (en) Drive method based on structure operation system dynamic equipment
CN103853938A (en) High-throughput sequencing data processing and analysis flow control method
CN101055522A (en) Method and device for automatically generating unit test sample
CN106502842A (en) Data reconstruction method and system
CN101046745A (en) Method, device for controlling relation between control piece on interface and control piece display system
CN1945586A (en) Automatic construction system and method for electronic circuit design
CN1776616A (en) Three-dimensional model editor modelling command frame design method
CN113742125A (en) Lightweight high-throughput computing mode and fault-tolerant method thereof
CN1664985A (en) System and method for process contamination prevention for semiconductor manufacturing
CN103823710B (en) Management method and management system for Java virtual machine process in Windows system

Legal Events

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

Granted publication date: 20080116

Termination date: 20121209