ASSERTION_RESULT (ENUM) ¶ TYPE ASSERTION_RESULT : Attributes: qualified_only InOut: Name Initial OK 0 ASSERTION_FAILED 1
BOOLCOMPARE (ENUM) ¶ TYPE BOOLCOMPARE : This enum defines the possible boolean comparison modes in a test manager check. Attributes: qualified_only InOut: Name Initial Comment DONTCARE 1 We don’t check the value during this round. We intentionally start the enum values with 1 to catch uninitialized variables. ISTRUE The value is true ISFALSE The value is false RISINGEDGE The value is true, but was false during the last cycle. FALLINGEDGE The value is false, but was true during the last cycle. CONST The value is the same as in the last cycle. CONSTORRISING The value is either the same as in the last cycle, or changed from false to true. CONSTORFALLING The value is either the same as in the last cycle, or changed from true to false. TOGGLED The value is the opposite as in the last cycle.
BOOLASSIGN (ENUM) ¶ TYPE BOOLASSIGN : This enum defines the possible boolean assignment values in a test manager check. Attributes: qualified_only InOut: Name Initial Comment SKIP 1 We don’t set the value during this round. We intentionally start the enum values with 1 to catch uninitialized variables. SETTRUE The value is set to true SETFALSE The value is set to false TOGGLE The value is negated.
Assert_String_ContainsNot (FUN) ¶ FUNCTION Assert_String_ContainsNot : BOOL Assertion function to check that a value of type STRING does not contain the given substring InOut: Scope Name Type Initial Comment Return Assert_String_ContainsNot BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . unexpectedSubstring STRING(Constants.MAX_STRING_LENGTH) The substring that should not be contained actualValue STRING(Constants.MAX_STRING_LENGTH) The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_String_EndsWith (FUN) ¶ FUNCTION Assert_String_EndsWith : BOOL Assertion function to check that a value of type STRING ends with the given string InOut: Scope Name Type Initial Comment Return Assert_String_EndsWith BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . expectedSuffix STRING(Constants.MAX_STRING_LENGTH) The expected suffix actualValue STRING(Constants.MAX_STRING_LENGTH) The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_String_NotEqual (FUN) ¶ FUNCTION Assert_String_NotEqual : BOOL Assertion function to check unequality of two values of type STRING InOut: Scope Name Type Initial Comment Return Assert_String_NotEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue STRING(Constants.MAX_STRING_LENGTH) The reference value actualValue STRING(Constants.MAX_STRING_LENGTH) The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_String_Equal (FUN) ¶ FUNCTION Assert_String_Equal : BOOL Assertion function to check equality of two values of type STRING InOut: Scope Name Type Initial Comment Return Assert_String_Equal BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue STRING(Constants.MAX_STRING_LENGTH) The expected value actualValue STRING(Constants.MAX_STRING_LENGTH) The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_String_StrCmpEndA (FUN) ¶ FUNCTION Assert_String_StrCmpEndA : BOOL Assertion function to check that a value of type STRING ends with the given string InOut: Scope Name Type Initial Comment Return Assert_String_StrCmpEndA BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . expectedSuffix STRING(Constants.MAX_STRING_LENGTH) The expected suffix actualValue STRING(Constants.MAX_STRING_LENGTH) The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_String_StartsWith (FUN) ¶ FUNCTION Assert_String_StartsWith : BOOL Assertion function to check that a value of type STRING starts with the given string InOut: Scope Name Type Initial Comment Return Assert_String_StartsWith BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . expectedPrefix STRING(Constants.MAX_STRING_LENGTH) The expected prefix actualValue STRING(Constants.MAX_STRING_LENGTH) The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
WSTRING ¶ Assert_WString_Contains (Function) Assert_WString_ContainsNot (Function) Assert_WString_Equal (Function) Assert_WString_NotEqual (Function)