CreateAssertionErrorMessageForInterface (FUN)¶
FUNCTION CreateAssertionErrorMessageForInterface : WSTRING(Constants.WSTRING_LENGTH)
Helper function to create an error message for failed assertions of standard datatypes.
Hint: if
wsErrorMsg is used, it is recommended to change the value of the library parameter Constants.WSTRING_LENGTH.- InOut:
Scope
Name
Type
Comment
Return
CreateAssertionErrorMessageForInterfaceWSTRING(Constants.WSTRING_LENGTH)a
WSTRINGsimilar to “Assertion failed: The given value(s) is/are not matching the condition ‘<wsAssertOperator>’. [Additional information: <wsErrorMsg>]”Input
wsAssertOperatorWSTRING(Constants.WSTRING_LENGTH)The assert operator e.g. “=” or “CONTAINS”
wsErrorMsgWSTRING(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.