Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Output fields

  • Last UpdatedSep 24, 2026
  • 1 minute read

The output fields in the UnitTest module.

Name

Type

Value

Description

testResult

sjson

Test result in the JSON format. Contains the area name, test methods executed, and any failed test cases along with exception message.

codeCoverageInfo

sjson

Code coverage result in JSON format.

Class level

All the unit test classes need to have decorators.

[UnitTest(area="xyz", order="N")]

Module will run tests that have the testarea in numeric order.

Method level

[TestSetup] and [TestCleanup] are the decorators for the methods. Any methods that does the test setup can be marked as [TestSetup], and methods that perform cleanup after the test methods are complete can be marked as [TestCleanup].

All other methods that perform the test, have the decorator [UnitTest(order="N")]. Test methods will execute in numeric order.

Note: Any methods that don't have order will be executed after the ordered test methods executed.

For code coverage

If code coverage is required, the configuration.xml file must have the following lines.

<struct name="app">

<struct name="debug">

<item name="xrsCodeCoverage" type="sbool" value="True" description="" constraints="" />

</struct>

</struct>

For more details on decorators for the code coverage, see Runtime::Test for GetCodeCoverageInfo code example.

In This Topic
Related Links