Supporting eCATT Script Arguments in Silk Test Workbench

eCATT script arguments are an essential concept in the eCATT environment. They form the "interface" between eCATT and the Silk Test Workbench test. Arguments contain additional data needed by the current BLOB to run the BLOBs test script or visual test in eCATT. These arguments allow a test script or visual test to be used in the eCATT environment.

Arguments can be created in Silk Test Workbench or eCATT, and can be imported and exported between both environments.

The argument support in Silk Test Workbench consists of the following components:

Silk Test Workbench Argument Maintenance Feature

The Silk Test Workbench Argument Maintenance lets you create new arguments and edit or remove existing ones using the eCATT Argument Container dialog box. Use the eCATT Argument Container dialog box to define any arguments that can potentially be exported to or imported from an eCATT script through a BLOB. Once defined, arguments can be passed between an eCATT script and a Silk Test Workbench .NET script or visual test using the Silk Test Workbench/eCATT COM Interface.

Since Silk Test Workbench can only handle one BLOB (main script with arguments and related assets) at a time, the eCATT Argument Container dialog box always shows the arguments for the current BLOB.

When Silk Test Workbench stores a BLOB to the SAP database, it reads values specified for the BLOB's arguments and transports them in an argument container to be stored with the BLOB. The Silk Test Workbench Argument Maintenance Feature only works with string data type script arguments.

Using eCATT script arguments

For Silk Test Workbench .NET scripts, the argument values are passed to and from the script using two methods in the Silk Test Workbench scripting language. The Workbench.SetECATTArg() method creates argument values to pass to a SAP eCATT script. The Workbench.GetECATTArg() method retrieves argument values passed from a SAP eCATT argument container.

For visual tests, you create a Set eCATT variable step to export a defined argument value to an eCATT script. You create a Get Contents of eCATT variable step to import a defined argument value from an eCATT script and save it to a local variable, so the value can be used in visual test.