Exporting Arguments From a Visual Test to an eCATT Script

You can pass eCATT script arguments that are used in a visual test to an eCATT script. The eCATT script arguments must be saved in a BLOB and must be defined as export arguments in the argument container for the visual test.

To export eCATT script arguments from a visual test to an eCATT script:

  1. Open the visual test from which you want to export arguments to an eCATT script.
  2. Determine which arguments you want to export to the eCATT script. Use the eCATT Argument Container dialog box in Silk Test Workbench to create eCATT script export arguments.
  3. Select the <<Start>> step in the visual test, then click Insert > SAP eCATT > Set Argument. Silk Test Workbench creates a step to set the export value of an eCATT argument so it can be used in an eCATT script. The properties of 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.
  4. In the Properties pane for the step, click the Sort Category icon to group properties by category.
  5. Update the Assignment category properties to define the name of the eCATT argument and the value to be assigned to it.
    1. In the eCATT variable name property, enter the name of an eCATT script argument that you want to export. The specified eCATT script argument must match an argument name defined in the eCATT Argument container for the visual test.
    2. In the Value property, type the for the argument, or right-click in the value area and assign a literal, variable, expression result, or ActiveData value.
    Once the Assignment category properties are updated and the visual test is saved, the step is similar to the following:
    Set eCATT argument '[eCATT script argument name]' to '[value]'
  6. Optional: You can repeat the steps to export multiple arguments from the visual test to the eCATT script. Once the arguments are exported and the BLOB is saved, you can use the argument values in the eCATT script.