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

AVEVA™ XR Studio

assert

  • Last UpdatedFeb 19, 2025
  • 2 minute read

The assert statement has been developed specifically to support automated testing. When an assert statement is executed, its text is logged at fatal level with the ASSERT prefix.

Platform support

This node is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-Portable WASM platforms.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Code example

This is a code example for the assert statement.

<command name="cmd_testAnything">

<assert text="Calculation result is wrong:@%calcResult%@" condition="@%calcResult%@!=23.43" />

</command>

Fields

These are the fields for assert statement.

Fields

Type

Use

Default value

Description

condition

SSTRING

Optional

Not set

The condition used to evaluate log execution.

text

SSTRING

Optional

Not set

The text to be logged.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in