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

Method and device for predicting regression test failure on basis of repair deficiency change

A regression testing and defect technology, applied in the field of source code change analysis, which can solve problems such as boring and time-consuming

Active Publication Date: 2015-11-11
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This is a very time-consuming and boring process

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 and device for predicting regression test failure on basis of repair deficiency change
  • Method and device for predicting regression test failure on basis of repair deficiency change
  • Method and device for predicting regression test failure on basis of repair deficiency change

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0021] Embodiments of the present invention provide a method for predicting failure of regression testing based on changes to repair defects, such as figure 1 As shown, the method for predicting regression test failure based on the change of repairing defects includes:

[0022] S11. Obtain influential factors by analyzing the change history of repairing defects, select feature vectors from them, and construct a feature model.

[0023] S12. Using the Logistic ...

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 and a device for predicting regression test failure on the basis of the repair deficiency change, and relates to the technical field of source code change analysis. The method and the device are used for solving the problem that in the prior art, corresponding test cases capable of causing the regression test failure cannot be found. The method comprises the following steps of: obtaining influence factors through the analysis on the repair deficiency change history; selecting feature vectors from the influence factors to build a feature model; performing machine learning on the built feature model by a Logistic regression model to obtain a prediction model; using the prediction model for predicting whether the repair deficiency change can cause the regression test failure or not; and recommending the test cases capable of causing the regression test failure through the analysis on a static call graph. The method and the device provided by the invention are suitable to be used for providing concrete test cases causing regression test failure during the repair of deficiencies in software source code.

Description

technical field [0001] The invention relates to the technical field of change analysis of source codes, in particular to a method and device for predicting regression test failure based on defect repair changes. Background technique [0002] The source code of software is often changed in order to fix discovered defects. These changes to fix defects may cause unexpected behavior, which makes the scenario inconsistent with the current regression test case, thus causing the regression test to fail. Research shows that 48.7% of changes that fix bugs may invalidate regression tests, which means that for 48.7% of changes, developers need to run regression tests multiple times. This is a very time-consuming and tedious process. Therefore, before running the regression tests, it is very helpful to find out which corresponding test cases cause the failure of the regression tests to quickly fix the defects. Contents of the invention [0003] The present invention provides a meth...

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 INST OF SOFTWARE - CHINESE ACAD OF SCI
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