A test case prioritization method and system based on dynamic feedback weight

A technology for prioritization and test cases, applied in software testing/debugging, etc., can solve problems such as reducing sorting effects, achieve improved efficiency, reduce time and manpower expenses, and improve test efficiency

Active Publication Date: 2022-02-15
JIANGSU UNIV
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Based on the 1999 paper, Elbaum et al. made some improvements. First, relative to the statement and branch coverage granularity, the coarse-grained function coverage was increased, and it was confirmed that the coarse-grained sorting method can reduce program overhead, but it will also reduce the sorting effect.

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
  • A test case prioritization method and system based on dynamic feedback weight
  • A test case prioritization method and system based on dynamic feedback weight
  • A test case prioritization method and system based on dynamic feedback weight

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The present invention will be further described below in conjunction with the accompanying drawings and examples. It should be noted that the described examples are only intended to facilitate the understanding of the present invention, and have no limiting effect on it.

[0052] The present invention aims to solve the problem of sorting test cases based on code coverage, and provides a method for prioritizing test cases based on dynamic feedback weights, which effectively improves the efficiency of finding errors in test case sets and provides a complete test Framework and algorithm, and sufficient experiments have been carried out to prove the feasibility and effectiveness of the method.

[0053] First, several concepts involved in the definition of the present invention are defined as follows.

[0054] Definition 1 Test case: A test case is a set of test inputs, execution conditions and expected results compiled to ensure a certain goal.

[0055] Definition 2 Test c...

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 and system for prioritizing test case sets based on dynamic feedback weights. Step 1 is to collect code coverage information of the test case set according to the operation of the test case set on the basic version program set; step 2 is to convert the test case set The set is run on the iterative error version to obtain the error detection status of the test case set on each version; step 3, use the dynamic feedback weight sorting method to sort the test cases according to the obtained code coverage information, and output the sorted test case sequence; Step 4, according to the sorted test case sequence and the error detection situation of the test case set, calculate the evaluation value of the test case sequence and perform statistical analysis. In the sorting process, compared with the traditional greedy algorithm, the covered statements are no longer considered or completely discarded. As the number of covered sentences increases, the inverse proportional weight value is set, which reduces the randomness in the sorting process and improves the test cases. The efficiency of sequence detection errors.

Description

technical field [0001] The invention belongs to the field of software testing, and relates to a test case priority sorting method based on dynamic feedback weights. Background technique [0002] From the software development life cycle, we can find that software engineering is not only software development and programming language, software testing occupies a large part, especially in software iterative regression testing, in fact, regression testing is an effective method , which can ensure partial modification of the code and bring some errors to the tested program, and the data shows that regression testing generally accounts for about 80% of the software testing budget and half of the entire software maintenance budget. Therefore, in order to reduce the cost of regression testing, the industry and academia have proposed a series of technologies based on test maintenance, including test case sorting TCP (Test Case Prioritization), test case selection TCS (Test Case Select...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 黄如兵张犬俊陈锦富
Owner JIANGSU UNIV
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