Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for generating test case

A test case generation and test case technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as inaccurate test results and achieve the effect of improving accuracy

Inactive Publication Date: 2017-05-17
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In this case, each test path corresponds to an isolated function point, and the cause and effect and the overall situation of the project are not displayed. In business, there is generally a correlation between the two steps, and the two steps are tested as separate function points. , it may cause the test results of the two steps to be all right, but in fact there are problems when the two steps work continuously, which makes the test results not accurate enough

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
  • Method and device for generating test case
  • Method and device for generating test case
  • Method and device for generating test case

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] The present invention provides a method for generating test cases, see figure 1 as shown, figure 1 A flow chart of the process of a test case generation method provided by the present invention; the method includes:

[0054] Step s101: receiving the input business flow chart established according to the user scenario;

[0055] Among them, the business flow chart here is established according to the user scenario, but it is not necessarily a complete business process in the user scenario, and may be a part of the business process, depending on the actual test needs.

[0056] Step s102: Obtain the start node and end node from the business flow chart;

[0057] Step s103: Determine all paths between each pair of starting and ending nodes;

[0058] Step s104: Output the determined path as a test path for staff to write test cases according to the test path.

[0059] Afterwards, the process of generating test cases according to the test path is to set a series of output s...

Embodiment 2

[0062] Based on the first embodiment, the present invention also provides another test case generation method.

[0063] As preferably, after step s101, before step s102, it also includes:

[0064] Step s1011: Integrate several steps forming strongly connected components in the business flow chart into one step node;

[0065] Correspondingly, the process of step s102 is specifically:

[0066] Obtain the start node and end node from the integrated business flow chart;

[0067] In step s104, the process of outputting the determined path as the test path is specifically:

[0068] In the determined path, the step nodes obtained by integrating several steps forming strongly connected components are expanded into the path state before integration;

[0069] The determined path is adjusted according to the expanded path, and the test path is obtained and output.

[0070] It is understandable that several steps that form a strongly connected component will form a circular process in...

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 method and device for generating a test case. The method comprises the steps that an input service flow diagram established according to user scenarios is received; initial nodes and terminal nodes are acquired from the service flow diagram; all paths between each pair of initial node and terminal node are determined; the determined paths are adopted as testing paths to be output to be used by workers for compiling the test case according to the testing paths. According to the test case, whether all independent step function points on the corresponding testing paths go wrong or not can be reflected, the association of all the steps can be considered, whether a continuous path formed by continuous steps goes wrong or not is detected, and the accuracy of a test result is improved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a test case generation method and a device thereof. Background technique [0002] In the actual working environment, when the test team takes over the project, it needs to design the test cases of the project, and test the project one by one according to the test cases. [0003] Currently, test cases are written based on function points, which can be understood as steps with specific functions in the project, such as the steps to open a shopping cart. However, since the business in each user scenario is composed of many steps, that is, a business can be represented by a flow chart, and when writing based on function points, generally, each small path in the business flow chart is used as a test path , and the small path is only a small step, and its input and output may not be the start node or end node in the business flow chart (the test case is written according to t...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 王宜燕
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD