Validate transactions and matchers

Use the sandbox environment to quickly validate transactions and matchers without needing to deploy them to a virtual service environment and without the need to make API client calls. You get immediate feedback in real-time, which simplifies debugging without deployment overhead. After the validation, you can save your changes from the sandbox to the transaction.

Use case

After making changes to transactions and matchers, you want to validate your changes. Usually, to validate each change, you add the modified transaction to a virtual service and stop and restart it, which costs time. A faster method is using the validation sandbox.

Validate a transaction

  1. Log in to BlazeMeter and open the Service virtualization tab.

  2. Go to the Asset catalog > Transactions.

  3. Find the transaction you want to update.

  4. Click the Sandbox icon in the action column of the transaction.

    The Validation sandbox window opens.

  5. In the Request definition section, click Update from transaction to initialize the HTTP request.

    Initializing this sandbox from the current transaction overwrites the current values in the sandbox.

 

The following fields and tabs are now pre-filled with values from the current transaction:

  • HTTP method

  • Request URL

  • Parameters

  • Headers

  • Body

To learn more about transaction types and their values, see DSL in the API docs.

To validate and edit a transaction in real time:

  1. Edit the HTTP request.

  2. Click Test request.

    The Response preview appears on the right side.

  3. Verify that the body and headers of the response match your matcher, or edit them further if necessary.

    You can use data parameters from the service data model in request matchers and response content, as well as use dynamic parameters in your response. To learn more, see Add parameter options and dynamic responses to transactions.

Repeat this process until you are satisfied with the result.

To save the updated transaction:

  1. Go to the Transaction definition tab.
  2. Review the transaction definition.
  3. Click Apply to transaction.