TcUnit
67 objects — 14 function blocks 36 functions 3 interfaces 3 GVLs 9 structs 2 enums
Function Blocks
| Name | Description |
|---|---|
| FB FB_AdjustAssertFailureMessageToMax253CharLength | This function block is responsible for making sure that the asserted test instance path and test message are not loo... |
| FB FB_AdsAssertMessageFormatter | This function block is responsible for printing the results of the assertions using the built-in ADSLOGSTR... |
| FB FB_AdsLogStringMessageFifoQueue | This function block is responsible for making sure that the ADSLOGSTR-messages to the ADS-router are transmitted... |
| FB FB_AdsTestResultLogger | This function block reports the results from the tests using the built-in ADSLOGSTR functionality provided by the... |
| FB FB_AssertArrayResultStatic | This function block is responsible for keeping track of which array-asserts that have been made. The reason we need... |
| FB FB_AssertResultStatic | This function block is responsible for keeping track of which asserts that have been made. The reason we need to... |
| FB FB_FileControl | This functionblock can open, close, read, write and delete files on the local filesystem |
| FB FB_StreamBuffer | This functionblock acts as a stream buffer for use with FB_XmlControl |
| FB FB_TcUnitRunner | This function block is responsible for holding track of the tests and executing them. |
| FB FB_Test | This function block holds all data that defines a test. |
| FB FB_TestResults | This function block holds results of the complete test run, i.e. results for all test suites |
| FB FB_TestSuite | This function block is responsible for holding the internal state of the test suite. Every test suite can have one... |
| FB FB_XmlControl | Organizes parsing and composing of XML data. Data can be treated as STRING or char array. Buffer size of file can be... |
| FB FB_xUnitXmlPublisher | Publishes test results into an xUnit compatible Xml file |
Functions
| Name | Description |
|---|---|
| FN F_AnyToUnionValue | |
| FN F_AnyTypeClassToString | This function takes the type-class of a ANY-variable and returns the STRING representation of it. |
| FN F_AssertionTypeToString | Since TwinCAT 3.1.4024.x it's possible to do TO_STRING on enumerations, but for backward compability we need to do... |
| FN F_GetCpuCounterAs64bit | Calls the passed GETCPUCOUNTER function block and converts the output of the GETCPUCOUNTER function block from... |
| FN F_GetTestSuiteNameFromTestInstancePath | |
| FN F_IsAnyEqualToUnionValue | |
| FN F_RemoveInstancePathAndProjectNameFromTestInstancePath | |
| FN IS_TEST_FINISHED | Check if a certain test in the current suite is finished |
| FN RUN | This function runs all test suites that have been initialized. The test suites are run in parallel (all at once). |
| FN RUN_IN_SEQUENCE | This function runs all test suites that have been initialized. The test suites are run in sequence (one after the other). |
| FN TCUNIT_ADSLOGSTR | This function allows to put ADS strings into the TcUnit ADS message buffer. If ADSLOGSTR() is used directly, the... |
| FN TEST | This function declares a new test (if it has not been already declared in an earlier cycle) |
| FN TEST_FINISHED | Sets the currently running test as finished |
| FN TEST_FINISHED_NAMED | Sets a test defined by TestName as finished. Note that the TestName-input must match a TestName that has been... |
| FN TEST_ORDERED | This function declares a new ordered test (if it has not been already declared in an earlier cycle). The test... |
| FN WRITE_PROTECTED_BOOL | |
| FN WRITE_PROTECTED_BYTE | |
| FN WRITE_PROTECTED_DATE | |
| FN WRITE_PROTECTED_DATE_AND_TIME | |
| FN WRITE_PROTECTED_DINT | |
| FN WRITE_PROTECTED_DWORD | |
| FN WRITE_PROTECTED_INT | |
| FN WRITE_PROTECTED_LINT | |
| FN WRITE_PROTECTED_LREAL | |
| FN WRITE_PROTECTED_LWORD | |
| FN WRITE_PROTECTED_REAL | |
| FN WRITE_PROTECTED_SINT | |
| FN WRITE_PROTECTED_STRING | |
| FN WRITE_PROTECTED_TIME | |
| FN WRITE_PROTECTED_TIME_OF_DAY | |
| FN WRITE_PROTECTED_UDINT | |
| FN WRITE_PROTECTED_UINT | |
| FN WRITE_PROTECTED_ULINT | |
| FN WRITE_PROTECTED_USINT | |
| FN WRITE_PROTECTED_WORD | |
| FN WRITE_PROTECTED_WSTRING |
Interfaces
| Name | Description |
|---|---|
| ITF I_AssertMessageFormatter | |
| ITF I_TestResultLogger | |
| ITF I_TestResults |
Global Variable Lists
| Name | Description |
|---|---|
| GVL GVL_Param_TcUnit | |
| GVL GVL_TcUnit | |
| GVL Global_Version | This function has been automatically generated from the project information. |
Structures
| Name | Description |
|---|---|
| ST ST_AdsLogStringMessage | |
| ST ST_AssertArrayResult | |
| ST ST_AssertArrayResultInstances | |
| ST ST_AssertResult | |
| ST ST_AssertResultInstances | |
| ST ST_TestCaseResult | |
| ST ST_TestSuiteResult | |
| ST ST_TestSuiteResults | |
| ST U_ExpectedOrActual |
Enumerations
| Name | Description |
|---|---|
| ENUM E_AssertionType | |
| ENUM E_XmlError |