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
Procedure
- Record a web application with alert, confirm, or prompt dialog box.
- 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.
- Select the required original test step.
-
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.
- Save the test.