For Each test step

For Loops provide an easy way to traverse arrays. As part of the loop, a variable is created that is incremented after each loop is completed. This variable can be used as the index to an array as well.

Drag the For Each test step from the Test Palette into your test case.

Update the following parameters:

  • List: The item collection list, e.g. {1,2,3,4,5}
  • From Item: A particular value from the collection, e.g. 1
  • Value Name: The value for which need to iterate, e.g. value
  • Continue On Failure: Tick this checkbox if the for-each should continue after failure of any iteration within the loop. Then save the test case.
Documentation library

Other available resources

Looking for something different?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.