StressTester™ Learning Center - Tutorials
» Tutorials » Validating Application Responses » Determining the Correct Validation Criteria
Determining the Correct Validation Criteria
-
How should you work out the criteria for your application responses, and also on which steps your should specify criteria?
-
In an ideal world, you would check the response for every step. However, with it not being uncommon for web pages to have 20+ requests within them, and a User Journey to contain over 10 web pages, this would require a lot of work.
-
The suggested 'rule' is that you specify criteria on the first step of every web page, and on any other responses that you know are critical to the flow of the application.
-
In order to work out the criteria to specify, look at the step’s response within StressTester™, and view the Source tab.
-
You are looking for data that appears only in the response i.e. it uniquely identifies the response. Remember the logical AND, OR and NOT operators; these means you can pick more than one part of the response and validate for more than one outcome (e.g. a search request returns a set of results or a message stating no matches were found).
-
In addition, if a previously specified parameter value appears in the response (in the same way that many result pages specify the search terms used), specify that relevant Dynamic Data item as well.
-
NOTE: If the Dynamic Data ‘refresh’ is set to ‘Every Time’, you will need to append “:current” (this can be shortened to ":c") onto the name to ensure StressTester™ uses the same value that was sent in the application request e.g. {{Search Term:current}}
Not seeing the StressTester™ information that you need - please email Support.