Software testing data amplification method

A technology for software testing and testing data, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc. Effect

Inactive Publication Date: 2016-06-29
XIAN UNIV OF POSTS & TELECOMM
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The problem to be solved by the present invention is: the original test data set is difficult to meet the test requirements of the new version of the software, and a new test data amplification method is needed to effectively expand the original test data on the basis of the original test data while consuming less resources. Generate new test data

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
  • Software testing data amplification method
  • Software testing data amplification method
  • Software testing data amplification method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Such as figure 1 , the present invention combines the evolution information of software and self-adaptive particle swarm algorithm to carry out test data amplification in regression test, reaches higher path coverage rate with lower cost, and its specific steps are as follows:

[0026] (1) Use the Soot code analysis tool to convert the new version of the program P into a typed three-address code Jimple, from which all paths P in the program P are extracted path and path condition PC;

[0027] Example of Jimple intermediate code conversion figure 2 As shown, in the example, the Jimple intermediate code uses labels to identify each branch of the example code, and uses the goto statement to jump between labels, which can easily parse out the path and path conditions of the example program. The paths and path conditions of the sample programs are shown in Table 1.

[0028] Table 1: Paths and path conditions for example programs

[0029] path

path condition...

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 software testing data amplification method, which is targeted at the problem that it is difficult for an original testing data set to meet the demand of new-version software testing. The method comprises: firstly, analyzing a code of a new-version program, and extracting all paths and path conditions of a to-be-tested program; then determining a traversing path of original testing data according to the path conditions, and constructing a similar matrix with a target path that the new-version program needs to cover, and selecting appropriate testing data in the original testing data as an initial evolving population according to the similar matrix; and finally, according to the traversing path of the original testing data and input components corresponding to different sub-path nodes of the target path, determining a position where an adaptive particle swarm algorithm operates an evolving individual, so as to generate new testing data. According to the method provided by the present invention, software testing data amplification is performed by combining a white-box testing technology with the adaptive particle swarm algorithm, so that relatively high efficiency and stability are achieved in the aspect of amplification of a testing data set.

Description

technical field [0001] The invention belongs to the technical field of software testing, in particular to the technical field of regression testing, and is used for amplifying test data sets to meet the testing requirements of new version software, and is a method for amplifying software testing data. Background technique [0002] In the process of regression testing, testers retest the new version of the software to verify that the new version of the software has not added new errors or caused errors in other codes. Existing regression testing research is usually divided into three categories: test data selection , test data repair and test data set augmentation. In the past few decades, regression testing research has mainly focused on the selection of test data. Its main task is how to select from the original test data set to meet some requirements of the new version of the software. However, the selection of the original test data is often impossible Test new features ...

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
CPCG06F11/3668G06F11/3684
Inventor 王曙燕孙家泽温春琰王小银王燕
Owner XIAN UNIV OF POSTS & TELECOMM
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