You are here: Data creation and management > Data page testing > Assertions > Configuring ordered list assertions

Configuring ordered list assertions

You can configure ordered list assertions for page lists on the data page to apply assertions to all the results that are returned by a data page. Configure an ordered list assertion so that you do not have to manually input assertions for each result in the list.

  1. Optional: If the data page unit test case is not already open, open the data page unit test case.
  2. Click the Definition tab.
  1. Complete one of the following steps:
  2. From the Assertion type list, select List.
  3. From the Appearances list, select In ALL instances.
  4. In the of object field, enter the path of the object with which the results are compared or counted against when the assertion runs. For example, when the assertion runs, you can compare its results with .pxResults, which contains the results obtained by running the data page.
  5. Optional: In the Filter field, either enter a property and value on which to filter results or click the Expression Builder icon to provide an expression that is used to filter results. The list assertion applies only to the page list entries that are specified for this filter value.
  6. Add properties to ordered list assertions.
  7. Click Save.

When you run the data page unit test case, the system searches for the specified properties in the page list. The assertion passes if the all the properties in the set match the expected values in every entry in the page list.

If any of the properties do not match any entry in the page list, the assertion does not pass.