Using Assertions to Qualify Tests

  • Updated

Assertion tests allow the user to specify individual conditions about the test that must be satisfied in order for the Test Suite to be considered 'Passed'. If all assertions for a test are not met when the rules are applied, the test is marked as 'Failed'.

Assertions are created using the built-in business language editor however the templates presented are in the context of specify test result values.

To add one or more assertions

  1. Click on [add assertion]
  2. By default, Boolean type fields from the schema are displayed. Select any expressions that must be true after rules are applied in order for the Test Suite to pass.

  3. Use other expressions in the business language menu to create assertions.

A sample Test Suite with several assertions is as follows:

ri_399.png

  • Root context - Represents the entity to test from the rule application schema.
  • Execution type - Select apply rules to run all automatic rules for the rule application. Select entity rule set to specify an explicit rule set from that entity.
  • Entity rule set - Select the rule set to use when execution type is "entity rule set."
  • Input data state - Select a desired test state from the list. For detailed information on data states, see data state in Test Suites.
  • Assertions - Criteria that must be true in order for the test to be considered a "Pass."

Available assertions for Test Suites are as follows:

ri_400.png

NOTE: irVerify Test Suites have an option to halt testing on the first assertion to fail. This setting is turned off by default.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.