The "greater than or equals" and "less than or equals" 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 as well as whether it equals it. Thankfully however, the "greater than or equals" and "less than or equals" assertions make that easy.

Using the "greater than or equals" 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 or equals," examining the result. Note: you may need to scroll within the dropdown menu.
  5. Add to or edit the text box, if applicable.
  6. Click "Save".
  7. Continue with your training session, if applicable.

📘

Important Comparison Value Box Information

Lexicographic comparison is used for non-numeric values.

Using the "less than or equals" Assertion

  1. Click the dropdown menu and change the type to "less than or equals," 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?