In robotframework im using repeat to call a keyword x amount of times. What I want is to get the iteration number in the keyword that is called.
What I tried:
${iteration} = 0
*** Test Cases ***
Start Test
repeat keyword ${duration} Run test iteration ${iteration}
*** Keywords ***
Run test iteration ${loop}
${iteration}= Set Variable evaluate ${iteration}+1
What I expected was that In the report the called keywords would look like:
Run test iteration 0
Run test iteration 1
Run test iteration 2
But I see
Run test iteration 0
Run test iteration 0
Run test iteration 0
Is it possible to get the result I predicted?
Using robotframework 3.1.1