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

Method for determining software test process sufficiency based on coverage rate quantitative indicators

A technology for software testing and index determination, which is applied in software testing/debugging to achieve the effect of improving efficiency and accuracy

Inactive Publication Date: 2012-04-18
BEIJING UNIV OF POSTS & TELECOMM
View PDF2 Cites 58 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, the traditional coverage criterion needs to be further expanded to solve new problems in the development of software testing technology

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 determining software test process sufficiency based on coverage rate quantitative indicators
  • Method for determining software test process sufficiency based on coverage rate quantitative indicators
  • Method for determining software test process sufficiency based on coverage rate quantitative indicators

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0052] The unified calculation method of multiple coverage ratios in white-box automated software testing can use different testing tools and testing methods to dynamically execute the program under test. Coverage is used as a quantitative indicator to determine whether the software testing process is sufficient. The basic idea is: read the program to be tested, perform static analysis on it, and divide the program under test into test units according to user testing requirements. Among them, when the system is selected to execute automatically, the system regards a single function as a unit under test; when manual execution is selected, the user selects one or more functions, classes or files to be tested, and the system regards it as a unit under test . Then the user selects the coverage criterion, ext...

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 provides a method for determining software test process sufficiency based on coverage rate quantitative indicators. The method comprises the following steps of: A, performing precompilation, lexical analysis and syntax analysis on a tested program to acquire the calling relationship diagram of the abstract syntax tree, the control flow graph and the function of the program, and automatically generating a tested unit according to the test requirement of a user; B, extracting a corresponding element set to be covered in the tested unit from the abstract syntax tree and the control flow graph according to a coverage criterion; C, inserting a corresponding probe function into the program of the tested unit according to the coverage criterion; D, dynamically testing the tested unit into which the probe function is inserted by selecting a system automatic executing mode or a user manual executing mode according to the test requirement of the user; and E, acquiring the covered element set of the tested unit according to the returned information of dynamic test execution, and calculating the coverage rate of the tested unit. By the method, the efficiency and the accuracy of a software evaluation test can be improved.

Description

technical field [0001] The invention relates to software testing technology, in particular to a method for determining the adequacy of a software testing process based on a quantitative index of coverage, that is, using code coverage as a quantitative index to determine whether the test in software testing is sufficient. Background technique [0002] In each stage of software unit testing, people always expect to use a unified quantitative index to determine the adequacy of the testing process and methods, and use this to guide when to end the testing. Here, coverage rate is a common quantitative evaluation standard in software unit testing. Common coverage criteria include statement coverage, decision coverage, condition coverage, decision / condition coverage, modified decision condition coverage, combination coverage, and path coverage. However, the existing traditional coverage criteria are not applicable to all stages of software testing. The testing phase includes unit ...

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