Test data automatic generation method based on linear fitting function driving

A linear fitting and test data technology, applied in the field of automatic test data generation, can solve the problems that dynamic methods cannot find input, cannot effectively process, etc., and achieve the effects of reducing test costs, improving efficiency, and high efficiency

Active Publication Date: 2014-07-23
NANJING UNIV
View PDF2 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Methods based on static analysis cannot effectively deal with nonlinear constraints in the path, and dynamic methods are ...

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
  • Test data automatic generation method based on linear fitting function driving
  • Test data automatic generation method based on linear fitting function driving
  • Test data automatic generation method based on linear fitting function driving

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0071] The first implementation of linear fitting is to use multiple linear regression fitting. According to the coordinate set V y,z and the multivariate linear fitting function (where Ni is the number of input variables), that is, the multivariate linear fitting function LF that can be calculated y,z (X) coefficient {a 0 , a 1 ,...,a Ni}, thus completing the construction of the linear fitting function.

[0072] The implementation manners of the second and third linear fittings are simple linear fittings for each input variable one by one. First set the F y,z (X) as with respect to the input variable x j (x j Denotes the jth input variable, where j ∈ {1, 2, ..., N i}, N i is the number of input variables) function F y,z (x j ), according to the coordinate set V y,z can get about the input variable x j The coordinate set of is: V y,z,j ={(u 1,j , F y,z (u 1,j )), (u 2,j , F y,z (u 2,j )), ..., (u KU,j , F y,z (u KU,j ))}, where u i,j Indicates the val...

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 test data automatic generation method based on linear fitting function driving. According to the method, a path set is obtained through path analysis, then test data capable of covering each path are searched for each path, and a test data set of source codes to be tested is generated. The step of searching for the test data capable of covering each path for each path is achieved in the method that an input vector set is constructed through a random method firstly, then operational analysis is carried out on the input vector set, the input vector set is expanded through linear fitting means, and the test data capable of covering the paths can be obtained through repeated iteration. The method is highly automated, unit test efficiency can be improved as much as possible, test cost is reduced, and test coverage criteria oriented to paths are supported.

Description

technical field [0001] The invention relates to a method for automatically generating test data, in particular to a method for generating test case data for path coverage testing in automated unit testing. Background technique [0002] Testing technology is one of the most important and effective methods to ensure the quality of software systems, and it has always been the most important means for the industry to ensure the correctness of software systems. Limited by computing power and time and space resources, testing cannot exhaust all possible implementations of software. In practice, various test adequacy criteria are used to drive and evaluate the testing process. Therefore, for a given test adequacy criterion, how to generate a corresponding set of test cases and cover the corresponding structure with the execution of the driver program has become the most critical technical link in the testing process. At present, the design of test cases is basically done manually,...

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
IPC IPC(8): G06F11/36
Inventor 陈鑫成新欧建生周岩鞠秀芳
Owner NANJING 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