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
You must have completed the following tasks:
- Ensured that you are assigned a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
- Read and understood the information in Edit branch overview and Create or select an Edit branch.
- Ensured that your project contains a Web UI test.
- Opened the test in Test Editor. See Editing a Web UI test.
Procedure
-
Click the
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 3. - Select an existing edit branch or create a new edit branch.
- Drag and drop the Fail element under any test step as required from the Flow catalog in the Catalog tab.
-
Click the Fail step.
The step details pane is displayed.
- Enter a custom message in the Fail statement text box.
-
Click the Save icon
to save the modifications.