Previous Topic: Check HTTP Response CodeNext Topic: Check Links on Web Responses


Simple Web Assertion

The Simple Web Assertion reads the return code from the web application.

If the application returns code 404 (page not found), 500 (server error) or any other error then this assertion returns true.

The multi-tier-combo test case in the examples project has this type of assertion.

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.

Click Run Assertion to execute the assertion.