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

Method for optimizing unit regression test case set based on control flow diagram

A technology of control flow graph and regression testing, applied in the application of control flow graph comparison technology in regression testing, in the field of unit regression test case set optimization based on control flow graph, it can solve loss, lack of pertinence of selection, increase testing Risk and other issues, to achieve the effect of improving effectiveness, improving test cases, improving selection accuracy and test credibility

Inactive Publication Date: 2013-02-06
BEIJING UNIV OF POSTS & TELECOMM
View PDF4 Cites 38 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the test case library reduction technology and the test case prioritization technology have higher test efficiency, but due to the lack of selection pertinence, the ability to find program errors may be greatly lost compared with the original test case set, that is, This strategy of saving testing effort by reducing test cases increases testing risk while reducing costs

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 for optimizing unit regression test case set based on control flow diagram
  • Method for optimizing unit regression test case set based on control flow diagram
  • Method for optimizing unit regression test case set based on control flow diagram

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The method of the present invention will be further described in detail below in conjunction with the drawings and the embodiments of the present invention.

[0035] The basic idea of ​​the present invention is to use the third strategy of regression testing, that is, to selectively reuse the test cases in the baseline test case library according to the modification of the program, considering that the original test case may not be able to satisfy the test of the new code. Demands lead to insufficient regression testing, so it is necessary to add new test cases to the set of regression test cases. In this way, the program control flow graph comparison technology identifies the modified points in the program, and selectively reuses such test cases according to the principle that the results of the test cases whose execution path passes through the modified points may change when they are run again, and according to the coverage requirements Add new test cases; that is, 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 invention discloses a method for optimizing a unit regression test case set based on a control flow diagram. The method comprises the following steps: A, finding out modified points corresponding to a modified part from the control flow diagram of a tested unit being tested unit before and after; B, screening out test cases, of which the execution paths pass through the modified points, to serve as one part of the regression test case set, namely a selected test case set (Tselected), and running all the test cases in the set; C, calculating all the reachable successor nodes of the modified points and selecting a node subset N which is not covered in the running process of the step B; D, if the N is null, executing the step F, and if the N is not null, executing the step E; E, selecting one node from the N to serve as a coverage target generation test case, adding the coverage target generation test case into a new test case set (Tnew) and then completely running, updating the N, deleting the nodes covered in the running process and returning to the step D; and F, finishing construction of the regression test case set (TR). By application of the method, the efficiency of the regression test can be improved and the effectiveness and the sufficiency of the regression test are guaranteed.

Description

technical field [0001] The invention relates to software testing technology, in particular to a control flow diagram-based unit regression test case set optimization method, which belongs to the application of control flow diagram comparison technology in regression testing. Background technique [0002] When a developer discovers a software fault during unit testing, the code is modified accordingly. After the unit under test is modified, it needs to be retested to ensure that the modification has achieved the expected purpose and no new defects have been introduced. This process is called regression testing. As an integral part of the unit test cycle, regression testing occupies a large proportion in the entire testing process, and its cost even reaches more than half of the entire testing cost. Therefore, it is very meaningful to improve the effectiveness and efficiency of regression testing by choosing the right regression testing strategy. [0003] The focus of improv...

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
Inventor 宫云战王雅文黄俊飞金大海蔡敏
Owner BEIJING UNIV OF POSTS & TELECOMM
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