Resource expressions

A Resource expression is a reference to a resource, i.e. a data structure or an open transmission channel.

To use Resources in your tests, follow the steps below:

  1. Load your resource. You can do so via a module, for instance with the Open/Create XML file module.

  2. In the test step you create from the module, assign a plain-text name to your resource.

  3. Reference this name in other test steps with the following syntax:

Syntax:

{RES[MyResource]}

You cannot combine Resource expressions with other expressions.

Encode Resources

You can convert the content of a Resource to a different format.

To do so, specify one of the following types of encoding:

  • ASCII

  • UTF7

  • UTF8

  • Unicode

  • UTF32

Syntax:

{RES[MyResource][encoding]}

Delete Resources

You can delete resources, for instance if you only use a specific resource for a specific test case. For information on how to do so, check out Resource handling.