Create Input Variables
Create Input Variables
Input variables are reusable parameters that you define when you configure a Step for a Test or a Test template. Input variables ensures that the same values are consistently used across different Steps, thereby eliminating the need to reconfigure the variables each time and minimizing the risk of discrepancies.
To create an input variable for a parameter:
Configure the Test as described from Step 1 through Step 4 of Create a Test.
Click the Link icon next to the parameter field for which you want to create an input variable.
A Create an Input Variable page appears.
Specify the details for the input variable as described in Table 1.
Click Save to save the input variable.
The input variable you created is displayed as a Label-Name tag in the parameter field you are configuring.
Reuse Input Variables
To reuse input variables, you must first create input variables as described in Create Input Variables. You can reuse these existing variables when configuring any new Tasks and Steps.
At the time of Test creation, select the Link icon next to the parameter field for which you want to use an existing input variable.
A Select Variable page appears.
Click the drop-down list icon in the Existing variables field.
Select the desired variable from the list.
Click OK.
The input variable you selected is displayed as a Label-Name tag in the parameter field you selected.
Manage input variables
Once you create input variables for all the Steps, you can manage the input variables before executing the Test.
To manage input variables for a Test, click the Global icon on the right side of the Measurement Designers page and a Input Variables page appears with two tabs:
-
Manage tab—In this tab, you can manage the list of all the input variables you have defined for a Test. It gives you an overall view of variables ensuring consistency across the Test configurations. In the Manage tab, there are two sections:
-
Source section—In this section, you can:
-
View input variables—View the list of input variables with their label, type, and description.
-
Create new input variable—Create a new input variable by clicking the Add (+) icon and following the steps described in Create Input Variables.
-
Delete an input variable—Select and delete an input variable from the list. To delete an input variable, select the input variable that you want to delete and click the Delete (trash can) icon. A message is displayed asking for your confirmation. Click Yes and the input variable is deleted.
-
-
Target section—In this section, you can view the Steps, Tasks, and Parameters where you have applied the input variables listed in the Source section. You can also assign available input variables to different Steps, Tasks, and Parameters.
-
-
Preview tab—In this tab, you can edit the Test details and input variable details before executing a Test. It helps to dynamically update the parameters giving flexibility in Test execution. In the Preview tab, you can:
-
Add or edit Test details—You can add or edit the name and tags of the Test. You can update or add these details as needed.
-
Add or edit input variables—You can add values or edit the existing input variables configured while creating a Test.
-
Fields |
Descriptions |
---|---|
Type |
By default, the Type field is pre-populated. You cannot edit this field. |
Label |
By default, the Label field is pre-populated. However, you can edit the existing label name or specify a new label name for the parameter. |
Variable Name |
By default, the Variable Name field is pre-populated. However, you can edit the existing variable name or specify a new variable name for the parameter. |
Group |
Assign the variable to a group for better organization. |
Unit |
Specify the unit for the variable. |
Description |
Specify a description for the variable. |
Allow Multiple |
Enable the Allow Multiple toggle button to allow a Test to use multiple Test Agent interfaces. The Allow Multiple field is displayed only if the specified Clients parameters involve interfaces. |
Maximum |
Set the maximum allowable value for the selected variable. |
Minimum |
Set the minimum allowable value for the selected variable. |
Plugin |
By default, the Plugin field displays the plug-in on which you have configured the variable. |