Including assertions in your journey

When you define a journey using the mabl trainer, you can include assertions that describe logic that mabl should use to confirm that your application is in a correct state at a specified step in a test run.

Important Assertions Information

Currently, you can only add assertions while you are defining a new journey using the mabl trainer. See "Defining a journey with the mabl trainer" for general information on this.

Currently, mabl supports the following assertion types:

  • Selected element is present
  • The inner text of the selected element:
    • Equals
    • Does not equal
    • Contains
    • Does not contain
    • Starts with
    • Does not start with
    • Greater than
    • Less than
    • Greater than or equals
    • Less than or equals

Step-by-step instructions for adding an assertion

  1. In the mabl trainer window, click "Add assertion."
Where to find the "Add assertion" link within the mabl Trainer.

Where to find the "Add assertion" link within the mabl Trainer.

  1. Click on the element that you want to include in your assertion.
  1. Choose your assertion type from the drop-down.
  2. Complete the additional assertion fields, if applicable.
  3. Click "Apply Assertion."
  4. Continue with your training session, if applicable.
A sample of how to alter and apply an assertion.

A sample of how to alter and apply an assertion.

Important information about specific assertion types.

For more information on specific assertions, please see the "Working with Assertions" section of the documentation for specific examples.

Including assertions in your journey