Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Inactive Publication Date: 2016-07-20
PHICOMM (SHANGHAI) CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to solve the technical problems that the current nested loop test script treats the small loop as a large loop, the script is lengthy, and the operating efficiency of the test script is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Execution method and device of nested loop test scripts
  • Execution method and device of nested loop test scripts
  • Execution method and device of nested loop test scripts

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an execution method and device of nested loop test scripts.The nested loop test scripts comprise a large loop test script.A small loop test script is nested in the large loop test script.The small loop test script comprises a script content, a first mark position for marking the script content, and a loop frequency N of the script content.The method includes the steps of determining the to-be-run small loop test script according to the first marking position, analyzing and executing the small loop test script N times, and analyzing and executing the large loop test script.Part of the loop content in a test case is controlled by nesting a small loop in a for loop, the script content is simplified, the test running efficiency is improved, and the method is a flexible test script recording and executing method.

Description

technical field [0001] The invention relates to the field of software testing, in particular to an execution method and device for a nested loop test script. Background technique [0002] Software automated testing is a process of transforming human-driven testing behavior into machine autonomous execution. It executes step by step according to the description of test cases, and compares the actual test results obtained with the expected results. In the process of software automation testing, human intervention is not required, and the test script is installed by the machine itself to execute. Such automated testing can save a lot of human resources. Therefore, test scripts are very important for automated testing and determine the effect of test operations. [0003] In the process of testing, sometimes it is necessary to run a large number of scripts repeatedly; sometimes there are repeated tests in the loop, that is, nested loop test scripts, and there are small loops in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 柏琼惠晓辉
Owner PHICOMM (SHANGHAI) CO LTD