Variable
It specifies the list of potential values when a part of the url may contain different values.
Possible Locations
Child Elements
Attributes
Name | Type | Description |
---|---|---|
name required |
String | Name of the variable. |
values required |
String (CSV) | The possible values of the variable. |
Note:
The name attribute of this element should be as same as the variable declared in the url attribute of server.
Example
Imagine that we have to include three different domains - https://travel_bureau.local.com, https://travel_bureau_qa.local.com, https://travel_bureau_test.local.com
in the <server>.
Define a variable var and add the possible values as travel_bureau, travel_bureau_qa and travel_bureau_test to it as shown here.
copy<server name="travel_bureau_server" url="https://{var}.local.com" dc="US"> <description>Both the domains will have the same performance.</description> <variable name="var" values="travel_bureau,travel_bureau_qa,travel_bureau_test" /> </server>
Last Updated 2025-05-30 16:54:59 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit