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

Method and device for predicting regression test failure based on repairing defect change

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

Active Publication Date: 2018-06-19
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF5 Cites 1 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 based on repairing defect change
  • Method and device for predicting regression test failure based on repairing defect change
  • Method and device for predicting regression test failure based on repairing defect 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 present invention provides a method and device for predicting regression test failure based on repairing defects, relates to the technical field of source code change analysis, and is used to solve the problem that the corresponding test cases that cannot be found in the prior art will cause regression test failure. The method includes: obtaining influential factors by analyzing the change history of repairing defects, selecting a feature vector therefrom, and constructing a feature model; using a Logistic regression model to perform machine learning on the built feature model to obtain a prediction model; using The predictive model predicts whether the change of repairing the defect will cause the failure of the regression test; through the analysis of the static call graph, it recommends the test cases that may cause the failure of the regression test. The present invention is suitable for providing specific test cases that lead to failure of regression tests when repairing defects in software source codes.

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 Patents(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