Importing Arguments From an eCATT Script Into a .NET Script

Retrieve eCATT script arguments from an argument container to use the argument values in any VB .NET script in Silk Test Workbench.

To import arguments from an eCATT script in a VB .NET script in Silk Test Workbench:

  1. Open the VB .NET script to which the eCATT script arguments are to be imported.
  2. Determine which arguments are to be imported from the eCATT script to the VB .NET script. Use the eCATT Argument Container dialog box in Silk Test Workbench to create eCATT script import arguments that can be used in the VB .NET script.
  3. In the .NET script, create a local variable to store the imported argument. For example:
    Dim argName As String
  4. Use the GetECATTArg function of the Workbench class to get the eCATT script argument. For example:
     ArgName = Workbench.GetECATTArg("NAME")
  5. Optional: The GetECATTArg function returns a string. You can use a type cast in the .NET script to change the type to something else, for example a date.
After eCATT script arguments are imported to a .NET script, the arguments 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.