StressTester™ Learning Center - Validation Criteria Field
» Tutorials » Validating Application Responses » Validation Criteria Field
-
On receiving an application response, and having performed the default checks detailed in the previous section, StressTester™ will compare the application response to any value specified in the step’s Validation Criteria field.
-
If the response matches the field’s value, the step is marked as being a success and the User Journey continues.
-
If the response fails to match the field's value, the step is marked as a failure (an error is logged), the response is saved to an output file (so you can inspect the response that was actually returned), and the current cycle of the User Journey, for the particular simulated user, aborts and a new cycle is started.
-
The Validation Criteria field can contain literal values as well as Dynamic Data parameters. This allows you to check that the response is 100% correct when compared to the data that was sent to the application (e.g. check that a search results page includes the search term used to request it).
-
In addition, the Validation Criteria field can have logical operators so that more than one part of a response can be verified.
-
The logical AND operator is specified by entering the characters && between two validation criteria.
-
The logical OR operator is specified by entering the characters || between two validation criteria.
-
The logical NOT operator is specified by entering the character ! before a validation criterion.
-
When more than one operator is specified in the Validation Criteria field, the expression is equated from left to right.
-
For example, Validation Criteria of
Search Results && {{search term:c}} || No results found
would check that the step's response contained either the literal 'Search Results' AND the current value of the paramater search term, OR the literal 'No results found'.
« Validating Application Responses | Determining the Correct Validation Criteria »
Not seeing the StressTester™ information that you need - please email Support.