IBaseIecUnitTest.HasError (METH) ¶ METHOD HasError : BOOL This method should only return xError = TRUE InOut: Scope Name Type Return HasError BOOL
Strings (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Constant LEFT WSTRING “’ “ RIGHT WSTRING “ ‘” LEFT_DOT WSTRING “’.” DOT WSTRING “.” KOMMA_LEFT WSTRING “, “ TUPLE_END WSTRING “): ‘” ASSERTION_FAILED WSTRING “Assertion failed: ‘” ASSERTION_FAILED_VALUE_INDEX WSTRING “Assertion failed for value at index (” ASSERTION_FAILED_VALUE_MISMATCH_CONDITION WSTRING “Assertion failed: The given value(s) is/are not matching the condition ‘” ADDITIONAL_INFORMATION WSTRING “ Additional information: “ UNEQUAL WSTRING “<>” EQUAL WSTRING “=” GREATER_THEN WSTRING “>” LESS_THEN WSTRING “<” GREATER_EQUAL WSTRING “>=” LESS_EQUAL WSTRING “<=” CONTAINS WSTRING “CONTAINS” CONTAINS_NOT WSTRING “CONTAINS NOT” IS_FALSE WSTRING “IS FALSE” IS_TRUE WSTRING “IS TRUE” ENDS_WITH WSTRING “ENDS WITH” STARTS_WITH WSTRING “STARTS WITH” LOWER WSTRING “Lower” UPPER WSTRING “Upper”
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 28.09.2023, 12:04:38 companyName string 3S-Smart Software Solutions GmbH libraryFile Test Manager IEC Unit Test.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile Test Manager IEC Unit Test.clean.json version version 2.0.0.0 ProjectInformation IsEndUserLibrary bool False Released True LastModificationDateTime date 28.09.2023, 12:04:33 LibraryCategories library-category-list Intern|TestManager Author string 3S - Smart Software Solutions GmbH Company Intern CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 Patch 3 DefaultNamespace TM Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder TestManager Project Test Manager IEC Unit Test Title Test Manager IEC Unit Test Version version 5.1.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CAA Behaviour Model ¶ Library Identification ¶ Placeholder: CAA Behaviour Model Default Resolution: CAA Behaviour Model, * (CAA Technical Workgroup) Namespace: CBM Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Behaviour Model Element Collections ¶ Library Identification ¶ Placeholder: ElementCollections Default Resolution: Element Collections, * (3S - Smart Software Solutions GmbH) Namespace: COL Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: ElementCollections Standard64 ¶ Library Identification ¶ Placeholder: Standard64 Default Resolution: Standard64, * (System) Namespace: Standard64 Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard64 StringUtils ¶ Library Identification ¶ Placeholder: StringUtils Default Resolution: StringUtils, * (System) Namespace: Stu Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: StringUtils
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.
CHECKTYPE (ENUM) ¶ TYPE CHECKTYPE : This enum defines the possible checks in a test manager check. Attributes: qualified_only InOut: Name Initial Comment NONE 1 Do no check for the target column during this cycle. We intentionally start the enum values with 1 to catch uninitialized variables. EQUAL The target variable needs to be equal to the reference column. DIFFERENT The target variable needs to be different than the reference column. SMALLER The target variable needs to be smaller than the reference column. SMALLEREQUAL The target variable needs to be smaller or equal than the reference column. BIGGER The target variable needs to be bigger than the reference column. BIGGEREQUAL The target variable needs to be bigger or equal than the reference column. RANGE The target variable needs to be in the range defined by the reference column and the upper reference column. CONST The target variable needs to be the same as in the last cycle. FALLING The target variable needs to be the same or lower than in the last cycle. INCREASING The target variable needs to be the same or bigger than in the last cycle. STRICTLY_INCREASING The target variable needs to be the lower than in the last cycle. STRICTLY_FALLING The target variable needs to be the biggerthan in the last cycle. LINEAR The target variable needs exhibit linear behaviour as defined by the linear reference columns. EDGE The target variable needs to exhibit an edge to the value in the reference column.
FAILUREMODE (ENUM) ¶ TYPE FAILUREMODE : This enum defines the possible failure modes in a test manager check. This enum is synchronized to to the .NET FailureMode enum, so all changes here need to be replicated there. Attributes: qualified_only InOut: Name Initial Comment Warning 1 The problem is only reported as a warning in the test report, but execution continues normally. We intentionally start the enum values with 1 to catch uninitialized variables. AbortTestCase The current test case is aborted (and directly following tests of TestCaseType.Consecutive are skipped). This is the default when no mode is explicitly defined nor inherited. AbortUnitTesting The whole IEC Unit Test element is aborted when this failure occurs. AbortTestRun The whole test script run is aborted when this failure occurs.
Function Blocks ¶ BaseMultiTest (FunctionBlock) HandleAssertResult (Method) HasError (Method) SetErrorVars (Method) prvAbort (Method) prvDone (Method) prvError (Method) prvResetOutputs (Method) PrintfOne (FunctionBlock) FB_Init (Method) Print (Method) SetText (Method) Text (Property) Testcase (FunctionBlock) Execute (Method) HandleAssertResult (Method) HasError (Method)
BaseMultiTest (FB) ¶ FUNCTION_BLOCK PUBLIC BaseMultiTest EXTENDS CBM.ETrigA IMPLEMENTS IBaseIecUnitTest This FB is the base for the multi-test POUs and contains the additional inputs and outputs. InOut: Scope Name Type Comment Inherited from Input xExecute BOOL Rising edge: Action starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values ( xDone , xError , iError ) are present at the outputs for exactly one cycle. ETrigA xAbort BOOL TRUE : Action is stopped immediately and all outputs are reset to their initial values. ETrigA Output xDone BOOL TRUE : Action successfully completed ETrigA xBusy BOOL TRUE : Function block active ETrigA xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error ETrigA xAborted BOOL TRUE : Action aborted by user ETrigA Input diTestCaseIndex DINT Index of the test case which will be executed. In combination with xGetTestInfo = TRUE you can fetch the following information about the multi-test POU: name of the test case categories time-out for the test case If the test case index is -1 then you get the count of test cases in the multi-test POU. xGetTestInfo BOOL If set to TRUE the outputs return the basic information about the test case. Output diTestCaseCount DINT If xGetTestInfo = TRUE and diTestCaseIndex = -1 then you get the count of test cases in the multi-test POU. wsTestCaseName WSTRING(Constants.WSTRING_LENGTH) Name of the current test case wsTestCaseCategories WSTRING(Constants.WSTRING_LENGTH) Test categories diTestCaseTimeout DINT Timeout of the test case. In milliseconds. wsInfo WSTRING(Constants.WSTRING_LENGTH) Info about the test case. It can contain the description of the test step if used by a test table with the necessary column. eError UT_ERROR Error ID wsError WSTRING(Constants.WSTRING_LENGTH) Error message wsWarning WSTRING(Constants.WSTRING_LENGTH) Warning message eFailureMode FAILUREMODE Failure mode informs how to proceed after the test case failed. Methods: HandleAssertResult HasError SetErrorVars prvAbort prvDone prvError prvResetOutputs Structure: HandleAssertResult (Method) HasError (Method) SetErrorVars (Method) prvAbort (Method) prvDone (Method) prvError (Method) prvResetOutputs (Method)
BaseMultiTest.HandleAssertResult (METH) ¶ METHOD HandleAssertResult : BOOL InOut: Scope Name Type Return HandleAssertResult BOOL Input eAssertion_Result ASSERTION_RESULT wsErrorMsg WSTRING(Constants.WSTRING_LENGTH)