Method for dynamically adjusting priority sequence of test cases

A technology of prioritization and test cases, applied in software testing/debugging, etc., to achieve good test results

CN102880545AInactive Publication Date: 2013-01-16中国人民解放军63928部队
3 Cites 43 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2013-01-16
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 dynamically adjusting a priority sequence of test cases. The method comprises the following steps of: designing the test cases; calculating priority values of the test cases; and sequencing and dynamically adjusting the test cases. By dynamically adjusting the priority of the test cases in the test execution process, a plurality of system defects can be found in short time, and the using efficiency of the test cases is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of computer information processing, and in particular relates to a method for dynamically adjusting test case priority ordering. Background technique

[0002] In the process of software development and testing, with the changes and changes of the software under test, testers need to continuously update and add new test cases, which leads to the continuous increase of the scale of the test case set, and the cost of fully implementing it. In this case, in order to reduce the cost of test case execution and improve the use efficiency of test cases in the testing process, a lot of research work has been done on the selection and use of test cases. Among them, the test case sorting technology focuses on the execution strategy of the test cases in the test process. Since different test cases may have different contributions to the completion of the test goal, different test cases can be used after sorting accordin...

Examples

Embodiment Construction

[0048] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0049] figure 1 Dynamically adjust method flow diagrams for test case prioritization.

[0050] In order to better measure the priority method, the metric APFD (Average of the Percentage of Faults Detected) of the weighted average percentage of defect detection during the execution of the test case set can be used, where the running status of the test case is used as the abscissa, The defect detection status of test cases is used as the ordinate, and the APFD value of the sorting method can be calculated from the defect detection curve. The larger the value of APFD, the faster the defect detection speed of the corresponding test case sorting is.

[0051] Assuming that the test case set T contains m test cases and there are k defects in the tested software P, the definition of APFD is:

[0052] APFD = 1 - ...