Equals Binary Assertion

Applies to ReadyAPI 3.56, last modified on November 21, 2024

The Equals Binary assertion checks the binary identity of the response and some other response or file.

Availability

This assertion is available in multiple ReadyAPI applications. Depending on the application, it validates the following data:

In... Checks... To learn more...
Functional tests The response properties. See Working With Assertions in Functional Tests.
Security tests The response properties. See Security Assertions.

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 Equals Binary assertion or select it manually in the Property Content category.

Follow these steps:

Security tests: The Assertions panel

Click the image to enlarge it.

  1. Open a security test.

  2. Click Response Assertion next to any scan.

  3. Click in the Assertions panel

In the New Assertions dialog, search for the Equals Binary assertion or select it manually in the Property Content category.

Setting up properties

This assertion works in two modes: Binary File or Other Response.

Binary File mode

Use this mode to compare the received file to a file on your local computer.

  1. Select Binary File in the Target drop-down list.

    ReadyAPI: Configuring the Equals Binary assertion for matching with the binary file

    Click the image to enlarge it.

  2. Specify the path to the file in the Target File Name field, or click Browse and select a file on your PC.

Other Response mode

Use this mode to compare the received response to a response from a different test step in the same test case.

  1. Select Other Response in the Target drop-down list.

    ReadyAPI: Configuring the Equals Binary assertion for matching with another response

    Click the image to enlarge it.

  2. Select the test step in the Target Response drop-down list.

    You can only select steps that run before the current one.

Add more assertions for response and request contents:

See Also

Property Content Assertions
Equals Assertion

Highlight search results