The graphic shows the ETEST objects available in the Logic Builder Tools tree as subnodes of an Application node:
ETEST object |
Description |
Legend item |
---|---|---|
TestCase |
oCentral component of ETEST. oBasically a function block. It uses the object-oriented extensions of the IEC 61131-3 standard that are available in Logic Builder. oImplements the interface IF_TestCase. |
1 |
TestManager |
oA test manager is an administration function block. Test cases and test series are performed by this function block as a sub process of the associated application. oIf tests shall be executed for an application, the following conditions must be fulfilled: oA TestManager object must be available as a subnode of the Application node. oA task must reference this object. Both are automatically created if you insert an ETEST object under an Application node. |
2 |
TestResource |
oEncapsulates the access to as well as the initialization of hardware and larger data structures used by test cases. ETEST creates only one instance per resource. ETEST initializes the resources before they are used (by calling their Prepare method). ETEST de-initializes resources after they have been used (by calling their CleanUp method). oBefore a test case is executed, ETEST verifies that the resources integrated into this test case are initialized and that the case is given a reference to the instance of the resource. After the test case has been completed, ETEST verifies that the resource is de-initialized again. oFurther resources can be integrated in resources (as in test cases). Cyclical dependencies between resources are not allowed. |
3 |
TestSeries |
oCan be used for grouping test cases. oCan reference test cases or further test series. |
4 |
TestSet |
oA test set is a table. Each row defines one test run. Each column maps to one parameter used throughout the test. oUses the IEC-STRUCT to define the parameter sets. Each variable in the IEC-STRUCT defines one parameter. You can fill the table cells with the initialization values that are used for each test run. oUsing an IEC-STRUCT allows you to define specific parameter sets or reuse existing IEC-STRUCT (for example, from a library). |
5 |
NOTE:
An ETEST object can be executed if the following conditions apply:
oIt is a TestCase or a TestSeries object that is a subnode of the Application node.
oIt has been selected by an executable TestSeries.
Example: A TestCase which is a node of the Tools tree can be executed if it is selected in a TestSeries which is a subnode of an Application node.