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

Automatic test case generation method

A technology that automatically generates and test cases, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as repetitive work by testers, redesign of use cases, and limited thinking of testers, so as to achieve low test efficiency. , the effect of saving money and time, reducing the time spent

Pending Publication Date: 2021-08-10
10TH RES INST OF CETC
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After receiving the test task and designing the test case, the tester finds that the actual content of the software does not match the development requirements, and other problems may be found during the execution of the use case, resulting in the need to redesign the use case and execute it again
It makes testers need to repeat work and is inefficient
[0005] (2) Manual design of test cases limits the thinking of testers
[0006] (3) The complexity of software is gradually increasing, and users' requirements for the reliability of complex systems are gradually increasing

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 test case generation method
  • Automatic test case generation method
  • Automatic test case generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] refer to figure 1. According to the present invention, the flow chart, judgment table, and state transition diagram are edited online on the webpage, the test model based on workflow is obtained, and the data structure is defined for the workflow, judgment table, and state transition diagram, which are used for front-end and back-end data. After the backend acquires the data, the state diagram test model is converted to a binary state tree, and on this basis, combined with the boundary value and equivalence class, the expression "count==0||(count !=1&&count!=0)" in the parameter 'count' and its judgment condition '==', '! =', '||', '&&'. Users can define similar expressions according to their own needs; use the graph traversal algorithm to obtain the target path existing in the test model, make a visit to each node in the binary state tree in turn, and traverse all state-to-state edges , arrange the nodes according to the order of visiting nodes, respectively get the...

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 automatic test case generation method disclosed by the invention is high in test efficiency, strong in adaptability and high in reusability. According to the technical scheme, the method comprises the steps that a state diagram test model is converted into a binary state tree on the basis of a workflow test model, and parameters and judgment conditions in an expression input by a user or an expression defined by the user according to the requirement of the user are extracted in combination with boundary values and equivalence classes on the basis of the binary state tree; a target path existing in the test model is obtained through a graph traversal algorithm, all states are traversed to edges of the states, sequence tables of all nodes in the binary state tree are obtained respectively, values are analyzed through boundary values and equivalence classes to obtain test items, an expression defined by a user is analyzed, judgment conditions of parameters are obtained, a value corresponding to the judgment condition is generated, a test case is automatically generated, and finally reverse verification isperformed according to the generated test case to judge whether the case is correct or not.

Description

technical field [0001] The invention relates to model testing in the field of software testing, such as flow charts, judgment tables, and state transition diagrams. After the user builds the model correctly, test cases can be automatically generated. Assist testers to complete the test work. Background technique [0002] With the advancement of technology, the development of software. All kinds of software are integrated into people's daily life. Today, with the emergence of a large number of software, higher security and stability are also proposed for the software itself. Before a piece of software goes online, a lot of testing needs to be done in order to improve the quality of the software. Software testing is an integral part of the software development cycle. Yet software testing costs more than half of the cost of software development. Software testing is a very resource-intensive activity, and one of the more important tasks is to find a suitable set of tests f...

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/3688G06F11/3692
Inventor 蒲卿路王月波刘涛
Owner 10TH RES INST OF CETC
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