Skip to main content
Version: 3.1

Assert on Object Count

Definition​

An Assert on Object count is defined on a Teststep and exists of making a comparison between the expected and actual list size of output objects of a Teststep upon test execution.

Properties​

NameDescription
Compare typeThe type of comparison to be made: either 'Equals', 'Greater-than' / 'Greater-than or equal to' or 'Less-than' / 'Less-than or equal to'.
Expected object countThe expected value of the attribute when executing the test.

Business rules​

Asserts on object count can be defined either on Retrieve Object Teststeps or on Microflow Teststeps that return a list of objects.

Actions​

Add an Assert on Object Count​

  • Open the Test Configuration and Test Suite that you want to design.
  • Select a Teststep that returns an Object or a List of Objects.
  • Select Tab Assert(s).
  • Click Manage asserts.
  • Select the Object count tab.
  • Click on the " Assert" button to add the Assert.

Delete an Assert on Object Count​

  • Open the Test Configuration and Test Suite that you want to design.
  • Select a MTeststep that has an Assert, marked with a colored Assert tag.
  • Select Tab Assert(s).
  • Click Manage asserts.
  • Select the Object count tab.
  • Click on the button.

Feedback?​

Missing anything? Let us know!

Last updated: 19 january 2023