Assertions
API Hub for Test can extract text from the response body.
To assert against dynamic values, click on the response fragment and highlight the text you wish to assert and choose the
context menu item.The following types of assertions are supported:
match exactly: Does an exact string match against the specified value, which can reference an existing variable.
match using math formula: Asserts that the value is a number matching the formula defined in the Expected Value input. Formula assertions support simple arithmetic, and can utilize both static and dynamic values.
match number within range: Asserts that the value is a number within the range of values specified in the From and To fields.
match a value in a list: Asserts that the value matches one of the discrete list of items defined in the list.
is not empty: Evaluates to true so long as the value is not empty.
To assert that this dynamic portion of text matches an existing variable, choose the
context menu option and select the variable you wish to match against.