You can import eCATT script arguments from an argument container and use the argument values in any visual test. The contents
of a passed argument are saved to a local variable in the visual test.
To import arguments from an eCATT script into a visual test:
-
Open the visual test into which you want to import the eCATT script arguments.
-
Determine which arguments you want to import from the eCATT script.
-
Use the
eCATT Argument Container dialog box in
Silk Test Workbench to create eCATT script import arguments that can be used in the visual test.
-
In the visual test, create local variables to store the imported arguments.
The defined local variables display in the visual test's
<<Start>> step. However, variables can be inserted into any test step.
-
Select a test step in the visual test, then click
.
Silk Test Workbench creates a step immediately following the selected step. This newly created step is used to get the value of an eCATT argument
and to store it in a variable so it can be used in the visual test. Properties for the step display in the
Properties pane.
Tip: Place this test step at or near the beginning of the visual test to maintain optimal test step organization.
-
In the
Properties pane for the test step, click the
Sort Category icon to group properties by category.
-
Update the
Assignment category properties.
The
Assignment properties for the step specify the eCATT argument to be imported and a local variable in which to store the argument value.
-
In the
eCATT variable name property, type the name of an eCATT script argument with a value to be used in the visual test.
The specified eCATT script argument must match one of the argument names that you have defined in the
eCATT Argument Container for the visual test.
-
The
Local variable name property lists all local variables that are defined for the visual test, including the variables that you have created to
store the imported arguments. Select a local variable to store the value of the specified eCATT script argument from the list.
Get contents of eCATT argument '[eCATT script argument name]' and put into local variable '[local variable name]'
-
Once the
Assignment category properties are updated and the visual test is saved, the test step description is similar to the following:
Get contents of eCATT argument '[eCATT script argument name]' and put into local variable '[local variable name]'
-
Optional: You can repeat the steps to import multiple eCATT script arguments into the visual test.
After eCATT script arguments are imported to a visual test and saved to local variables, the local variables can be used as
input values in automation steps. For example, an eCATT script argument value for a login ID can be used as text input for
an automation step that enters the value into a Login ID field.