Supercharge Your Innovation With Domain-Expert AI Agents!

AP-PSO algorithm-based combined test case generation method

A technology of AP-PSO and combined testing, which is applied in software testing/debugging, computing, error detection/correction, etc. It can solve problems such as not considering higher coverage, inconsistent interaction, and not taking into account the particularity of parameter selection, etc.

Active Publication Date: 2017-04-26
HANGZHOU HUICUI INTELLIGENT TECH CO LTD
View PDF1 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, in the related research of using particle swarm optimization to generate coverage tables, it mainly realizes the generation of two-two combination coverage test cases, and does not consider the situation of higher coverage strength and inconsistent interaction strength
At the same time, the selection of parameters has a great impact on the performance of the algorithm. Most of the research work usually selects a set of empirical parameters without considering the particularity of parameter selection on different coverage tables.

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
  • AP-PSO algorithm-based combined test case generation method
  • AP-PSO algorithm-based combined test case generation method
  • AP-PSO algorithm-based combined test case generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The present invention will be further described below in conjunction with the accompanying drawings and through specific embodiments.

[0022] Such as Figure 1-3 As shown, the combined test case generation method described in the present invention combines the one-test-at-a-time strategy with the adaptive particle swarm optimization algorithm, and proposes a priority measurement function and inertia weight adaptive adjustment strategy , used to generate combined test cases, including the following steps:

[0023] Step 1: Analyze the actual problem, calculate the number n of factors and the value range D of each factor i ={1,2,...,l i}, and obtain the combination set S to be covered by analyzing the constraints and coverage strength.

[0024] Step 2: Measure the function r according to the priority k Calculate the priority of each combination and determine the combination c with the largest weight:

[0025]

[0026]

[0027] Among them, r k Indicates the wei...

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 an AP-PSO algorithm-based combined test case generation method and belongs to the field of software testing. The method comprises the steps of obtaining a combination set needed to be covered through static analysis; adjusting a one-test-at-a-time policy, changing random selection of one combination to construction of one priority measurement function, performing priority measurement on each combination, and selecting a combination with the highest priority; and generating a single test case by adopting an adaptive particle swarm optimization algorithm, performing adaptive adjustment on inertial weight based on swarm particle quality, performing control on a maximum speed of particles, performing rounding operation on the speed of each particle in a discretization way, and performing boundary processing on particle positions by using a reflective wall policy, thereby preventing an effective search space from flying out. The method can be suitable for generation of coverage tables with different coverage degrees; the scale of combined test case sets is effectively reduced; and the combined test case generation efficiency is greatly improved.

Description

technical field [0001] The invention belongs to the field of software testing, and in particular relates to a method for generating combined test cases based on an AP-PSO algorithm. Background technique [0002] Software testing is a crucial link in software engineering to ensure software quality. An ideal software testing method needs to have the characteristics of high error detection capability, low cost consumption and wide applicability. As a protocol-based software testing method, combinatorial testing aims to select a small number of effective test cases from the huge combinatorial space faced by the software to be tested, and generate a set of test cases with high coverage and strong error-discovering ability. [0003] As a relatively new heuristic search algorithm, the particle swarm optimization algorithm has the characteristics of easy understanding, easy implementation, and strong global search ability, and is currently also used in this field. At present, in th...

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
CPCG06F11/368
Inventor 包晓安杨亚娟张娜张唯滕赛娜
Owner HANGZHOU HUICUI INTELLIGENT TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More