Importing Arguments From an eCATT Script into a Visual Test

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:

  1. Open the visual test into which you want to import the eCATT script arguments.
  2. Determine which arguments you want to import from the eCATT script.
  3. 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.
  4. 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.
  5. Select a test step in the visual test, then click Insert > SAP eCATT > Get Argument. 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.
  6. In the Properties pane for the test step, click the Sort Category icon to group properties by category.
  7. 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.
    1. 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.
    2. 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]'

  8. 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]'
  9. 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.