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

Multi-task software test case evolution generation method

A technology of software testing and test cases, applied in software testing/debugging, genetic rules, error detection/correction, etc., can solve problems such as low efficiency of test case generation, reduce test costs, improve search efficiency, and improve efficiency Effect

Inactive Publication Date: 2021-04-30
XUZHOU UNIV OF TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem of low efficiency in the generation of test cases for detecting numerous software defects in the prior art, the present invention proposes a method for evolutionary generation of multi-task software test cases. The method is different from the original method in that it combines The mutation branches are divided into the same group. For multiple mutation branch groups, a multi-task test case generation mathematical model is established, and test cases with high defect detection capabilities are generated in parallel.

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
  • Multi-task software test case evolution generation method
  • Multi-task software test case evolution generation method
  • Multi-task software test case evolution generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] Such as figure 1 As shown, it is a general flow chart of a kind of multi-task software test case evolution generation method proposed by the present invention. The method includes:

[0049] Step S1: Execute the dependency grouping mutation branch based on the path to which it belongs:

[0050] Let the executable path set of G be P={P 1 ,P 2 ,…}, remember the path where s i for P i A statement on the above, s i+1 for s i the subsequent statement. to s i Implement the mutation to get the mutation branch M j , M j The true branch of is denoted by M j (1).

[0051] S1.1: Through static analysis, determine M j (1) with s i+1 Execution relation, if M j (1) execute, s i+1 can also be executed, then in P i on, you can put M j , M j (1 insert s i in front of, get the path Because M j (1) by s i is obtained by performing mutation, and the subpath "M j , M j (1), s i ,s i+1 " is the executable path, you can judge the P i ' is also the executable path...

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 multi-task software test case evolution generation method, and aims to convert a variation test problem into a traditional coverage path test problem according to the executability of variation branches and program paths, and efficiently generate test cases with defect detection capability by adopting a multi-task parallel mode. The method comprises the following steps: firstly, statically analyzing execution correlation of variant branches and program paths, and dividing the variant branches with the same execution path into the same group; secondly, establishing a mutation test case generation multi-task optimization model based on path coverage for the multiple groups of mutation branches; and finally, solving the model by utilizing a multi-population genetic algorithm, and efficiently generating a test case with defect detection capability by adopting a multi-task parallel mode. According to the method, the variant branches are grouped according to the paths to which the variant branches belong, and a traditional mature path testing method is adopted, so that the software testing efficiency is improved, and the test case with high defect detection capability is generated.

Description

technical field [0001] The invention relates to the field of computer software testing, in particular to a method for evolutionary generation of multi-task software test cases. Background technique [0002] Software testing refers to the detection of defects in a software or software system by manual or automatic methods. Mutation testing is a powerful but expensive testing technique, especially for testing data that kills a large number of variants is very difficult to obtain. A variation branch is composed of the original statement and its variation statement. The true branch of the mutation branch is covered by a test data, indicating that the corresponding mutation is killed under the weak mutation test criterion. [0003] A program under test generally produces many variants. In order to kill these variants, a large number of test cases are needed; moreover, these test cases need to execute the original program and variants at the same time, so the efficiency of mutat...

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/36G06N3/12
CPCG06F11/3684G06N3/126
Inventor 党向盈巩敦卫姚香娟鲍蓉姜代红阮少伟陈磊厉丹李子龙包季楠袁偲朕
Owner XUZHOU UNIV OF TECH
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