Method for dividing priorities of test cases in regression test based on distribution

A technology of test cases and regression testing, which is applied in the field of software testing and regression testing in software testing, can solve problems such as order-sensitive errors that are difficult to detect, and achieve the effect of increasing speed and saving time and cost

Inactive Publication Date: 2011-11-23
江苏苏测检测认证有限公司
View PDF3 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, order-sensitive errors are difficult to detect by relying solely on element coverage

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 dividing priorities of test cases in regression test based on distribution
  • Method for dividing priorities of test cases in regression test based on distribution
  • Method for dividing priorities of test cases in regression test based on distribution

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Such as figure 1 , for the test case set in the regression test, the present invention prioritizes the execution order of the test cases, and the test cases with high priority will be executed first, so that the test cases with the close execution order are scattered in the profile space as much as possible, so that To maximize the error detection capability as early as possible and improve the error detection rate, the steps are as follows:

[0029]1) Obtain the execution sequence information and coverage information of each test case in the test case set T, use the execution sequence information as the characteristics of the test case execution profile, the execution sequence is a sequence of character strings, and record the execution of program elements Sequence; use the white-box testing tool CodeCover to obtain the execution sequence information and coverage information of each test case in the test case set. The white-box testing tool CodeCover includes injection...

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 relates to a method for optimizing test cases in a regression test based on distribution, which comprises the following steps of: performing priority ranking on the execution sequences of test cases in a test case set in the regression test according to the distribution of an execution profile in a profile space, and preferentially executing the test cases with high priorities, so that the test cases with adjacent execution sequences are dispersed in the profile space to the greatest extent, error detection capability is maximized as early as possible, and the error detection rate is improved. The execution sequences of the test cases are ranked on the premise of not performing any test case reduction, namely the create sequences of the test cases are not taken as the execution sequences of the test cases, and the execution sequences of the test cases are ranked by a distribution-based test case priority technology, so that on the one hand, the error detection capability of the test case set is not influenced, and on the other hand, the error detection rate is improved; therefore, a programmer can find more errors as early as possible, and the time cost of searching the errors by the programmer is saved.

Description

technical field [0001] The invention belongs to the technical field of software testing, in particular to the technical field of regression testing in software testing, and is used for distribution-based test case prioritization technology, and a distribution-based test case prioritization method in regression testing. Background technique [0002] For industrial programs, test case sets usually contain thousands or even more test cases. Execution of all test cases is expensive, especially for regression testing: as the program evolves, the number of test cases increases; under limited resource constraints, it is difficult to re-execute each test case. [0003] The test case prioritization technique aims to solve the above problems. The test case priority technology rearranges the order in which test cases are executed according to some criteria, and the test cases with higher priority will be executed first. The present invention is mainly aimed at the regression testing ...

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 江苏苏测检测认证有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products