Supercharge Your Innovation With Domain-Expert AI Agents!

Test path generation method and related equipment

A test path and path technology, applied in the field of test path generation methods and related equipment, can solve the problems of missed testing, trouble, and inability to guarantee the integrity of the test path, and achieve the effect of ensuring comprehensiveness and saving time and cost.

Active Publication Date: 2021-03-26
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of generating test paths, the path generator and end conditions need to be specified, which requires developers to have relevant professional knowledge. For novices, it takes a certain amount of time and effort to learn, which is very troublesome
[0004] Moreover, based on the specified end conditions, the method of generating test paths for the corresponding state machine diagram of the business flow chart by edge and / or vertex coverage cannot guarantee the integrity of the generated test paths, and may also cause test omissions Occurs, reducing the reliability and accuracy of test results

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 path generation method and related equipment
  • Test path generation method and related equipment
  • Test path generation method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] For the content described in the background technology section, refer to figure 1 As shown in the state machine diagram of a certain business flow chart, in the process of generating the test path according to the state machine diagram, the GraphWalker algorithm can be used to cover side by side, such as executing "java-jar graphwalker-cli-4.2.0.jar offline -mdemo1.graphml "random(edge_coverage(100))">out_10041.txt" This command generates the test path used to write the corresponding test case, such as Figure 2a The representation of a test path is shown, but it is not limited to this; or use the GraphWalker algorithm to cover by vertices, such as executing "java-jar graphwalker-cli-4.2.0.jar offline-m demo1.graphml" random( vertex_coverage(100))">out_10042.txt" to generate a test path, such as Figure 2b A representation of a test path is shown, but not limited to.

[0062] Through the analysis of the two test path generation methods described above, it can be seen ...

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 a test path generation method and related equipment, since the data types of to-be-tested data of different services under different test scenes may be different, such as a service flow chart file, a state machine diagram and a source code file, in order to meet different service test requirements, after computer equipment acquires the to-be-tested data of a target service,the method can perform structured processing on to-be-tested data according to a data processing rule corresponding to a data type of the to-be-tested data to obtain structured data containing state circulation information of the to-be-tested data, and performs path traversal on the obtained structured data through artificial intelligence technologies such as a depth-first search mode, thus obtaining the total test path contained in the to-be-tested data rapidly and reliably, so that the time cost is saved, the comprehensiveness of the obtained test path is ensured, a certain examination basisis provided, and the obtained total test path has evaluability.

Description

technical field [0001] This application relates to the application field of software testing, in particular to a test path generation method and related equipment. Background technique [0002] In the process of project design and development, corresponding test cases are usually written for certain (usually functional) aspects of the project, such as writing test cases for implementing a function based on the test paths contained in the business flow chart for realizing a certain function , by executing the test case, the test of the corresponding function of the project is realized. [0003] Specifically, the prior art usually adopts a model-based testing method such as GraphWalker to automatically generate test paths, and then generate required test cases based on these test paths. However, in the process of generating test paths, the path generator and end conditions need to be specified, which requires developers to have relevant professional knowledge. For novices, it...

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/3684G06F11/3676G06F11/3672
Inventor 黄文昊鲁四喜
Owner TENCENT TECH (SHENZHEN) CO LTD
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