Automatic analysis system for testing scripts in cloud testing environments and realization method thereof

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

Active Publication Date: 2016-02-10
SHANGHAI DEV CENT OF COMP SOFTWARE TECH +1
View PDF6 Cites 11 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, especiall

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
  • Automatic analysis system for testing scripts in cloud testing environments and realization method thereof
  • Automatic analysis system for testing scripts in cloud testing environments and realization method thereof
  • Automatic analysis system for testing scripts in cloud testing environments and realization method thereof

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 an automatic analysis system for testing scripts in cloud testing environments. The system comprises a testing script input module, a testing script self-adaptation configuration module, a testing script dependency analysis module, a testing script parameter generation module, a testing script distributing module and a cloud testing environment module. According to actual conditions of the cloud testing environments and user-defined requirements, the testing scripts can be flexibly configured and have self-adaptation capacity. Meanwhile, for the testing scripts with parameters, according to user requirements, multiple sets of data values are automatically generated to serve as testing input and achieve parameterization testing, and according to the dependency appointed by a user, the testing scripts are distributed into the cloud testing environments to be executed. The user does not need to record or compile testing scripts again for each testing environment and also does not need to compile testing scripts repeatedly for each set of testing input data. Testing scripts without dependency can also be executed in parallel, the execution speed of the testing scripts is increased, testing efficiency is improved, and the complexity of compiling the testing scripts is lowered for the user. The invention further discloses a realization method of automatic analysis of the testing scripts in the cloud testing environments.

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 general steps of software testing are to write or record test scripts first, and then run the test scripts to get the 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
IPC IPC(8): G06F11/36
Inventor 蔡立志刘振宇胡芸陈文捷傅志仁廖文昭周伟
Owner SHANGHAI DEV CENT OF COMP SOFTWARE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products