Test Result for Custom Object

The Test Result window presents the Inputs, Outputs, and log messages (if any) for a custom object test:

Important! Not all global variables are available to custom objects in the Test page. However, the global variables are available at execution time. To test custom objects that expect global variables, do so outside of the Test page.

The test results for custom objects run from the Test page do not appear in the custom object log file. The results appear only in this window.

The Inputs always include the values specified for the attributes and parameters of the custom object that were specified in the Custom Object Test page. For example, for an Alarm Rule test, the Inputs include the alarm name, severity, and type. For the Asset Serial Number that you entered in the Custom Object Test window results, the Test Result window shows multiple Inputs:

o        Asset input -- the Asset serial number and model

o        Asset name -- typically the same as Asset serial number

o        Asset serial number -- exactly what you entered or selected in the Custom Object Test window

o        Model name -- the model name associated with the asset name in the Platform

The Outputs for all custom objects include:

o        Execution time -- the number of seconds to run the test

o        Exceptions -- errors that occurred during the test; shows the stack trace of the caught exception

o        Return value -- shown only for a Rule type of custom object (Alarm, Data Item, Event, or Registration)

After reviewing the test results, click the Close button to return to the Custom Object Test page.