Previous Topic: Ensure Result Set SizeNext Topic: XML Assertions


Ensure Result Set Contains Expression

The Ensure Result Set Contains Expression assertion verifies that a supplied expression matches at least one value in a specific column in a result set.

Complete the following fields:

Name

Defines the name of the assertion.

If

Specifies the behavior of the assertion from the drop-down list.

then

Specifies the step to which to redirect if the assertion fires.

Log

Identifies event text to print if the assertion fires.

Column

Defines a column that contains the text to verify. This value can be a column name or an index.

Regular Expression

The regular expression to match in the column.

Click Run Assertion to execute the assertion.

For example, to verify that at least one row that a query returned has a login value that starts with "wp", set the Column field to "login" and the Regular Expression field to "wp.*".