Export as cURL
Export a test step's API request as a cURL command to use outside of Swagger Functional Testing.
Note
This feature is disabled for read-only users.
How to export
To copy a test step as a cURL command, do the following:
Open a test and select the step you want to export.
In the Execute Request section, select the Copy as cURL icon next to Run Step.
When the copy is successful, a "cURL command copied to clipboard" notification appears at the top of the page.
Requests with secrets or auth profiles
If the test step includes secrets or authorization profiles, you see a dialog box before the command is copied. What you see depends on your role.
Admin users
To export a cURL command that includes secrets or auth profiles, do the following:
In the Export cURL with credentials dialog box, select Resolve and include real values if you want the cURL to contain real credential values instead of placeholders.
Select Export.
If you do not select Resolve and include real values, secrets and auth profiles are exported as placeholders.
Other users
If the request includes a secret, the Secret won't be copied as-is dialog box appears. The copied cURL command will contain an encoded version of the secret that will not work as-is. You will need to replace it with the actual value manually before using the command.
To copy the command anyway, select Copy anyway.
To skip this dialog box for future copies, select Don't show this again before selecting Copy anyway.
Related