Record HTTP transactions

BlazeMeter can mock different protocols within the same service virtualization environment, including HTTP transactions or MQ messaging. To virtualize HTTP transactions quickly, record them from the live app as described here.

On this page:

Prerequisites

This procedure assumes you have created a virtual service with a default HTTP runner and want to add transactions to it. To learn more, see Create a virtual service.

You have several options that you can mix:

Record live transactions

To enable HTTP transaction recording mode:

  1. Open the Service virtualization tab and click Plus to create a virtual service.

  2. Go to the HTTP runner tab and switch Recording mode on.

  3. Under Settings, configure the following values and click Save.:

    • Max transactions count
      Default 1000

    • Max transactions per second
      Default 100

    • Target URL
      The live system endpoint whose transactions you want to record.

    • Certificate
      If needed, provide client certificates when calling live endpoints. Uploaded certificates are stored in the certificate store and can be reused.

  4. Click Save.

  5. Run the virtual service. The Start recording button is now available.

  6. Click Start recording.

  7. Copy the virtual service endpoint.

  8. Make requests against the virtual service.
    Requests against the virtual service are automatically forwarded to the Target URL specified in the settings. Recorded transactions then appear on the HTTP runner > Recorded transactions tab.

  9. Click Stop recording when you have recorded enough transactions.

Turn recording into transactions

  1. Select the Recorded transactions tab.

    • View the captured transactions with their method name, query parameters, request path and the IDs. Expand the entries to see the request and response captured as a part of the recording.

    • If needed, delete transactions.

  2. Select the recordings that you want to turn into transactions and click Save transactions.

  3. Specify an existing Service or create a new Service to save the transactions.
    The recordings are saved as transactions in the Asset catalog.

  4. You can now add the recorded transactions to your virtual services as usual.