This class defines stop condition for system tests. More...
#include <CTestStopCondition.h>
Public Types | |
| enum | EStopCondSections |
| Ids of test specification sections. | |
Public Member Functions | |
| virtual void | assign (const CTestObjectSPtr &base) |
| Assigns members of base to this. | |
| bool | containsSection (int section) const |
| Returns true, if the specified section exists for this object. | |
| virtual CTestObjectSPtr | copy () const |
| Creates a deep copy of this object. | |
| virtual CTestBaseSPtr | createInstance (const CTestBaseSPtr &parent) const |
| CTestBaseSPtr | createTestBase (int section, size_t lineNo) const |
| CTestStopCondition () | |
| CTestStopCondition (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| CTestLocationSPtr | getBreakpointLocation (bool isConst) |
| Returns location of breakpoint. | |
| std::string | getClassName () const |
| int | getConditionCount () |
| Returns condition count for breakpoint. | |
| std::string | getConditionExpr () |
| Returns condition expression for breakpoint. | |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| CTestBaseSPtr | getParent () const |
| Returns parent. | |
| std::string | getRtExpression () |
| Returns timeout in milliseconds. | |
| int | getSectionId (const std::string §ionName) |
| Returns section ID for the given section name. | |
| EStopType | getStopType () |
| Returns stop type. | |
| CTestBaseSPtr | getTestBase (int section, bool isConst) |
| CTestBaseListSPtr | getTestBaseList (int section, bool isConst) |
| CTestObject::ETestObjType | getTestObjType () const |
| Returns type of this object, which is CTestObject::ETestBase. | |
| int | getTimeout () |
| Returns timeout in milliseconds. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| bool | isMerged () const |
| Returns true, if the CTestSpecification section containing this object is merged. | |
| bool | isSectionEmpty (int sectionId) |
| Returns true, if the given section is empty. | |
| virtual bool | isSerializedAsList (bool isParsing) |
| Returns true if object should be serialized as list, for example CTestFunction. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| virtual void | setComment (int section, int idx, const std::string &nlComment, const std::string &eolComment) |
| void | setConditionCount (int conditionCount) |
| Sets condition count for test-point. | |
| void | setConditionExpr (const std::string &expr) |
| Sets condition expression for test-point. | |
| void | setEnumTagValue (int section, int enumValue) |
| Sets value of enum type. | |
| virtual void | setMainMapStyle (isys::IEmitter::EYamlStyle mappingStyle) |
| Sets style of the mapping for complete object. | |
| void | setParent (CTestBaseSPtr parent) |
| Sets parent. | |
| void | setRtExpression (const std::string &rtExpression) |
| Returns timeout in milliseconds. | |
| void | setStopType (EStopType stopType) |
| Sets stop type. | |
| void | setTimeout (int timeout) |
| Sets timeout in milliseconds. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
| ~CTestStopCondition () | |
Static Public Member Functions | |
| static CTestStopConditionSPtr | cast (CTestBaseSPtr &testBase) |
| Casts the given object to this class. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class defines stop condition for system tests.
There exist three possibilities:
This condition can be applied before system test to initialize the target, and as test termination condition.
| isys::CTestStopCondition::CTestStopCondition | ( | ) |
| isys::CTestStopCondition::CTestStopCondition | ( | const CTestBaseSPtr & | parent | ) |
| isys::CTestStopCondition::~CTestStopCondition | ( | ) |
|
virtualinherited |
|
static |
Casts the given object to this class.
Returns NULL if input is NULL.
| IllegalArgumentException | if input object is not instance of this class. |
|
inherited |
Returns true, if the specified section exists for this object.
|
virtualinherited |
Creates a deep copy of this object.
Parent is set.
|
virtual |
Implements isys::CTestBase.
|
virtual |
Reimplemented from isys::CTestBase.
| CTestLocationSPtr isys::CTestStopCondition::getBreakpointLocation | ( | bool | isConst | ) |
Returns location of breakpoint.
|
inherited |
| int isys::CTestStopCondition::getConditionCount | ( | ) |
Returns condition count for breakpoint.
| std::string isys::CTestStopCondition::getConditionExpr | ( | ) |
Returns condition expression for breakpoint.
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
|
inherited |
Returns value of enum type.
|
inherited |
Returns parent.
| std::string isys::CTestStopCondition::getRtExpression | ( | ) |
Returns timeout in milliseconds.
|
inherited |
Returns section ID for the given section name.
| EStopType isys::CTestStopCondition::getStopType | ( | ) |
Returns stop type.
|
inherited |
|
inherited |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
| int isys::CTestStopCondition::getTimeout | ( | ) |
Returns timeout in milliseconds.
|
virtualinherited |
This method returns true, if the object contains no data.
|
virtual |
Returns true, if the CTestSpecification section containing this object is merged.
Reimplemented from isys::CTestBase.
|
inherited |
Returns true, if the given section is empty.
|
virtualinherited |
Returns true if object should be serialized as list, for example CTestFunction.
Reimplemented in isys::CTestFunction.
|
virtualinherited |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
|
virtualinherited |
| void isys::CTestStopCondition::setConditionCount | ( | int | conditionCount | ) |
Sets condition count for test-point.
| void isys::CTestStopCondition::setConditionExpr | ( | const std::string & | expr | ) |
Sets condition expression for test-point.
|
inherited |
Sets value of enum type.
|
virtualinherited |
Sets style of the mapping for complete object.
|
inherited |
Sets parent.
| void isys::CTestStopCondition::setRtExpression | ( | const std::string & | rtExpression | ) |
Returns timeout in milliseconds.
| void isys::CTestStopCondition::setStopType | ( | EStopType | stopType | ) |
Sets stop type.
| void isys::CTestStopCondition::setTimeout | ( | int | timeout | ) |
Sets timeout in milliseconds.
|
virtualinherited |
Returns object data as YAML string.