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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


