Supercharge Your Innovation With Domain-Expert AI Agents!

Test script automatic parsing system and its implementation method in cloud test environment

A test script and automatic parsing technology, applied in the test script parsing system and its implementation field, can solve the problems of result impact, execution impact, and reduced efficiency of test script operation, so as to improve test efficiency, speed up execution, and reduce complexity Effect

Active Publication Date: 2017-12-22
SHANGHAI DEV CENT OF COMP SOFTWARE TECH +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Second, there may be complex dependencies between test scripts
At this time, the execution of the previous test script will have an impact on the execution of the next test script, and will also affect the results of the entire test.
Some current automated testing tools can define and process the dependencies between test scripts, but when the test is placed in the cloud environment, the scheduling of test scripts will become complicated, especially when the number of test scripts is large and the dependencies When complex, test scripts are less efficient to run in cloud test environments
[0006] Third, when the parameters of the test script increase, the maintenance of the test data becomes complicated
However, when the parameters of the test script increase, the number of test data combinations increases at a geometric progression rate, and it becomes difficult to manually define the test data set

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
  • Test script automatic parsing system and its implementation method in cloud test environment
  • Test script automatic parsing system and its implementation method in cloud test environment
  • Test script automatic parsing system and its implementation method in cloud test environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] Example 1: Adaptive configuration of test scripts

[0053] The test script adaptive configuration module 2 will configure each test script submitted by the user according to the configuration information submitted by the user and the test environment allocation situation of the cloud test environment module 6, and send the configured test script to the test script distribution module 5. For example, the configuration information submitted by the user requires the operating system to be tested to be Linux, the browser to be Firefox, and the browser version to be 22, and screenshots are required after all assertion statements. The test script adaptive configuration module 2 will write the network entry address of the test environment cluster that conforms to the configuration into each test script, and write the calling code of the Firefox browser into each test script, and then in each test script Insert the screenshot statement after all assert statements. Finally, th...

Embodiment 2

[0054] Example 2: Test script dependency analysis

[0055] Test script dependency analysis module 3 analyzes the execution sequence of test scripts and the test script names that can run in parallel according to the test script names that each test script in the configuration information submitted by the user depends on, and the analysis results are stored in xml document format. And send the analysis result to the test script distribution module 5 with the HTTP protocol. For example, in the configuration information submitted by the user, test script a depends on test script c, test script b depends on test script d, and both test scripts c and d depend on test script e. Then the execution sequence of the test script should be e, c and d, a and b, wherein c and d can be executed in parallel, and a and b can be executed in parallel. The above analysis results are stored in xml file format and sent to the test script distribution module 5 .

Embodiment 3

[0056] Example 3: Test script parameter generation

[0057] The test script parameter generation module 4 combines the test data submitted by the user to generate a test data set. For example, the test script requires three parameters a, b, and c. In the test data submitted by the user, parameter a includes two values ​​of a1 and a2, parameter b includes three values ​​of b1, b2, and b3, and parameter c includes three values ​​of c1, c2, c3, c4, c5 five values. The test script parameter generation module 4 will generate 2×3×5=30 sets of data according to the above data, and write them into the test data set. The above generated test data sets and their corresponding test script names are stored in xml file format and sent to the test script distribution module 5 .

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 a test script automatic parsing system in a cloud test environment, comprising: a test script input module; a test script self-adaptive configuration module; a test script dependency analysis module; a test script parameter generation module; a test script distribution module; and a cloud test environment module. The invention can flexibly configure the test script according to the actual situation of the cloud test environment and user-defined requirements, so that the test script has self-adaption ability. At the same time, for test scripts with parameters, multiple sets of data values ​​are automatically generated as test inputs according to user needs to realize parameterized testing, and test scripts can be assigned to the cloud test environment for parallel execution according to user-specified dependencies. Users do not need to re-record or write test scripts for each test environment, and do not need to repeatedly write test scripts for each test input data. Test scripts without dependencies can also be executed in parallel, which speeds up the execution speed of test scripts and improves test efficiency. , which reduces the complexity of writing test scripts for users. The invention also discloses a method for realizing automatic parsing of test scripts in a cloud test environment.

Description

technical field [0001] The invention relates to a test script parsing system and its implementation method, in particular to a test script automatic parsing system in a cloud test environment and its implementation method. Background technique [0002] The huge scale and complexity of modern software make software testing very difficult, and software testing usually accounts for 50% or even more of the development cost. Therefore, improving the efficiency of software testing is of great significance for reducing software development costs and speeding up the software development cycle. The steps of software testing are generally to write or record test scripts first, and then run the test scripts to obtain test results. Such manual testing is very time-consuming, labor-intensive, monotonous, and will introduce some human errors, so people have proposed automated testing solutions. Usually automated testing is to develop and execute test scripts through some test automation...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 蔡立志刘振宇胡芸陈文捷傅志仁廖文昭周伟
Owner SHANGHAI DEV CENT OF COMP SOFTWARE TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More