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. This applies, for example, to the method FB_init, in which the function block automatically registers with the test controller. You do not need to–and should not–override this method when implementing a new test case. In addition, methods are available for, among other things, comparing the results or advancing the test state machine. These are described below. The base test case also has the following internal variables:

Name

Type

Default value

Meaning

Variables passed via attributes or the FB_init method.

sName

STRING(255)

-

Test Case Name

Timeout

TIME

0 s

Test case timeout

sOwner

STRING(255)

-

Test Case Owner

Internal variables that can be modified via methods.

nCurStep

UDINT

0

Status variable for a possible step sequence

bDone

BOOL

FALSE

Indicates whether the function block has completely finished executing.

bError

BOOL

TRUE

Error Analysis of the function block call

sFinalMessage

STRING(255)

 

Message that is passed after the test.

sInstName

STRING(255)

 

Instance name of the function block (determined automatically)