Result Object
The Result object is a special case within the CloudTest Object Model since results
are a byproduct of playing a test composition that are not part of that composition. The
$context
variable
includes results just as it does any of the objects that occur within a composition. For
example,
$context.result.postMessage($context.result.LEVEL_INFO, "hello, world");
The above line of code uses the
postMessage
method to write a message to the result for the current composition.
You can post messages to the result object for the current context using the following properties:
LEVEL_ERROR
,
LEVEL_STATISTICS
,
LEVEL_INFO
, and
LEVEL_VERBOSE
.
For more information, see