Invalid HTTP Status Codes Assertion

Download

Source Code: https://github.com/testify/InvalidHTTPStatusCodesAssertion.git

Latest Snapshot: Coming Soon

Latest Release: Coming Soon

Description

The Invalid HTTP Status Codes Assertion is a Testify assertion service that checks that the response code from the processor is not on a provided list of invalid codes. To use this assertion, the user must provide the assertion name, "InvalidHTTPStatusCodesAssertion" (not case sensitive), followed by "::" and assertion information.

Assertion Information

The assertion information is the comma separated list of codes that are not valid. The example text below shows the format for this assertion. This example text would be successful if the processor response code is not 500, 501, or 502. The assertion text below must be placed within the assertion block.

Action Block
InvalidHTTPStatusCodesAssertion::500, 501, 502