4. Modify the Response

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

Previously, we recorded a request to the database and a response from it. You can continue recording, or modify the transactions you already have. This step explains how you change the recorded responses.

1. Modify the virtual response

  1. Stop the virtual service:

    JDBC service virtualization and database testing: Stop the virtual service

    Click the image to enlarge it.

  2. You cannot edit the virtual service while routing is enabled. Disable routing before editing the recorded response:

    JDBC service virtualization and database testing: Disable routing

    Click the image to enlarge it.

  3. Select the response. The editor on the right will display the data you received form the database. Double-click a cell and change the value in it. Press Enter to confirm your changes. To open the table in a separate window, click .

    Tip: To add more rows to the table, right-click somewhere within it and select Clone Row or Add Empty Row. You can also delete all selected rows by selecting Remove Rows.
    JDBC service virtualization and database testing: Edit the response

    Click the image to enlarge it.

  4. Restart the virtual service.

2. Get the modified response

Open the JDBC Request test step again and send another request to the virtual service without changing the query. The service will return modified data:

JDBC service virtualization and database testing: Get a changed response

Click the image to enlarge it.

If you send a request that was not recorded, the Statement not virtualized error will occur.

Prev          Next

See Also

Tutorials and Samples

Highlight search results