How to generate test cases using paths using genetic algorithm

Home Forums Software Testing Discussions How to generate test cases using paths using genetic algorithm

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #21084
    Khairani
    Participant
    @khairani

    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.

    #21096
    Jesper
    Participant
    @jesper-lindholt-ottosen

    An 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

     

     

    #21098
    Khairani
    Participant
    @khairani

    Thankyou 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,

    #21101
    Jesper
    Participant
    @jesper-lindholt-ottosen

    Search 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.

     

     

    #21103
    Khairani
    Participant
    @khairani

    Thankyou 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 ,

    #30141
    Louis
    Participant
    @louissawyer

    As 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!

    #31306
    ashwini
    Participant
    @ashwinil

    To generate test cases using paths with a genetic algorithm:

    1. Represent test cases as sequences of actions or inputs.
    2. Create an initial population of test cases.
    3. Define a fitness function to evaluate path coverage.
    4. Implement genetic operators (crossover, mutation, selection).
    5. Evaluate and evolve the population based on fitness.
    6. Repeat until termination criteria are met.
    7. Use the best-performing test cases as generated test cases for system testing.
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.