HTTP Download Resources Assertion

Applies to ReadyAPI 3.57, last modified on December 20, 2024

The HTTP Download Resources assertion checks whether all the resources (images, scripts, CSS, and so on) the HTML document refers to are available and downloadable.

This assertion works with the HTTP Request test steps.

Availability

In functional tests: Use this assertion to verify the response HTML content.

Create an assertion

Follow these steps:

Functional test: The Assertions panel

Click the image to enlarge it.

  1. Open a test step.

  2. Click Add assertion.

In the New Assertions dialog, search for the HTTP Download Resources assertion or select it manually in the Compliance, Status and Standards category.

Setting up properties

  1. In the HTTP Request editor, select the Download Resources option.

  2. Add the HTTP Download Resources assertion. You do not need to configure the assertion.

    ReadyAPI: The HTTP Download Resources assertion

    Click the image to enlarge it.

  3. Run the request to see if it works. The assertion automatically downloads all resources for the URL you have requested, and fails if any of them are not available.

Add more assertions for HTTP status codes:

See Also

Compliance, Status and Standards Assertions
HTTP Invalid Status Codes Assertion
HTTP Valid Status Codes Assertion

Highlight search results