FB_TestCaseBase

FB_TestCaseBase 1:

FB_TestCaseBase is the base function block for new test cases. This function block already includes a wide range of methods related to test case management. These are described in the following chapter.

Attributes can be used to describe the properties of a test case in greater detail. The following attributes are possible for a test case:

{ attribute 'Name':='Name des Testfalls' }

Defines the name of a test case as it appears in the test clients. If no name is specified, the name of the test function block is used automatically. This is not the instance name.

{ attribute 'Timeout':='definiertes Timeout' }

Defines the time-out for a test case. If no value is specified here, the default value specified in the parameter table of the Tc3_PlcTestFramework library is used automatically.

FB_TestCaseBase 2:
{ attribute 'Owner':='Owner des Testfalls' }

Defines the owner of a test case. Based on this, the test cases can be filtered and executed.

{ attribute 'Category':='hierarchische Kategorie' }

Define hierarchical categories separated by “/” or “\” allowing test cases to be grouped accordingly.

FB_TestCaseBase 3: