|
| isys::CTestStubSPtr | callStubs (bool isRunNativeCustomFunc, iconnect::StrVector &scriptParams, isys::CTestPointResultSPtr tpResult) |
| void | checkStopConditionExpr (isys::CTestStopConditionSPtr &stopCondition) |
| void | checkStopConditionStop (isys::CTestStopConditionSPtr &stopCondition) |
| void | clearTest () |
| void | closeAnalyzer () |
| | Closes analyzer document if configured so.
|
| | CTestCase (isys::ConnectionMgrSPtr &connectionMgr) |
| | CTestCase (isys::ConnectionMgrSPtr &connectionMgr, isys::CTestHostVarsSPtr &hostvars) |
| | Initializes object with the given connection to winIDEA, and host variables.
|
| void | deleteStopConditionBP (isys::CTestStopConditionSPtr &stopCondition, const std::string &testPointOrTestCaseId) |
| isys::CTestPointSPtr | execTestPointEvalAssign (ITestCaseControllerSPtr testCaseCtrl, iconnect::StrVector &scriptParams, isys::CTestPointResultSPtr &tpResult) |
| CDebugFacadeSPtr | getDebugFacade () |
| CTestHostVarsSPtr | getHostVars () |
| ITestCaseControllerSPtr | getTestController () |
| isys::CTestResultSPtr | getTestResults () |
| | This method returns test result based on data stored internally in this class, including test specification.
|
| isys::CTestResultSPtr | getTestResults (isys::CTestSpecificationSPtr &testSpecification) |
| | Deprecated.
|
| void | handleException () |
| bool | isSystemTestStopOnBP () |
| void | itestCpp (const std::string &yamlSpec, bool isDebug=false) |
| | This method parses test specification given in YAML format, and then calls method runTest().
|
| void | itestCpp (const std::string &yamlSpec, iconnect::StrVector &differences, bool isDebug=false) |
| | Deprecated.
|
| std::string | replaceHostVariables (const std::string &expression) |
| void | runTest (isys::CTestSpecificationSPtr &testSpec, iconnect::StrVector &differences, bool isDebug, const isys::CTestFilterSPtr &testFilter) |
| | Deprecated.
|
| void | runTest (isys::CTestSpecificationSPtr &testSpec, iconnect::StrVector &differences, bool isDebug=false) |
| | Deprecated.
|
| void | runTest (isys::CTestSpecificationSPtr &testSpec, iconnect::StrVector &differences, int testTimeout, bool isDebug, const isys::CTestFilterSPtr &testFilter) |
| | Deprecated.
|
| void | runTest (isys::CTestSpecificationSPtr &testSpec, iconnect::StrVector &differences, int testTimeout, bool isDebug, const isys::CTestFilterSPtr &testFilter, const isys::CTestFilterControllerSPtr &filterCtrl) |
| | Deprecated.
|
| void | runTest (isys::CTestSpecificationSPtr &testSpec, int testTimeout, bool isDebug, const isys::CTestFilterSPtr &testFilter) |
| | Runs single test specification.
|
| void | runTest (isys::CTestSpecificationSPtr &testSpec, int testTimeout, bool isDebug, const isys::CTestFilterSPtr &testFilter, const isys::CTestFilterControllerSPtr &filterCtrl) |
| | Runs single test specification.
|
| void | runTest_exec_begin () |
| void | runTest_exec_end () |
| bool | runTest_exec_langSpecific () |
| void | runTest_exec_loopStart (isys::CTestSpecificationSPtr &testSpec, bool isResumeCoverage, bool isStubOrTestPoint) |
| bool | runTest_exec_waitForStop (isys::CTestSpecificationSPtr &testSpec, int unitTestTimeout) |
| void | runTest_finalize (iconnect::StrVector &differences, bool isDryRun, iconnect::StrVector &analyzerFilesToMerge) |
| bool | runTest_init_target (isys::CTestSpecificationSPtr &testSpec, bool isDebug, bool isTestBatchOn) |
| void | runTest_init_test (bool isInitAnalyzers, bool isMeasureStackUsage, int testTimeout) |
| void | setEnableStub (CTestSpecificationSPtr &testSpec, const std::string &stubbedFunction, bool isEnabled) |
| | Enables or disables existing stub.
|
| void | setEnableTestPoint (CTestSpecificationSPtr &testSpec, const std::string &tpId, bool isEnabled) |
| | Enables or disables existing test point.
|
| void | setStopConditionBP (isys::CTestStopConditionSPtr &stopCondition, const std::string &testPointOrTestCaseId) |
| void | setStopConditionForSysTest (const isys::CTestSpecificationSPtr &testSpec) |
| void | setTargetException (bool isTargetException) |
| void | stopTest () |
| void | waitForAnalyzerToDownloadData (int timeout=0) |
| | ~CTestCase () |
This class is the main class of the isystem.test
framework.
It connects together classes with test specification and target controllers by providing methods for test execution.
Methods is itestCpp(), and runTest() execute test case, while method getTestResults() returns result.
Note: Wrappers for other languages, for example Python and Java, contain their replacement of this class.
Python example for class PTestCase, which replaces this class in Python: itest_sample.py
| void isys::CTestCase::runTest |
( |
isys::CTestSpecificationSPtr & | testSpec, |
|
|
int | testTimeout, |
|
|
bool | isDebug, |
|
|
const isys::CTestFilterSPtr & | testFilter ) |
Runs single test specification.
It sets the environment on the target, calls the function to be tested, handles stubs, and finally verifies the result. Because of callbacks for init, end,
and stub function, it can be used only if callbacks are implemented in C++. If any of these methods is specified in test specification (tags initFunc, endFunc, stub [func]), method setCallbackObject() must be called with non-NULL argument before this method.
- Parameters
-
| testSpec | test specification to be executed |
| testTimeout | test execution timeout in milliseconds. Value 0 means infinite timeout. |
| isDebug | if true, then test is not reset in case of error. If execution stops at user breakpoint, it is then possible to check variables and step through the code. |
| testFilter | if not empty, test specification must match the condition specified by the filter to be executed. If empty, no filtering is performed and test spec is executed if not empty or abstract. Empty filter can be created with default ctor CTestFilter(). Note: Partition and module are not used for filtering. Call overload with CTestFilterController for complete filtering. |
- Since
- 9.12.288
| void isys::CTestCase::runTest |
( |
isys::CTestSpecificationSPtr & | testSpec, |
|
|
int | testTimeout, |
|
|
bool | isDebug, |
|
|
const isys::CTestFilterSPtr & | testFilter, |
|
|
const isys::CTestFilterControllerSPtr & | filterCtrl ) |
Runs single test specification.
It sets the environment on the target, calls the function to be tested, handles stubs, and finally verifies the result. Because of callbacks for init, end,
and stub function, it can be used only if callbacks are implemented in C++. If any of these methods is specified in test specification (tags initFunc, endFunc, stub [func]), method setCallbackObject() must be called with non-NULL argument before this method.
Call getTestResults() after this method returns to get test results.
- Parameters
-
| testSpec | test specification to be executed |
| testTimeout | test execution timeout in milliseconds. Value 0 means infinite timeout. |
| isDebug | if true, then test is not reset in case of error. If execution stops at user breakpoint, it is then possible to check variables and step through the code. |
| testFilter | if not empty, test specification must match the condition specified by the filter to be executed. If empty, no filtering is performed and test spec is executed if not empty or abstract. Empty filter can be created with default ctor CTestFilter(). |
| filterCtrl | class used for performing filtering. If null, no filtering is performed. |
- Since
- 9.12.288