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
CN113238932APending Publication Date: 2021-08-1010TH RES INST OF CETC

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
10TH RES INST OF CETC
Publication Date
2021-08-10

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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