In this section:
Enable the API Traffic for Parasoft SOAtest option and click Start Recording. The application type setting does not affect API traffic recording.
You can record UI actions and API traffic simultaneously by enabling both API Traffic for Parasoft SOAtest and UI Actions for Parasoft Selenic.
When you start recording, a message will appear at the top of your browser window informing you that Parasoft recording has started debugging the browser. Do not cancel this process. Navigating to a non-website page in the browser (for example, by clicking Back in the browser and returning to a blank starting page) will cancel traffic recording. Additionally, in Chrome v88+, if you close the debugger on another tab while recording, it will disconnect the debugger in all Chrome tabs, including the one you are currently recording, causing Parasoft Recorder to stop receiving traffic. This is a known bug in Chrome. See https://bugs.chromium.org/p/chromium/issues/detail?id=1170381. |
The test will appear under the TestAssets/users/<USERNAME>
directory, where the /users/<USERNAME>
sub-directory is created based on your CTP username.
You can also view the test in the SOAtest desktop Test Case Explorer.
If you are using the Parasoft Recorder with a local instance of SOAtest, your tests will appear in the TestAssets/users/anonymous
directory.
A recorded_traffic
folder will be created in the SOAtest server workspace next to the .tst file and a traffic file will be uploaded to the folder. You can use the recorded traffic file to create new tests using the smart test traffic wizard (see Creating Smart API Tests from Traffic), as well as to train the Smart Test Generator (see Configuring Smart API Test Generation). The Resultant Set of Policy tool will show which policy setting Windows is using. A Windows domain administrator within the organization will need to change the policy.
Chrome does not allow the extension to change proxy settings
If you are using Windows and get an error stating "Chrome does not allow the extension to change proxy settings" when attempting to record API traffic with Chrome, you can fix the issue by disabling the group policy "Choose how to specify proxy server settings" under Administrative Templates > Google > Google Chrome > Proxy server. When the policy is enabled, it blocks the Chrome extension from changing the proxy. This issue does not affect Linux or Mac users.
To change the group policy:
rsop
. The Resultant Set of Policy window opens.gpupdate /force
.rsop
again to confirm the policy has been disabled.If that doesn't work, you can try to manually disable the policy in the registry:
regedit
. The registry editor opens.ProxyMode
key and reboot your machine.Recorded File is Empty/Missing Data
When you start recording, a message will appear at the top of your browser window informing you that Parasoft recording has started debugging the browser. Canceling this process disrupts the recording.
Additionally, in Chrome v88+, if you close the debugger on another tab while recording it will disconnect the debugger in all Chrome tabs, including the one you are currently recording, causing Parasoft Recorder to stop receiving traffic. This is a known bug in Chrome. See https://bugs.chromium.org/p/chromium/issues/detail?id=1170381.
You can import the recorded UI actions into an IDE with the Selenic plug-in enabled to create Selenium tests. See Parasoft Selenic for details on next steps.
You can record assertions on text in UI elements as you record actions. The assertions are added to Selenium tests created in Parasoft Selenic. Refer to the Selenic documentation for details.
Refer to the Selenic documentation for information about assertions in UI tests.