Testcase_Base (FB)

FUNCTION_BLOCK Testcase_Base EXTENDS CBM.ETrigA

Base class for a simple test case.

To implement a testcase:

  1. Extend your test from this function block

  2. Add {attribute ‘test’} to the FB, so that it is identified as a test

  3. Optionally add any of the following attributes as desired

    • {attribute 'testcategory':='<add categories here>'}

    • {attribute 'testcasename':='<new name>'} to use a testcasename other then the FB name

    • {attribute 'testcasetimeout':='<timeout in ms>'} to alter the default timeout for this test

  4. Add a call to SUPER^() to your implementation of the FB.

  5. Overwrite method Execute() to implement your test

  6. Optionally overwrite any of the following methods as desired

InOut:

Scope

Name

Type

Output

xFinished

BOOL

Methods:

Structure: