Skip to content

Latest commit

 

History

History
71 lines (60 loc) · 4.91 KB

Assertions.md

File metadata and controls

71 lines (60 loc) · 4.91 KB

Assertions

Daedalic Test Automation Plugin comes with the following assertion nodes for use in your automated tests:

Basic Assertions

Node Description
Assert Fail Finishes the current test as failure.
Assert True Expects the specified value to be true.
Assert False Expects the specified value to be false.
Assert Valid Expects the specified object to be valid.
Assert Invalid Expects the specified object not to be valid.
Assert Was Triggered Expects the specified trigger box to be triggered.
Assert Was Not Triggered Expects the specified trigger box not to be triggered.

Equality

Node Description
Assert Equal (Byte) Expects the specified bytes to be equal.
Assert Equal (Integer) Expects the specified 32-bit integers to be equal.
Assert Equal (Integer64) Expects the specified 64-bit integers to be equal.
Assert Equal (Float) Expects the specified floats to be (nearly) equal.
Assert Equal (Name) Expects the specified names to be equal.
Assert Equal (String) Expects the specified strings to be equal.
Assert Equal (Text) Expects the specified texts to be equal.
Assert Equal (Vector) Expects the specified vectors to be (nearly) equal.
Assert Equal (Rotator) Expects the specified rotators to be (nearly) equal.
Assert Equal (Transform) Expects the specified transforms to be (nearly) equal.

Inequality

Node Description
Assert Not Equal (Byte) Expects the specified bytes not to be equal.
Assert Compare (Byte) Compares the specified bytes for order.
Assert Not Equal (Integer) Expects the specified 32-bit integers not to be equal.
Assert Compare (Integer) Compares the specified 32-bit integers for order.
Assert Not Equal (Integer64) Expects the specified 64-bit integers not to be equal.
Assert Compare (Integer64) Compares the specified 64-bit integers for order.
Assert Not Equal (Float) Expects the specified floats not to be equal.
Assert Compare (Float) Compares the specified floats for order.
Assert Not Equal (Name) Expects the specified names not to be equal.
Assert Not Equal (String) Expects the specified strings not to be equal.
Assert Not Equal (Text) Expects the specified texts not to be equal.
Assert Not Equal (Vector) Expects the specified vectors not to be equal.
Assert Not Equal (Rotator) Expects the specified rotators not to be equal.
Assert Not Equal (Transform) Expects the specified transforms not to be equal.

Range Checks

Node Description
Assert In Range (Byte) Expects Value to be between MinInclusive and MaxInclusive.
Assert In Range (Integer) Expects Value to be between MinInclusive and MaxInclusive.
Assert In Range (Integer64) Expects Value to be between MinInclusive and MaxInclusive.
Assert In Range (Float) Expects Value to be between MinInclusive and MaxInclusive.
Assert Not In Range (Byte) Expects Value not to be between MinInclusive and MaxInclusive.
Assert Not In Range (Integer) Expects Value not to be between MinInclusive and MaxInclusive.
Assert Not In Range (Integer64) Expects Value not to be between MinInclusive and MaxInclusive.
Assert Not In Range (Float) Expects Value not to be between MinInclusive and MaxInclusive.

UMG Widgets

Node Description
Assert Widget Is Visible Expects the specified widget to be valid and visible (e.g. added to viewport, not hidden or collapsed).
Assert Text Is Set Expects the specified text not to be empty.
Assert Rich Text Is Set Expects the specified rich text not to be empty.
Assert Image Is Set Expects the specified image to be set up to use a texture or material.