Inserting One Visual Test Within Another

In this section of the lesson, you will learn how to insert the second visual test, which adds a user account, in the original visual test before the steps that perform the request for an auto quote.

Executing visual tests within visual tests is a powerful method for efficiently testing the same basic steps in multiple visual tests.

Tip: When inserting a visual test within another visual test, it is important to ensure that any test applications are in the correct initial playback state.
  1. From the Recent list in the Start Screen, click AutoQuote to open it. AutoQuote is the first visual test that you created in this tutorial.
  2. In the Test Steps pane, select the <<Start>> step.
  3. Click Actions > Insert > Visual test. The Browse for Visual test dialog box opens.
  4. From the Select an asset list, select the visual test named AddAccount and then click OK.
    Tip: If there are many visual tests in the Select an asset list, type AddAccount into the Name Filter text field and then click on the visual test.

    Silk Test Workbench inserts a step before the selected step. The inserted step calls the selected visual test. The step text is as follows:

    Playback visual test 'AddAccount'
    Tip: During playback, when the preceding step executes, the original visual test plays back to completion before the inserted visual test plays back.

In the next lesson, you will learn how to playback this modular visual test, and respond to a playback error.