Adding a Fail step

You can abort the test and mark the test as failed. For example, you can add the Fail element as a resulting step after checking a condition by using the If statement.

Before you begin

Procedure

  1. Click the Edit button displayed on the Test Editor page.

    The Edit button appears only when no active edit branch is selected.

    Alternatively, right-click the test in the test navigator panel and select Edit.

    The Edit branch dialog is displayed.
    If the Edit branch dialog is not displayed, then go to step 2.
  2. Drag and drop the Fail element under any test step as required from the Flow catalog in the Catalog tab.
  3. Click the Fail step.
    The step details pane is displayed.
  4. Enter a custom message in the Fail statement text box.
  5. Click the Save icon to save the modifications.

Results

You have added a Fail step from the Flow catalog to mark the test as failed.

What to do next

You can run the test and view the results. See Running a Web UI test.