The Check HTTP Response Code assertion lets you verify that the HTTP response code matches a specified regular expression.
Complete the following fields:
Defines the name of the assertion.
Specifies the behavior of the assertion from the drop-down list.
Specifies the step to which to redirect if the assertion fires.
Identifies event text to print if the assertion fires.
The regular expression that must appear in the response code. For example, to verify that the HTTP response code is in the 400-499 range, set the RegExpression to 4\d\d.
Click Run Assertion to execute the assertion.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|