Record HTTP(S) Traffic

Overview

With Progress® Test Studio® for APIs you can easily record your HTTP(S) traffic and create test steps against it. Click on the Record menu and choose Record HTTP Traffic.

Record

Or just click on the Record button in the toolbar.

Record

A new Recording HTTP Traffic tab is opened and the recording starts automatically.

Record

HTTPS Recording

By default HTTPS decryption is disabled and you will not see any HTTPS traffic recorded. If HTTP is all you need, you can just dismiss the warning message that will appear on top of the pane and keep using the feature. If you need to capture HTTPS too, you can follow the Settings link in the message or click on "File" >> "Settings" >> "Recording" to open the Recording Settings.

Record

In the Recording Settings you can configure the desired port for Test Studio to listen on as a system proxy. The default one is '8888'. In the HTTPS section of the settings you can enable HTTPS decryption which will allow you to capture https traffic. The first time you enable the "Decrypt HTTPS traffic" option, you will usually see a warning message stating that the Root Certificate is not installed (this warning might not appear if you already have Fiddler installed on your machine). Test Studio for APIs uses FiddlerCore to capture traffic and just like Fiddler, needs its Root Certificate (it is named "DO_NOT_TRUST_FiddlerRoot") to be installed which allows HTTPS traffic to be intercepted. To configure Windows to trust the Root Certificate click on the "Install Root Certificate" button.

Record

To install the certificate click Yes on the next dialog.

Record

You can deny installing the certificate and Test Studio for APIs will still be able to capture HTTPS traffic. A root certificate will still be generated in the Current User Certificate store but it will not be registered as trusted. Therefore when you try loading https page in a browser you will see a warning for insecure connection like the one below.

Record

Once the recording is started, you will be able to view the captured traffic in the recording grid.

Record

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.

Record

To stop recording press the stop button Record. You also have the ability to delete a single session by using the trash icon Record as well as to clear all sessions using the icon Record .

Please note that in case of application exit the ApiTesting may not deregister as a proxy which may interrupt your internet connection. For more information refer to this article.