Mapping properties
You can map properties to automation scripts parameters to use the same property values in multiple automation scripts. For example, when you put a value for a class_path into properties, you map the same value to each request working with the same components and the same environments.
Property mapping depends on the component or the server that the appropriate property is mapped to:
- Mapping a property against a parameter using application mapping option
- Mapping a property against a parameter using infrastructure mapping option
Mapping a property against a parameter using application mapping option
- Create a property and ensure that a property has a value assigned
- Assign components to a property.
- Go to Environment > Automation.
- From the automation scripts list, click the required script to open the script information panel.
Under the script body, click map next to the script parameter that you want to use property for.
- In the Map parameters > arguments dialog box, in the Select the Mapping Source section, ensure that Application Mapping is selected.
- In the Select the Mapped elements section, select the required application, and its associated environments, components, and properties.
- Click Save.
When you use the mapped script in a particular step of a request, the property value is automatically assigned to that step.
Mapping a property against a parameter using infrastructure mapping option
- Create a property and ensure that a property has a value assigned
- Associate the property to a server or to the server level.
- Go to Environment > Automation
- From the automation scripts list, click the required script to open the script information panel.
Under the script body, click map next to the script parameter that you want to use property for.
- In the Map parameters > arguments dialog box, in the Select the Mapping Source section, ensure that the Infrastructure Mapping is selected.
- In the Select the Mapped elements, select the required entity level (server or server level) and its appropriate entity (server or server level), and then select the required server property.
- Click Save.
When you use the mapped script in a particular step of a request, the property value is automatically assigned to that step.
Related topic