Assert on Validation feedback
Definition
An Assert on Validation feedback is used to evaluate feedback messages shown as a result of "Validation feedback" actions in Microflows that are executed during a Test Run. It is possible to evaluate the message text and/or the member that the message is shown on.
Asserts on Validation feedback are defined on the Test Case level. Test Cases can have zero, one or multiple Asserts on validation feedback.
Asserts on Validation feedback can be added to Data Variation.
Properties
Name | Description |
---|---|
Assert type | The type of Validation feedback assert to be created. - Count: evaluates only the number of validation feedback messages upon execution. - Attribute-member: evaluates the message text of validation feedback shown on a certain attribute member. - Association-member: evaluates the message text of validation feedback shown on a certain association. - All-members: evaluates the message text of validation feedback regardless of the member or association. |
Entity | The entity that the Validation feedback is shown on. Only for Attribute-member and Association-member asserts. |
Attribute | The attribute member that the Validation feedback is shown on. Only for Attribute-member asserts. |
Association | The association that the Validation feedback is shown on. Only for Assocation-member asserts. |
Quantifier | Determines whether to match the given the message text for all Validation feedback messages, or that there should be at least one Validation feedback message that matches. |
Comparison operator | The type of evaluation to perform. - The 'Equals' / 'Not equals' type means that the message text or message count should exactly match (or not match, respectively) a single given value. - The 'Contains' / 'Not contains' type means that the message text should contain (or not contain, respectively) the given value. - The 'Greater than' / 'Greater than or equal to' means that the message count should be higher than (or include, respectively) the given value. - The 'Less than' / 'Less than or equal to' means that the message count should be lower than (or include, respectively) the given value. |
Comparison string | The (part of the) validation feedback message text to evaluate. Only for Attribute-member, All-members and Association-member asserts. |
Comparison number | The number of validation feedback messages to evaluate. Only for Count asserts. |
Actions on an Assert on Validation feedback
Add Count Assert
- Click on the button on the Test Case.
- Click " Edit asserts" to open the page where asserts can be configured.
- Click on " Assert" to add the Assert.
- Choose "Count assert" for the Assert type.
- Select the Comparison operator and fill in the Comparison number.
- Save.
Add Attribute-member Assert
- Click on the button on the Test Case.
- Click " Edit asserts" to open the page where asserts can be configured.
- Click on " Assert" to add the Assert.
- Choose "Attribute-member" for the Assert type.
- Choose the Entity that the feedback message should occur on.
- Choose the Attribute that the feedback message should occur on.
- Select the Quantifier, Comparison operator and fill in the Comparison string.
- Save.
Add Association-member Assert
- Click on the button on the Test Case.
- Click " Edit asserts" to open the page where asserts can be configured.
- Click on " Assert" to add the Assert.
- Choose "Association-member" for the Assert type.
- Choose the Entity that the feedback message should occur on.
- Choose the Association that the feedback message should occur on.
- Select the Quantifier, Comparison operator and fill in the Comparison string.
- Save.
Add All-members Assert
- Click on the button on the Test Case.
- Click " Edit asserts" to open the page where asserts can be configured.
- Click on " Assert" to add the Assert.
- Choose "All-members" for the Assert type.
- Select the Quantifier, Comparison operator and fill in the Comparison string.
- Save.
Delete an Assert on Validation feedback
- Click on the button on the Test Case.
- Click " Edit asserts" to open the page where asserts can be configured.
- Click on to delete the assert.
Related topics
Feedback?
Missing anything? Let us know!
Last updated: 12 April 2023