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:
Actions on Assert
Some actions are described in the pages shown above.
View Asserts on Attribute, Microflow output or Object count
- Open the Test Configuration and Test Suite that you want to design.
- Teststeps in a Test Case with one or more Assert, are marked with in the list of Teststeps.
- Click on the button on the Teststep and click " Edit asserts" to open the page where asserts can be configured.
View Asserts on Validation feedback
- Open the Test Configuration and Test Suite that you want to design.
- Test Cases in a Test Suite with one or more Assert, are marked with in the list of Test Cases.
- Click on the button on the Test Case and click " Edit asserts" to open the page where asserts can be configured.
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.
When an assert fails, remaining teststeps in the same Test Case will always be executed.
Only when "Stop the test run" is selected, any next Test Cases will not be executed.
Related topics
Feedback?
Missing anything? Let us know!
Last updated: 29 November 2023