Playing Back the Modular Script

In the previous lesson, you created a modular script by inserting AddAccount into the AutoQuote script.

In this section of the lesson, you will play back the modular script and encounter an error during playback.

  1. With the AutoQuote script open, click Playback on the toolbar. The Playback dialog box opens.
  2. In the Result description text box, type Responding to errors in a modular test.
  3. Click OK.
  4. If multiple browsers that are supported for replay are installed on the machine, the Select Browser dialog box opens. Select the browser and click Run.
    During playback, the test stops on the Create A New Account page and an error message opens. This error occurs because the database requires a unique email address for each customer record. Since you have already entered the email address during the recording of the AddAccount script, the email address already exists in the database and the test fails.