SlideShare a Scribd company logo
SOFTWARE TESTING
USING
GENETIC ALGORITHMS
Authored By:
Akshat Sharma, Rishon Patani and Ashish Aggarwal
Reviewed by: Nurhussen Menza
Publication details
 School of Computer Science and Engineering,
VIT University, Vellore, Tamil Nadu,
India
 International Journal of Computer Science & Engineering
Survey (IJCSES) Vol.7, No.2, April 2016
SOFTWARE TESTING USING GENETIC ALGORITHMS 2
Introduction
 This paper presents a set of methods that uses a
genetic algorithm for automatic test-data generation in
software testing.
 In addition to this introduction and a conclusion at the
end It is organized in to four major sections
 The problem
 Methods used
 Results claimed
 Critics
SOFTWARE TESTING USING GENETIC ALGORITHMS 3
The research problem
 The paper presents Software testing is a process in which
the runtime quality and quantity of a software is tested to
maximum limits.
 The basic test of software is done in the environment for
which it is has been designed.
 The authors claim that Genetic algorithms are one of the
best ways to solve a set of problems for which little
information is given. And it is very general algorithm and so
they will work well in any search space.
SOFTWARE TESTING USING GENETIC ALGORITHMS 4
Cont…
 According to the authors the Evolutionary Testing uses
a kind of meta-heuristic search technique, the
Genetic Algorithm (GA), to convert the task of test
case generation into an optimal problem. It’s run
through is checked for correct and efficient outputs.
 The authors stated that different types of genetic
algorithms is done on this paper.
SOFTWARE TESTING USING GENETIC ALGORITHMS 5
Cont…
 Different algorithms have been run on different
tools and analyzed for their performance. All these
algorithms follow the same basis of evolutionary
testing but have different cost functions.
 On running these cost functions on different tools,
observations on how these functions respond are
made.
SOFTWARE TESTING USING GENETIC ALGORITHMS 6
Approaches and Methods employed
 According to the authors Genetic algorithms use the
following three operations on its population.
 Selection
 Crossover
 Mutation
Let us see them one by one;
SOFTWARE TESTING USING GENETIC ALGORITHMS 7
Cont…
 Selection:- A selection process is applied to determine a
way in which individuals are chosen for mating from a
population based on their fitness. Fitness is defined as a
characteristic and capability of an individual to survive and
reproduce in an environment.
SOFTWARE TESTING USING GENETIC ALGORITHMS 8
Conts…
 Crossover:- Crossover involves swapping of sequence of
bits or genes in the string between two individuals. This
process of swapping is carried out and repeated each time
with different parent individuals until the next generation
has optimum individuals.
SOFTWARE TESTING USING GENETIC ALGORITHMS 9
Conts…
 Mutation: After the crossover process, the mutate
operation is applied to a randomly select subset of the
population. Mutation leads to an alteration of chromosomes
in small new ways to introduce good traits. The main aim
of mutation is to bring diversity in population.
SOFTWARE TESTING USING GENETIC ALGORITHMS 10
Results and discussions
 According to the authors Genetic algorithms are most
efficient and effective in a search space for which
little is known.
 Then again, genetic algorithms can be used to
produce solutions to problems working only in the
test environment and deviates once you try to use
them in the real world.
 So when put simply, genetic algorithm can be used to
create solutions for problems that are not very easy
to calculate and analyze.
SOFTWARE TESTING USING GENETIC ALGORITHMS 11
Cont…
 And the authors listed some implementation of
Genetic Algorithm(GA) in software testing like:-
 Test case generation using GA in Ruby Trust-based system
 Genetic Algorithm Implementation in C++
 Genetic Algorithm Implementation using Matlab
SOFTWARE TESTING USING GENETIC ALGORITHMS 12
Critics
 Positive aspects
 The paper is clear, easy to read and understand
 The logicality of the findings given the problem
statement is acceptable
 The finding and well evaluated and explained deeply
 The implementation section have details regarding on
implementation of Genetic algorithm in different
software testing mechanism like MATLAB, Ruby & C++.
 The paper was figurative and explanatory with examples.
SOFTWARE TESTING USING GENETIC ALGORITHMS 13
Cont…
 Negative aspects
 Review of related works is also not mentioned in the
paper.
 The general approach was used instead of
comparative approach with other algorithms.
SOFTWARE TESTING USING GENETIC ALGORITHMS 14
Conclusion
 The work is motivational
 With all its limitations it can be said that the authors
really achieve their objectives
 Good for further research on this topic as the direction
given by the authors
SOFTWARE TESTING USING GENETIC ALGORITHMS 15
Thank You

More Related Content

PPT
Chap1 slides
PDF
Software Testing Using Genetic Algorithms
PDF
Ijcatr04051005
PDF
Software testing strategy
PDF
Dc35579583
PDF
Dynamic Radius Species Conserving Genetic Algorithm for Test Generation for S...
PDF
Coevolution of Second-order-mutant
PDF
M017127578
Chap1 slides
Software Testing Using Genetic Algorithms
Ijcatr04051005
Software testing strategy
Dc35579583
Dynamic Radius Species Conserving Genetic Algorithm for Test Generation for S...
Coevolution of Second-order-mutant
M017127578

Similar to Software testing using genetic algorithms (20)

PDF
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
PDF
S.N.Sivanandam & S.N. Deepa - Introduction to Genetic Algorithms 2008 ISBN 35...
PDF
Analysis of selection schemes for solving job shop scheduling problem using g...
PDF
Analysis of selection schemes for solving job shop
PDF
M018147883
PDF
Application of Genetic Algorithm in Software Engineering: A Review
PDF
A Defect Prediction Model for Software Product based on ANFIS
PDF
A Defect Prediction Model for Software Product based on ANFIS
PPTX
Specification based or black box techniques
PPTX
Specification based or black box techniques
PPTX
Specification based or black box techniques
PPTX
Specification based or black box techniques (andika m)
PDF
Bd36334337
PPTX
Specification based or black box techniques
PPTX
Specification based or black box techniques
PDF
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
PDF
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
PPTX
Specification Based or Black Box Techniques
PPTX
Specification based or black box techniques 3
PPTX
Specification based or black box techniques
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
S.N.Sivanandam & S.N. Deepa - Introduction to Genetic Algorithms 2008 ISBN 35...
Analysis of selection schemes for solving job shop scheduling problem using g...
Analysis of selection schemes for solving job shop
M018147883
Application of Genetic Algorithm in Software Engineering: A Review
A Defect Prediction Model for Software Product based on ANFIS
A Defect Prediction Model for Software Product based on ANFIS
Specification based or black box techniques
Specification based or black box techniques
Specification based or black box techniques
Specification based or black box techniques (andika m)
Bd36334337
Specification based or black box techniques
Specification based or black box techniques
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
Specification Based or Black Box Techniques
Specification based or black box techniques 3
Specification based or black box techniques
Ad

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
A Presentation on Artificial Intelligence
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Approach and Philosophy of On baking technology
PPTX
Cloud computing and distributed systems.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
KodekX | Application Modernization Development
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
Machine learning based COVID-19 study performance prediction
A Presentation on Artificial Intelligence
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
Approach and Philosophy of On baking technology
Cloud computing and distributed systems.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
KodekX | Application Modernization Development
Digital-Transformation-Roadmap-for-Companies.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation_ Review paper, used for researhc scholars
Ad

Software testing using genetic algorithms

  • 1. SOFTWARE TESTING USING GENETIC ALGORITHMS Authored By: Akshat Sharma, Rishon Patani and Ashish Aggarwal Reviewed by: Nurhussen Menza
  • 2. Publication details  School of Computer Science and Engineering, VIT University, Vellore, Tamil Nadu, India  International Journal of Computer Science & Engineering Survey (IJCSES) Vol.7, No.2, April 2016 SOFTWARE TESTING USING GENETIC ALGORITHMS 2
  • 3. Introduction  This paper presents a set of methods that uses a genetic algorithm for automatic test-data generation in software testing.  In addition to this introduction and a conclusion at the end It is organized in to four major sections  The problem  Methods used  Results claimed  Critics SOFTWARE TESTING USING GENETIC ALGORITHMS 3
  • 4. The research problem  The paper presents Software testing is a process in which the runtime quality and quantity of a software is tested to maximum limits.  The basic test of software is done in the environment for which it is has been designed.  The authors claim that Genetic algorithms are one of the best ways to solve a set of problems for which little information is given. And it is very general algorithm and so they will work well in any search space. SOFTWARE TESTING USING GENETIC ALGORITHMS 4
  • 5. Cont…  According to the authors the Evolutionary Testing uses a kind of meta-heuristic search technique, the Genetic Algorithm (GA), to convert the task of test case generation into an optimal problem. It’s run through is checked for correct and efficient outputs.  The authors stated that different types of genetic algorithms is done on this paper. SOFTWARE TESTING USING GENETIC ALGORITHMS 5
  • 6. Cont…  Different algorithms have been run on different tools and analyzed for their performance. All these algorithms follow the same basis of evolutionary testing but have different cost functions.  On running these cost functions on different tools, observations on how these functions respond are made. SOFTWARE TESTING USING GENETIC ALGORITHMS 6
  • 7. Approaches and Methods employed  According to the authors Genetic algorithms use the following three operations on its population.  Selection  Crossover  Mutation Let us see them one by one; SOFTWARE TESTING USING GENETIC ALGORITHMS 7
  • 8. Cont…  Selection:- A selection process is applied to determine a way in which individuals are chosen for mating from a population based on their fitness. Fitness is defined as a characteristic and capability of an individual to survive and reproduce in an environment. SOFTWARE TESTING USING GENETIC ALGORITHMS 8
  • 9. Conts…  Crossover:- Crossover involves swapping of sequence of bits or genes in the string between two individuals. This process of swapping is carried out and repeated each time with different parent individuals until the next generation has optimum individuals. SOFTWARE TESTING USING GENETIC ALGORITHMS 9
  • 10. Conts…  Mutation: After the crossover process, the mutate operation is applied to a randomly select subset of the population. Mutation leads to an alteration of chromosomes in small new ways to introduce good traits. The main aim of mutation is to bring diversity in population. SOFTWARE TESTING USING GENETIC ALGORITHMS 10
  • 11. Results and discussions  According to the authors Genetic algorithms are most efficient and effective in a search space for which little is known.  Then again, genetic algorithms can be used to produce solutions to problems working only in the test environment and deviates once you try to use them in the real world.  So when put simply, genetic algorithm can be used to create solutions for problems that are not very easy to calculate and analyze. SOFTWARE TESTING USING GENETIC ALGORITHMS 11
  • 12. Cont…  And the authors listed some implementation of Genetic Algorithm(GA) in software testing like:-  Test case generation using GA in Ruby Trust-based system  Genetic Algorithm Implementation in C++  Genetic Algorithm Implementation using Matlab SOFTWARE TESTING USING GENETIC ALGORITHMS 12
  • 13. Critics  Positive aspects  The paper is clear, easy to read and understand  The logicality of the findings given the problem statement is acceptable  The finding and well evaluated and explained deeply  The implementation section have details regarding on implementation of Genetic algorithm in different software testing mechanism like MATLAB, Ruby & C++.  The paper was figurative and explanatory with examples. SOFTWARE TESTING USING GENETIC ALGORITHMS 13
  • 14. Cont…  Negative aspects  Review of related works is also not mentioned in the paper.  The general approach was used instead of comparative approach with other algorithms. SOFTWARE TESTING USING GENETIC ALGORITHMS 14
  • 15. Conclusion  The work is motivational  With all its limitations it can be said that the authors really achieve their objectives  Good for further research on this topic as the direction given by the authors SOFTWARE TESTING USING GENETIC ALGORITHMS 15