Applies to ReadyAPI 2.7, last modified on May 14, 2019

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...
SoapUIĀ functional tests The response properties. See Working With Assertions in SoapUI.
SoapUIĀ security tests The response properties. See Security Assertions.

Create an assertion

Follow these steps:

SoapUI: 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:

Secure: The Assertions panel

Click the image to enlarge it.

  1. Open a security test.

  2. Select Response Assertion.

  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