AssertTrue

The AssertStrictlyLarger method tests whether a value (the result of a test) is strictly greater than a defined threshold.
Syntax
METHOD PUBLIC AssertTrue
VAR_INPUT
bCondition : BOOL
sMessage : STRING(255) := '';
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
bCondition | BOOL | A BOOL value that indicates whether the test was successful. |
sMessage | STRING(255) | Error message if the test fails. |
Sample
AssertTrue(bCondition:=<condition>, sMessage:= 'Error message to be displayed in the client!');