Assertion componenents
IBM API Connect Test APIs supports the following assertion types:
-
Assert Compares
Asserts that two elements are equivalent in some way. -
Assert Contains
Asserts that the value of the element identified by a given expression contains a specific substring. -
Assert Equals
Asserts that the value of the element identified by a given expression is equal to a specific value. -
Assert Exists
Asserts that the value of the element identified by a given expression exists. -
Assert Greater
Asserts that the value of the element identified by a given expression is greater than a specific value. -
Assert In
Asserts that the element identified by a given expression matches at least one item from a given list. -
Assert Is
Asserts that the value of the element identified by a given expression is of a specific type. -
Assert Less
Asserts that the value of the element identified by a given expression is less than a specific value. -
Assert Matches
Asserts that the value of the element identified by a given expression matches a knowledge base of some kind. -
Set Set a variable during test executions