Parallel testing method and parallel testing server

A server and test case technology, applied in the computer field, can solve the problems of reducing the work efficiency of test cases, the difficulty of writing parallel test systems and test scripts, etc., and achieve the effect of improving work efficiency

Active Publication Date: 2012-07-25
ALIBABA GRP HLDG LTD
View PDF6 Cites 61 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this application is to provide a method for parallel testing and a parallel testing server to solve the problem that parallel testing systems a

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
  • Parallel testing method and parallel testing server
  • Parallel testing method and parallel testing server
  • Parallel testing method and parallel testing server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Before parallel testing, a configuration file can be created in advance, and multiple system resource information and assertion adaptation conditions are recorded in the configuration file, so that during parallel testing, the system resource information in the configuration file can be invoked to run test cases, And call the assertion adaptation conditions in the configuration file to determine the correctness of the running results.

[0033] Such as figure 1 As shown, it is a schematic diagram of the method steps of parallel testing in Embodiment 1 of the present application, and the method includes the following steps:

[0034] Step 101: The parallel test server divides the multiple test cases to be executed, and the divided groups contain multiple test cases.

[0035] The number of groups divided in this embodiment can be multiple or one, but the number of test cases contained in each group must be greater than 1, so that when running for the test cases in each gro...

Embodiment 2

[0052] Embodiment 2 of the present application describes the solution of Embodiment 1 of the present application in detail through a specific example.

[0053] In this embodiment two, before carrying out the parallel test, according to image 3 Write the configuration file with the structure shown, assuming that there are 10 test cases to be executed, these test cases are divided into 2 groups (group1 and group2), where group1 contains 6 test cases, group2 contains 4 test cases, In this scenario, the description of the configuration file is as follows:

[0054] Configuration files can exist in the form of packets, image 3 Only the information set corresponding to group1 is marked in , and the information set corresponding to group2 is represented in the configuration file with image 3 similar. The information set corresponding to group1 mainly includes three parts:

[0055] first part:

[0056] The first part is the stack point (pub) node, and the pub node includes two ...

Embodiment 3

[0098] Embodiment 3 of the present application also provides a parallel test server capable of executing the solutions of Embodiment 1 and Embodiment 2, such as Figure 8 As shown, the parallel test server includes a configuration module 100, a grouping module 101, a parallel driver module 102 and an assertion adaptation module 103, wherein: the configuration module 100 is used to create a configuration file, which includes system resource information and assertion adaptation Condition; Grouping module 101 is used for dividing a plurality of test cases to be executed, and the group obtained by dividing contains a plurality of test cases; Parallel driver module 102 is used for each group, calls a plurality of test cases in this group simultaneously, utilizes The system resources corresponding to the system resource information in the configuration file run the test case in the group; the assertion adaptation module 103 is used to determine whether the test case execution result ...

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 parallel testing method and a parallel testing server. The parallel testing method mainly includes the steps: designating test cases to be executed by means of file configuration; dividing the test cases to be executed; respectively using system resources in each configuration group obtained by means of division; and parallelly operating a plurality of test cases in the group. Compared with the prior art, the parallel testing method and the parallel testing server have the advantages that corresponding test systems do not need to be respectively written for different test cases parallelly operated every time, only one configuration file needs to be established and used by all the test cases, a test script does not need to be respectively written for each test case, and parallel testing efficiency can be effectively improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method for parallel testing of test cases and a parallel testing server. Background technique [0002] A test case is a description of a test task for a special target (such as a specific software product), and a set of codes for testing input, execution conditions, and expected results are compiled to test whether the path of the special target is correct or the Whether the special target meets the requirements. Test cases are very important for software security and stability testing. After executing the test cases, compare the obtained execution results with the assertion adaptation conditions corresponding to the test cases. According to the correctness of the execution results and No, to determine whether the function of the software described by the test case is correct. [0003] In order to improve the execution efficiency of test cases, the industry has pr...

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 ALIBABA GRP HLDG LTD
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