loopsjubula

Iteration of Items in Jubula


I would like to repeat a Test Case in a loop and access an increasing counter in the repeated case.

Is there any way to do this in Jubula?

I created a Repeat loop in a Test Case to loop some Test Steps, there is a table whose row should be iterated by one each time.

It looks a bit like this


Solution

  • Use the variable. b

    Set the variable to the initial value before your repeat.
    ub_app_storeValue module - VARIABLE_NAME: Counter, Value: 1

    Then apply the value of variable $Counter in your ROW parameter.

    Add the increment command at the end of your repeat loop.
    ub_app_storeValue module - VARIABLE_NAME: Counter, Value:?add($Counter,1)

    Milos