Defining the Steps to Repeat

When determining the steps in repetition logic to repeat, consider all the actions that require repetition, not just the steps where literal data is substituted.

For this lesson, there are several steps where literal data will be substituted, but the entire process of accessing the Create a New Account page of the InsuranceCo Web site must be repeated in order for each customer in the ActiveData file to be entered. Therefore, all steps in the actual test process must also be repeated, including steps that access the page and return the test to the Home page.

  1. In the Build the Repeat page, click the Do step link. The Select Steps dialog box opens.
  2. Select the step that begins interaction with the InsuranceCo Web site. This is the step immediately after the <<Start>> step. Because the visual test contains all the steps required in the process of adding a customer, all the steps must be repeated.
  3. Click OK. The Select Steps dialog box closes and the text for the selected step appears in the Do step link.
  4. In the Build the Repeat page, click the To step link. The Select Steps dialog box opens.
  5. Select the step that ends interaction with the InsuranceCo Web site. This is the step immediately before the <<End>> step.
  6. Click OK. The Select Steps dialog box closes and the text for the selected step appears in the To step link.
  7. Click Next. The Summary page of the Test Logic Designer opens. This page displays the test logic you have defined for the visual test.
  8. Click Finish to insert the test logic into the test steps of your visual test. In the visual test, Silk Test Workbench inserts a step after the <<Start>> step that starts the repetition logic. The step text should be as follows:Repeat using activedata 'customers'

    Silk Test Workbench also inserts a step before the <<End>> step that ends the repetition logic. The step text should be as follows:

    End Repeat

    All steps between the newly inserted repetition logic steps now appear as indented steps nested between the repetition logic steps. The final part of using ActiveData in the visual test is to map data in the ActiveData file to the literal data in the visual test.