The "greater than" and "less than" Assertion Types

📘

Important information about creating an assertion

Assertions can only be added when creating a test, see Defining a test with the mabl trainer and Including assertions in your test for more information.

It's important to be able to tell when a value has increased or decreased beyond a certain value since your initial test, thankfully the "greater than" and "less than" assertions make that simple.

Using the "greater than" Assertion

  1. Click the "Add Assertion" link in the mabl trainer.
  2. Click on the element that you want to include in your assertion.
  3. Examine the "Assertion type," which will be "equals" by default.
  4. Click the dropdown menu and change the type to "greater than," examining the result. Note: you may need to scroll within the dropdown menu.
  5. Add to or edit the text box, if applicable.

📘

Important Comparison Value Box Information

Lexicographic comparison is used for non-numeric values.

  1. Click "Save".
  1. Continue with your training session, if applicable.

Using the "less than" Assertion

  1. Click the dropdown menu and change the type to "less than," examining the result. Note: you may need to scroll within the dropdown menu.
  2. Add to or edit the text box, if applicable.
  3. Click "Save".
  4. Continue with your training session, if applicable.

📘

Important Comparison Value Box Information

Lexicographic comparison is used for non-numeric values.


Did this page help you?