Overview
Functionize supports parameterized cURL commands using variables, which allows for dynamic and reusable API requests within a test. This can be achieved using the cURL Extension step combined with Test Data Management (TDM) or Page Object (PO) parameterization.
How It Works
To parameterize a cURL command, you map data to the cURL Extension step. The approach is similar to parameterizing other steps, but with a specific attribute.
- When mapping data from a TDM sheet or PO to the cURL Extension step, you must select the requestBody attribute.
- The corresponding data source (e.g., a cell in your TDM spreadsheet) must contain the complete cURL command to be executed.
- When the test is executed, the cURL command from your data source runs as part of the test flow.
- Once execution is complete, the response from the command is available in the Extensions tab in the footer of the Slider view.
Related Information
Parameterizing the cURL command is an application of the broader support for using variables in Extension Actions.