Skip to main content
Version: 3.0

Assert

Definition

An Assert is a claim that a certain fact has to be true. Asserts are defined on the Teststep or Test Case level to check during test execution, if a certain output matches a given value.

Each Assert is evaluated after the execution of a Teststep or Test Case. The evaluation will fail when the evaluated value does not match to the defined expectation, but the execution will continue.

Read more about dealing with failed Test Runs in the How To section.

There are four types of Asserts, that are described in detail in separate pages:

  1. Assert on Attribute
  2. Assert Exception
  3. Assert on Microflow output
  4. Assert on Object Count
  5. Assert on Validation feedback

Actions on Assert

Some actions are described in the pages shown above.

View Asserts

Add an Assert

Read one of the mentioned detail pages above to learn how to add asserts.

Stop a Test Run when an assert fails

To indicate to have MTA stop the rest of the Test Run when an assert fails, select Stop the test run from the When the assert fails: dropdown on the respective Assert, whenever adding or editing the Assert.

Note: when an Assert fails, and Stop the Test Run is selected, this means that the next Test Case will not be executed. Remaining Teststeps will be executed, unless a Teststep Exception occurs and Teststep Exception handling is set to Stop.

Feedback?

Missing anything? Let us know!

Last updated: 29 November 2023