Fitneese : scenario library : Function Libraries

I wanted to create few scenarios  (Function Libraries ) in Fitneese and reuse those scenarios in the script by calling them.

Can you please provide any solution ?

  Discussion posts and replies are publicly visible

Parents
  • Scenarios can be created inside of your scenario library and then referenced throughout the test pages within that test suite.  To create a scenario, use the below syntax:

    | scenario | Scenario Name | with variable1 | variable1 | with variable2 | variable2 |

    After specifying the scenario name, you'll alternate between variable descriptions and then the actual variables in each cell.  You can access the variables using the @ symbol throughout the scenario (ex. @variable1).  After declaring the scenario, you can then enter the code to be executed when the scenario is called.

    Full example:

    | scenario | Enter User Details | with first name | firstName | with last name | lastName | with email | email |
    | populate field | First Name | with | @firstName |
    | populate field | Last Name | with | @lastName |
    | populate field | Email Address | with | @email |

     

    You can then call scenarios within your test pages by specifying the scenario name and then filling in the variable cells with the desired values:

    | Enter User Details | with first name | Steve | with last name | Jobs| with email | sjobs@apple.com |

Reply
  • Scenarios can be created inside of your scenario library and then referenced throughout the test pages within that test suite.  To create a scenario, use the below syntax:

    | scenario | Scenario Name | with variable1 | variable1 | with variable2 | variable2 |

    After specifying the scenario name, you'll alternate between variable descriptions and then the actual variables in each cell.  You can access the variables using the @ symbol throughout the scenario (ex. @variable1).  After declaring the scenario, you can then enter the code to be executed when the scenario is called.

    Full example:

    | scenario | Enter User Details | with first name | firstName | with last name | lastName | with email | email |
    | populate field | First Name | with | @firstName |
    | populate field | Last Name | with | @lastName |
    | populate field | Email Address | with | @email |

     

    You can then call scenarios within your test pages by specifying the scenario name and then filling in the variable cells with the desired values:

    | Enter User Details | with first name | Steve | with last name | Jobs| with email | sjobs@apple.com |

Children