In every project, parameters of various types can be defined and then used in request item properties. However, when executing request items the value of every project parameter defined as
Manually provided single value can be changed temporarily without the need to alter its value in project properties. This functionality is available in the following application windows:
-
Execution window.
-
Request window; only when the window was opened from project request items.
-
Window for creating cURL requests.
How to manage parameter values
To manage single-value parameters during the execution in the windows listed above, press
Ctrl+P or click the corresponding toolbar button to open the window for managing parameter values. Single-value parameters will be listed with their current values. You can change their values and click
OK button to apply them. New values will be used with the next execution wherever these parameters are used. If you would like to reset parameter value back to the value specified in project properties, click corresponding action button and select the appropriate menu option.
If you have already executed some request, you can quickly set parameter value without opening the window for managing parameter values:
- Select the desired text from any of the tabs that display execution data.
- Locate button Set selected text as parameter value in the execution data toolbar and click it. The list of Manually provided single value parameters is displayed.
- Click the desired parameter from the list and the selected text will automatically be set as its parameter value.
Local parameters
In
request window it is also possible to define local parameters which are available only while the request window is open. To create new local parameter, click
Add button and specify its name and value in the new row (beware that name can consists of only alphanumeric characters and underscore). Local parameters can be used in the same way as standard project parameters in the following fields:
- Execution URL.
- Request headers.
- Request body.
When using parameters in these fields, make sure that you enclose their names in curly braces, for example, https://www.example.com?id=
{myParameter}.