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

Test case generation method and device

A test case and generation device technology, applied in software testing/debugging, etc., can solve problems such as insufficient to cope with workload, cumbersome and complicated generation process, etc.

Inactive Publication Date: 2018-01-16
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the writing and generation methods of test cases in use mainly include: equivalence class division, boundary value, causality diagram, decision table, etc. For software with many functions and many test points, when using the test cases generated by the above method, in order to improve the breadth, depth, coverage and accuracy of the test cases, the generation process is cumbersome and complicated, which is not enough Cope with a huge workload

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 case generation method and device
  • Test case generation method and device
  • Test case generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0048] The embodiment of the present invention discloses a method and device for generating test cases, so as to realize fast and convenient generation of test cases while ensuring the breadth, depth, coverage and accuracy of the test cases.

[0049] see figure 1 , a method for generating a test case provided by an embodiment of the present invention, comprising:

[0050] S101. Use the steps in the flow of the software system as nodes of the directed graph, ...

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 test case generation method and a test case generation device. The method comprises the steps of using steps in a flow of a software system as nodes of a directed graph, anddetermining numbers of the nodes; determining a sequence of the nodes according to an execution sequence of the steps, and determining marks for directed edges between the nodes; traversing the directed graph via a graph depth traversal algorithm, and using the numbers and the marks to record a node sequence of each path along a longitudinal direction of the directed graph and an edge sequence corresponding to the node sequence to generate a test case. According to the method, the flow in the software system is completely represented by the node sequence and the edge sequence; for software with various functions and many turn test points, breadth, depth, coverage and accuracy of the test case are ensured, the test case can also be quickly and conveniently generated and compiled, and time and cost are saved. Correspondingly, the test case generation device disclosed by the invention also has the abovementioned technical effects.

Description

technical field [0001] The invention relates to the technical field of software testing, and more specifically, to a method and device for generating test cases. Background technique [0002] With the development of information industries such as computer technology and Internet technology, there are more and more software development projects. Developers adopt the agile development model to speed up the development iteration cycle. However, with the continuous acceleration of the software development iteration cycle, testers Bringing a huge workload and challenges. [0003] Before performing software testing, testers need to write and generate test cases for the required functions of the software, and operate the program under the guidance of the test cases to find program errors, measure software quality, and evaluate whether it can meet the design requirements. At present, the writing and generation methods of test cases in use mainly include: equivalence class division,...

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
Inventor 孟祥坤
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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