Record HTTP transactions
BlazeMeter can mock different protocols within the same service virtualization environment, including HTTP/HTTPS transactions or MQ messaging. To virtualize HTTP/HTTPS 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 and play them back. This article describes recording.
Record live transactions
To enable HTTP transaction recording mode:
-
Open the Service virtualization tab and click Plus to create a virtual service.
-
Go to the HTTP runner tab and switch Recording mode on.
-
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.
-
-
Click Save.
-
Run the virtual service. The Start recording button is now available.
-
Click Start recording.
-
Copy the virtual service endpoint.
-
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. -
Click Stop recording when you have recorded enough transactions.
Turn recording into transactions
-
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.
-
-
Select the recordings that you want to turn into transactions and click Save transactions.
-
Specify an existing Service or create a new Service to save the transactions.
The recordings are saved as transactions in the Asset catalog. -
You can now add the recorded transactions to your virtual services as usual.