FB_TestResults Function Block
Implements I_TestResults
This function block holds results of the complete test run, i.e. results for all test suites
Variables
| Name | Type | Description |
|---|---|---|
TestSuiteResults |
ST_TestSuiteResults | |
StoringTestSuiteResultNumber |
UINT(1..GVL_Param_TcUnit.MaxNumberOfTestSuites) | |
StoringTestSuiteTrigger |
R_TRIG | |
StoredTestSuiteResults |
BOOL | |
StoredGeneralTestResults |
BOOL | |
NumberOfTestsToAnalyse |
UINT(1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite) | |
TestSuiteName |
T_MaxString | |
TestName |
T_MaxString | |
TestsInTestSuiteCounter |
UINT(1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite) | |
TestToBeStored |
FB_Test | |
GeneralTestResultsTestSuitesCounter |
UINT(1..GVL_Param_TcUnit.MaxNumberOfTestSuites) |
Methods
GetAreTestResultsAvailable
PUBLIC
Returns whether the storing of the test results is finished
Implementation
GetAreTestResultsAvailable := (StoredTestSuiteResults AND StoredGeneralTestResults);
GetTestSuiteResults
PUBLIC
Implementation
GetTestSuiteResults REF=TestSuiteResults;
Used by
Declaration source
// This function block holds results of the complete test run, i.e. results for all test suites
FUNCTION_BLOCK FB_TestResults IMPLEMENTS I_TestResults
VAR
// Test results
TestSuiteResults : ST_TestSuiteResults;
// Misc variables
StoringTestSuiteResultNumber : UINT(1..GVL_Param_TcUnit.MaxNumberOfTestSuites);
StoringTestSuiteTrigger : R_TRIG;
StoredTestSuiteResults : BOOL;
StoredGeneralTestResults : BOOL;
NumberOfTestsToAnalyse : UINT(1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite);
END_VAR
VAR_TEMP
TestSuiteName : T_MaxString;
TestName : T_MaxString;
TestsInTestSuiteCounter : UINT(1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite);
TestToBeStored : FB_Test;
GeneralTestResultsTestSuitesCounter : UINT(1..GVL_Param_TcUnit.MaxNumberOfTestSuites);
END_VAR