7. Transfer the Data

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

Now, you need to transfer the response’s data to the data sink test step.

To transfer data from a response to a data sink, you can use property expansions. However, in this tutorial, we will use the Property Transfer test step for this purpose.

  1. Double-click the Request1 test step to open it for editing.

  2. Switch to the Outline tab in the response section.

  3. Right-click the id node and select the corresponding data sink property for data transferring:

    ReadyAPI: Selecting a property for the transfer

    Click the image to enlarge it.

  4. The Transfer to Property dialog appears. You can use it to customize the transfer.

    You will not need that during this tutorial, so just click OK.

    ReadyAPI: Transfer to property dialog

    Click the image to enlarge it.

  5. The new Property Transfer test step will appear in the test case.

    ReadyAPI: The test case with a property transfer test step
    Since the Property Transfer test step moves data from the response to the data sink test step, it should be placed between the corresponding test steps within the test case. Otherwise, the test case will not work properly.
  6. Repeat these steps to add a transfer from the group node to the team property:

    ReadyAPI: Creating a transfer for the group node

    Click the image to enlarge it.

  7. After you do this, the PropertyTransfer 1 step will contain two transfers:

    ReadyAPI: Property transfer test step

    Click the image to enlarge it.

Now, you can run the test.

Prev          Next

See Also

Store Data

Highlight search results