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
CN102419728AInactive Publication Date: 2012-04-18BEIJING UNIV OF POSTS & TELECOMM

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING UNIV OF POSTS & TELECOMM
Publication Date
2012-04-18
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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