Optimizing Cost Function in Imperialist Competitive Algorithm for Path Coverage Problem in Software Testing

Authors

  • M. A. Saadtjoo Department of Computer Engineering, University of Kashan, Kashan, Iran
  • S. M. Babamir Department of Computer Engineering, University of Kashan, Kashan, Iran
Abstract:

Search-based optimization methods have been used for software engineering activities such as software testing. In the field of software testing, search-based test data generation refers to application of meta-heuristic optimization methods to generate test data that cover the code space of a program. Automatic test data generation that can cover all the paths of software is known as a major challenge. The paper establishes a new cost function for automatic test data generation, which can traverse the non-iterative paths of software control flow graphs. This function is later compared with similar cost functions proposed in other articles. The results indicate the superior performance of the proposed function. Still another innovation in this paper is the application of the Imperialist Competitive Algorithm in automatic test data generation along with the proposed cost function. Automatic test data generation is implemented through the Imperialist Competitive Algorithm as well as the Genetic and Particle Swarm Optimization Algorithms for three software programs with different search space sizes. The algorithms are compared with each other in terms of convergence speed, computational time, and local search. Test data generated by the proposed method has achieved better results than other algorithms in finding the number of non-iterative paths, the convergence speed and computational time with growing the searching space of the software's control flow graph.

Upgrade to premium to download articles

Sign up to access the full text

Already have an account?login

similar resources

An imperialist competitive algorithm for solving the production scheduling problem in open pit mine

Production scheduling (planning) of an open-pit mine is the procedure during which the rock blocks are assigned to different production periods in a way that the highest net present value of the project achieved subject to operational constraints. The paper introduces a new and computationally less expensive meta-heuristic technique known as imperialist competitive algorithm (ICA) for long-term...

full text

Optimizing locomotive body structures using imperialist competitive algorithm

In today's design, system complexity and increasing demand for safer, more efficient and less costly systems have created new challenges in science and engineering. Locomotives are products which are designed according to market order and technical needs of customers. Accordingly, targets of companies, especially designers and manufacturers of locomotives, have always been on the path of progre...

full text

A Multi-objective Imperialist Competitive Algorithm for a Capacitated Single-allocation Hub Location Problem

In this paper, we present a novel multi-objective mathematical model for capacitated single allocation hub location problem. There are the vehicle capacity constraint and capacity restrictions amount of the incoming flow to the hub while the balancing requirements of incoming quantities of flow to the each hub is considered. Moreover, there is a set of available capacities for each potential hu...

full text

An Imperialist Competitive Algorithm and a Mixed Integer Programming Formulation for the Capacitated Vehicle Routing Problem

The Vehicle Routing Problem (VRP), a famous problem of operation research, holds a central place in combinatorial optimization problems. In this problem, a fleet vehicles with Q capacity start to move from depot and return after servicing to customers in which visit only ones each customer and load more than its capacity not at all. The objective is to minimize the number of used vehicles and t...

full text

optimizing locomotive body structures using imperialist competitive algorithm

in today's design, system complexity and increasing demand for safer, more efficient and less costly systems have created new challenges in science and engineering. locomotives are products which are designed according to market order and technical needs of customers. accordingly, targets of companies, especially designers and manufacturers of locomotives, have always been on the path of progre...

full text

Imperialist Competitive Algorithm to the Emergency Medical Services Location Problem

Minimization of arrival time at scenes plays an essential role to help injured people in emergency events. This can be undertaken through mathematical programming models, called emergency medical services location problem, and solved by conventional exact algorithms or by recent meta-heuristic methods as well. Meta-heuristic algorithms have recently been realized to be more efficient in the sen...

full text

My Resources

Save resource for easier access later

Save to my library Already added to my library

{@ msg_add @}


Journal title

volume 6  issue 2

pages  375- 385

publication date 2018-07-01

By following a journal you will be notified via email when a new issue of this journal is published.

Hosted on Doprax cloud platform doprax.com

copyright © 2015-2023