Unlock instant, AI-driven research and patent intelligence for your innovation.

Genetic Algorithm Based Statistical Regression Test Data Generation Method

A regression testing and data generation technology, applied in software testing/debugging, genetic modeling, etc., can solve problems such as inability to evaluate program reliability, and achieve the effect of improving generation efficiency and enriching theories and methods

Inactive Publication Date: 2016-08-17
CHINA UNIV OF MINING & TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The difference from traditional testing is that statistical testing can estimate the reliability of the program. In other testing methods, the test cases are carefully designed and screened, and the reliability of the program cannot be evaluated.

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
  • Genetic Algorithm Based Statistical Regression Test Data Generation Method
  • Genetic Algorithm Based Statistical Regression Test Data Generation Method
  • Genetic Algorithm Based Statistical Regression Test Data Generation Method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The invention applies the statistical test method to the regression test, and proposes a genetic algorithm-based statistical regression test data generation method. According to the variable related to the modified statement in the regression test process, the genetic algorithm is used to generate the partial probability distribution of the modified program, and together with the probability distribution of the irrelevant variable of the modified statement, the probability distribution of the input variable of the entire tested program is formed. Based on the above distribution, sampling generates test data covering the target path.

[0038] This part describes the embodiment of the present invention in detail in conjunction with specific drawings. The flowchart of the proposed method is shown in figure 1 As shown, the specific implementation steps are also drawn up according to this figure, and the technical solution of the present invention will be further described ...

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 statistical regression test data generation method based on genetic algorithm, which aims at rapidly and high-efficiently generating the test data for covering a target path. The method comprises the following steps of (1) determining relevant input variable according to an alter statement in the regression test process; (2) modeling the probability distribution of the input variable associated to the alter statement; (3) forming initial population on the basis of partial probability distribution of the an input component in the program before the alter and a distributed value; (4) calculating an applicability value of each individual in the population according to a designed applicability function; (5) judging whether an optimal solution is found for a target function according to the calculated individual applicability, and outputting the test data and entering the step 6 if the optimal solution is found; otherwise, carrying out variation operation for the individual to generate a novel individual and returning to the step 4; and (6) combining the probability distribution of the input variable which is not related to the alter statement to obtain the probability distribution of all input variables; and generating the test data according to the distribution sampling.

Description

technical field [0001] This patent belongs to the field of software testing, and specifically relates to a method for generating statistical regression test data based on a genetic algorithm, which can be used in software testing to generate test data covering target path sets. Background technique [0002] Software testing is the key to software quality assurance, an indispensable link in software development, and an important part of software engineering. The effect of testing is directly related to the quality of software products. According to the statistics of the American industry, software testing accounts for more than 50% of the total cost of the entire software development cycle, including many links that are very time-consuming, boring, very difficult and error-prone. In addition, with the continuous improvement of the complexity of computer control objects and the continuous enhancement of software functions, the scale of software is also continuously increasing....

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/36G06N3/12
Inventor 巩敦卫秦备任丽娜姚香娟田甜吴川张功杰钟超群陈永伟张晨党向盈
Owner CHINA UNIV OF MINING & TECH