Previous Topic: Ensure HTTP Header Contains ExpressionNext Topic: Simple Web Assertion


Check HTTP Response Code

The Check HTTP Response Code assertion lets you verify that the HTTP response code matches a specified regular expression.

Complete the following fields:

Name

Defines the name of the assertion.

If

Specifies the behavior of the assertion from the drop-down list.

then

Specifies the step to which to redirect if the assertion fires.

Log

Identifies event text to print if the assertion fires.

RegExpression

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.