With Telerik Test Studio for APIs you can easily import a snapshot of your HTTP(S) traffic and create test steps against it.
The easiest way to capture HTTP(S) traffic is by using Fiddler. You can store the HTTP(s) traffic you captured to an archive (SAZ file). This compressed file format contains the full request and response, as well as flags, timers, and other metadata.
You need a Session Archive Zip (SAZ) file to complete the steps in this article.
You can use FiddlerCap - a lightweight version of Fiddler designed solely for generating SAZ files.
In order to import HTTPS sessions, you will need to enable the "Decrypt HTTPS traffic" option in Fiddler before you capture your requests. This way you will be able to export from Fiddler the raw, decrypted content of your sessions. (To enable it go to: Tools > Telerik Fiddler Options > HTTPS > Decrypt HTTPS traffic in Fiddler and Capture Options Decrypt HTTPS traffic in FiddlerCap)
You can use the
Import Sessions button located under Record main button at the top of Telerik Test Studio for APIs.
A dialog will appear prompting you to locate the SAZ file containing the HTTP(S) traffic.
Telerik Test Studio for APIs will import the SAZ file and present you with its contents.
You can now select individual session entries and add them to either an existing test step or to a new test case.
To do that, you can use the
Add Selected Sessions to Selected Test and
Add Selected Sessions to a New Test buttons.
Telerik Test Studio for APIs will import all the data associated with the session exchange entry.
Content-Lengthheader will be skipped when importing a HTTP Request.
You can further extend the test step by adding verifications and conditions.