Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic WEB testing method based on parallel execution

A technology of automated testing and test cases, applied in the computer field, can solve problems such as large time consumption, achieve the effects of shortening execution time, saving test physical resources, and responding quickly to agile development

Inactive Publication Date: 2018-04-20
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current web automation test system is built around selenium webdrive. With the continuous superposition of system functions and the continuous superposition of the number of automated test cases, the sequential execution of each automated test case will inevitably consume a lot of time

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 WEB testing method based on parallel execution
  • Automatic WEB testing method based on parallel execution
  • Automatic WEB testing method based on parallel execution

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Such as figure 1 Show a kind of WEB automated testing method based on parallel execution, described method comprises the following steps:

[0029] S1: Write the test case execution file. The specific process is: write the test case as an executable java file and name it test***.java, where *** is the name or number of the test case.

[0030] S2: Set the execution order of test cases; the specific implementation process is: write a file in xml format to organize the parallel execution order of test cases, and determine the concurrency level by configuring the two parameters parallel and thread-count in the xml configuration file.

[0031] Paralle parameters can have the following three options:

[0032] 1) Tests: Use cases under different tests are executed in different threads, and use cases under the same test can only be executed sequentially in one thread.

[0033] 2) Classes: Use cases under different classes are executed in different threads, and use cases under ...

Embodiment 2

[0054] Such as figure 2 Show a kind of WEB automated testing method based on parallel execution, described method comprises the following steps:

[0055] S0: Set test case dependencies. The specific implementation process is: analyze the dependencies of automated test cases. For test cases with dependencies, put these dependencies into a group through the Group annotation function of Testng to ensure no dependencies. The test cases are fully decoupled.

[0056] S1: Write the test case execution file. The specific process is: write the test case as an executable java file and name it test***.java, where *** is the name or number of the test case.

[0057] S2: Set the execution order of test cases; the specific implementation process is: write a file in xml format to organize the parallel execution order of test cases, and determine the concurrency level by configuring the two parameters parallel and thread-count in the xml configuration file.

[0058] Paralle parameters can ...

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 provides an automatic WEB testing method based on parallel execution. The method includes the steps: S1 writing an execution file of a testing case; S2 setting an execution sequence of the testing case; S3 starting a selenium-grid service onto a Hub node; S4 registering a plurality of testing nodes onto Hub nodes; S5 building an issuing mechanism among the Hub node and the testing nodes; S6 starting the testing case, and executing automatic WEB test. According to the method, parallel execution of the testing case is achieved by the aid of a multi-thread mechanism, testing time isgreatly saved, and testing efficiency is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a WEB automatic testing method based on parallel execution. Background technique [0002] Web automated testing is an important link in the development process, mainly to realize automated testing and verification of test cases, which can effectively save time and improve development efficiency. However, with the continuous popularization of software development models, higher requirements are put forward for the automated test execution time of WEB UI, and it is hoped that test results can be obtained in the shortest time. [0003] The current web automation test system is built around selenium webdrive. With the continuous superposition of system functions and the continuous superposition of the number of automated test cases, the sequential execution of each automated test case will inevitably consume a lot of time. Contents of the invention [0004] In order to solve the...

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
CPCG06F11/3688
Inventor 王志广
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products