Reputation: 713
The Repeat Keyword Robot Framework command allows you to keep running a keyword for a certain number of cycles or a certain amount of time. I want to have one type of Teardown for all intermediate Repeats but a final other teardown at the end of the test. Is there an internal variable or something else under the hood that I can check to see if the last Repeat is being run?
Upvotes: 1
Views: 75
Reputation: 1062
I highly doubt it.
But there's a workaround. Just make a regular for loop with index and use Run Keyword
there. Then do then conditional calls based on the index.
Upvotes: 3