Steer text message Module Attributes

To steer text message Module Attributes in your API TestCases, modify the columns Value and ActionMode as described in chapter "Steer Module Attributes".

Values of Module Attributes created from text messages have a fixed length, i.e. the value has a specific number of characters that does not vary.

Module Attribute containing four characters

If the new, modified value has fewer characters than the original value, the API Engine adds blank spaces to the new value until the original number of characters has been reached.

Modified value with fewer than the original number of characters

If the new, modified value has more characters than the original value, the API Engine cuts off the value once the original number of characters has been reached.

Modified value with more than the original number of characters

This example involves a text message containing the following information:

  • a system

  • a version number

  • an account ID

  • a time stamp consisting of date and time

From this information, you can create five Module Attributes:

Text message with Module Attributes

The request message inserts the values:

TestCase and its XTestStepValues

This TestCase can be run as is and the system will verify the inserted values.

Alternatively, you can modify the values. For example, if you intend to reuse the TestCase repeatedly. This TestCase focuses on the time stamp, i.e. XTestStepValues Date and Time. To avoid generating these values yourself, you can add dynamic expressions for both values.

Dynamic expressions in the Value column

The system then generates these values automatically upon execution.