CreateAssertionErrorMessageForStandardDatatypeSingleValue (FUN)

FUNCTION CreateAssertionErrorMessageForStandardDatatypeSingleValue

Helper function to create an error message for failed assertions of standard datatypes that only expect an actual value.
Hint: if wsErrorMsg is used, it is recommended to change the value of the library parameter Constants.WSTRING_LENGTH.
InOut:

Scope

Name

Type

Comment

Inout

wsAssertError

WSTRING(Constants.WSTRING_LENGTH)

Inout Const

wsActualValue

WSTRING(Constants.WSTRING_LENGTH)

The actual value as WSTRING

wsAssertOperator

WSTRING(Constants.WSTRING_LENGTH)

The assert operator e.g. Strings.IS_TRUE

wsErrorMsg

WSTRING(Constants.WSTRING_LENGTH)

A custom error message that should be appended. If no message is provided the “Additional information” part will not be added to the returned error.