Creating Repetition Logic Based on the Contents of a List or Combo Box

Identify a list or combo box control to use in your repetition logic. For either type of control, you can create repetition logic that uses the value of each item in a list or combo box. For example, you can create a repeat loop that iterates through the values in a list or combo box and inserts the value of each item into a text box in your test application. In this way, you can quickly test the entire contents of a list or combo box.

  1. Record a visual test.
  2. Use the Test Logic Wizard to create repetition logic based on a list or combo box control.
  3. Modify the test step that you want to repeat using the contents of a list or combo box by replacing the literal value with the reserved variable st_RepeatListValue. The reserved variable, st_RepeatListValue, is used to store the value of each item in the list or combo box for each iteration of the repeat loop. st_RepeatListValue returns a compound value that contains both the index and text of the item.
  4. To modify the test step, select the test step that you want to repeat.
  5. In the Properties window, select the automation property of the test step you want to modify.
  6. Click Select and then select Variable. The Select a Variable dialog box opens.
  7. Select Reserved from the Variable type list, and then select st_RepeatListValue.
  8. Click OK. Silk Test Workbench updates the test step text and property value with the selected variable name.
  9. Run the visual test.