Home › Forums › Software Testing Discussions › How to generate test cases using paths using genetic algorithm
- This topic has 6 replies, 4 voices, and was last updated 9 months, 3 weeks ago by ashwini.
-
AuthorPosts
-
November 21, 2018 at 2:54 pm #21084
Hello my name is Khairani Malau from Del Institute of Technology.
I want to ask, what are the tools that can be used for the implementation of generating test cases using genetic algorithm?Is there a source that can be used for learning related to generating test cases using genetic algorithm?
I hope someone can help, thankyou.
November 22, 2018 at 12:17 pm #21096An example could be pairwise testing a a combinatorial method of software testing that, for each pair of input parameters to a system (typically, a software algorithm), tests all possible discrete combinations of those parameters.
https://en.wikipedia.org/wiki/All-pairs_testing
November 22, 2018 at 2:11 pm #21098Thankyou Mr Jesper,
before that, i have been read paper about path testing for test case generation using genetic algorithm. From that paper, implementation using matlab, but i confused to implement that algorithm for non-numeric input.
I need resource to help me for implement that algorithm.Thankyou,
November 22, 2018 at 3:33 pm #21101Search for “test case generation using genetic algorithm” and you will find scholars work on this research. Perhaps those papers can help you with further examples and specific answers.
here is one PDF on the topic: Automatic Test Case Generation Using Genetic Algorithm around specifically Boundary Values: “Boundary value analysis works well in programs where the program is function of several independent variables that represent bounded physical quantities”. These are inherently mathematical and numbers based. Like the length of an input/array.
November 23, 2018 at 3:16 am #21103Thankyou Mr Jesper,
Before that, i’ve been read that papers.
And i want to implement that using MATLAB tools, i confused about step to implementing in MATLAB.
I’ve looking from youtobe about tutorial, and i can’t found a complete tutorial about that.
I want to implement that algorithm using non-numeric input such as Shedule, Space and other. I need the toturial to implement that algorithm. Because i should get the information about generate test case from the path.Thankyou ,
April 15, 2023 at 11:31 am #30141As a digital marketer, I found the article – Best Rank Tracker Tools to be incredibly helpful. The article provided a comprehensive overview of various rank tracker tools available in the market, highlighting their features, pros, and cons. It helped me make an informed decision on which rank tracker tool would best suit my needs. The article was well-researched and presented in a clear and concise manner, making it easy for me to understand and compare different options
Thanks a lot for help!
February 2, 2024 at 1:58 pm #31306To generate test cases using paths with a genetic algorithm:
- Represent test cases as sequences of actions or inputs.
- Create an initial population of test cases.
- Define a fitness function to evaluate path coverage.
- Implement genetic operators (crossover, mutation, selection).
- Evaluate and evolve the population based on fitness.
- Repeat until termination criteria are met.
- Use the best-performing test cases as generated test cases for system testing.
-
AuthorPosts
- You must be logged in to reply to this topic.