Network Body Analyzer allows you to monitor the response body content received from target web page elements. Response body monitoring allows you to verify data that isn’t displayed in a browser window but represents elements, such as web application logic, that can have a significant impact on the service background. If necessary, you can filter responses to monitor only responses from the URLs which contain a specific mask.
For example, using Body Analyzer, you can monitor the content of AJAX call responses.
To enable Network Body Analyzer:
- Right-click the line (step), after which the analyzer should start checks.
- Select Validate > Network Body > Start.
- To change the Body Analyzer criteria, left-click the StartNetworkBodyAnalyzer method label in the script body and customize the parameters on the editing pane, located to the left of the script code area. We recommend specifying a unique Name that will be presented in the device report.
If you want to apply the Body Analyzers to a specific part of the test script, stop the Bode Analyzer at the end of the related code chunk by selecting Validate > Network Body > Stop.
Watcher Type
Alerts are generated every time the number of URLs satisfying the analysis criteria is beyond the set range (see Min. Value and Max. Value counters).
URL Filter
The field contains a mask for URLs to analyze responses body from. The URL mask can be any string found in the URL utilizing “*” as a wildcard at the beginning or end of the string and “?” as a single-letter wildcard. Responses from all URLs are monitored by default (“*”).
Search Pattern
The field contains a mask for the response body content that needs to be monitored. You can specify the mask using a wildcard or regex (regular expression) pattern.
Mask Type
Two types of Search Pattern parsing are available:
- Wildcard
- Regex
Analyzing Type
There is Match or NoMatch analysis available.
By default, the Match type is used. If the response body content matches the search pattern, the URL will be counted as satisfying the analysis criteria.
Min. Value and Max. Value counters
The minimum and the maximum number of content entries satisfy the analysis criteria. The alert will be generated if the number of monitored entries matching the analysis criteria is less than Min. Value and more than Max. Value.