Creating verification points for alert, confirm, or prompt dialog box

You can create verification points in alert, confirm, or prompt dialog box of a recorded Web UI test script to validate text messages during playback.

About this task

You can enable the Validate Text check box in the test step of alert, confirm, or prompt dialog box of a recorded Web UI test script. After you enable this check box and play back the test script, the text message in the dialog box is validated before the user interface action. The results are captured in the test log, mobile, and Web UI reports.

Procedure

  1. Record a web application with alert, confirm, or prompt dialog box.
  2. In the generated test, under the Test Contents pane, create a duplicate of the required test step such as Accept the Alert, Accept the Confirm, or Enter text and Accept the Prompt.
  3. Select the required original test step.
  4. Under the User Action Details pane, enter the required text and select Validate Text. This changes the original test step to Verify that Alert text contains dialog box text, Verify that Confirm text contains dialog box text, or Verify that Prompt text contains dialog box text according to your test step selection. This ensures that the text message is validated before the user interface action is played back in the dialog box.

    Adding verification point to test step

  5. Save the test.
Feedback