Execution method and device of nested loop test scripts
A test script, nested loop technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of low test script running efficiency and long script, so as to improve test running efficiency, flexible recording and execution method, the effect of reducing script content
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Such as figure 1 As shown, the execution method of the nested loop test script of the present invention specifically comprises the following steps:
[0041] S100: determine the small loop test script to be run according to the first flag position;
[0042] S110: Parse and execute the small loop test script N times;
[0043] S120: Parse and execute the large loop test script.
Embodiment 2
[0045] Such as figure 2 As shown, the execution method of the nested loop test script of the present invention, the small loop test script also includes a second flag for identifying the number of cycles N, specifically comprising the following steps:
[0046] S200: determine the small loop test script to be run according to the first flag position;
[0047] S210: Obtain the number of loops N of the small loop test script according to the second flag;
[0048] S215: Execute the script content of the small loop test script N times;
[0049] S220: Parse and execute the large loop test script.
Embodiment 3
[0051] Such as image 3 As shown, the execution method of the nested loop test script of the present invention, the small loop test script also includes a second flag for identifying the number of cycles N, specifically comprising the following steps:
[0052] S300: determine the small loop test script to be run according to the first flag position;
[0053] S305: store the small loop test script in another test file;
[0054] S310: Obtain the number N of cycles of the small cycle test script according to the second flag;
[0055] S315: Execute the script content of the small loop test script N times
[0056] S320: Parse and execute the large loop test script.
[0057] The present invention at first clearly needs the test content of small loop, when recording script, for example, before the script that needs small loop starts, add the first mark position, as # (note, the mark position here can not be the same as other mark positions, in order to avoid cause conflicts; the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 