⦁    Parameterize

This section shows how to pre-define the parameter and use the parameters in the HTTP request

1) Refer Quick Start step 3 to create a Python Script step and click image  button to put Python Script on the top of steps:

image

 

2) Type "Context.Variables.Set("host", www.bing.com);" in the Python Script step.

image

 

3) Change the content of RESTful Action step as:

image

 

4) Save and execute the user case, the result shows as below, <<host>> replaced with the variable which set in Python Script:

image