This class contains specification for test points. More...
#include <CTestPoint.h>
Public Types | |
| enum | ETestPointSections |
| 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 |
| CTestPoint () | |
| CTestPoint (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| std::string | getClassName () const |
| int | getConditionCount () |
| Returns condition count for test-point. | |
| std::string | getConditionExpr () |
| Returns condition expression for test-point. | |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| isys::CTestMinMaxSPtr | getHitLimits (bool isConst) |
| Returns hit limits. | |
| const std::string | getId () |
| Returns the test point id. | |
| CTestLocationSPtr | getLocation (bool isConst) |
| Returns location of test point. | |
| isys::CTestLogSPtr | getLogConfig (bool isConst) |
| Returns logging configuration. | |
| CTestBaseSPtr | getParent () const |
| Returns parent. | |
| std::string | getScriptFunctionName () |
| Returns script function to be called when test-point is hit. | |
| int | getSectionId (const std::string §ionName) |
| Returns section ID for the given section name. | |
| CTestBaseListSPtr | getSteps (bool isConst) |
| Returns list of objects, which contain information about expected values and modifications of variable to perform. | |
| 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. | |
| iconnect::ETristate | isActive () |
| Returns true, if test point is active during test execution. | |
| bool | isCustomActivation () |
| Returns true, if test point will not be activated before test execution, but during test execution from custom script. | |
| 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. | |
| void | setActive (iconnect::ETristate isActive) |
If parameter is true, then the test point is active during test execution. | |
| 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 | setCustomActivation (iconnect::ETristate isActive) |
If parameter is true, then the test point will not be activated before test execution, but during test execution from custom script. | |
| void | setEnumTagValue (int section, int enumValue) |
| Sets value of enum type. | |
| void | setId (const std::string &testPointId) |
| Sets the test point id. | |
| virtual void | setMainMapStyle (isys::IEmitter::EYamlStyle mappingStyle) |
| Sets style of the mapping for complete object. | |
| void | setParent (CTestBaseSPtr parent) |
| Sets parent. | |
| void | setScriptFunc (const std::string &scriptFunc) |
| Sets script function to be called when test-point is hit. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
| std::string | validate () |
| Validates consistency of data in object. | |
| ~CTestPoint () | |
Static Public Member Functions | |
| static CTestPointSPtr | cast (const 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 contains specification for test points.
Test points are implemented as breakpoints at arbitrary points in executable, where test execution stops, expresisons can be evaluated to test target state, and variables modified to inject fault conditions. It is also possible to log values and include them to test reports.
| isys::CTestPoint::CTestPoint | ( | ) |
| isys::CTestPoint::CTestPoint | ( | const CTestBaseSPtr & | parent | ) |
Initializes new instance.
| parent | an instance of parent CTestSpecification class. |
| isys::CTestPoint::~CTestPoint | ( | ) |
|
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.
|
inherited |
| int isys::CTestPoint::getConditionCount | ( | ) |
Returns condition count for test-point.
| std::string isys::CTestPoint::getConditionExpr | ( | ) |
Returns condition expression for test-point.
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
|
inherited |
Returns value of enum type.
| isys::CTestMinMaxSPtr isys::CTestPoint::getHitLimits | ( | bool | isConst | ) |
Returns hit limits.
| const std::string isys::CTestPoint::getId | ( | ) |
Returns the test point id.
| CTestLocationSPtr isys::CTestPoint::getLocation | ( | bool | isConst | ) |
Returns location of test point.
| isys::CTestLogSPtr isys::CTestPoint::getLogConfig | ( | bool | isConst | ) |
Returns logging configuration.
|
inherited |
Returns parent.
| std::string isys::CTestPoint::getScriptFunctionName | ( | ) |
Returns script function to be called when test-point is hit.
|
inherited |
Returns section ID for the given section name.
| CTestBaseListSPtr isys::CTestPoint::getSteps | ( | bool | isConst | ) |
Returns list of objects, which contain information about expected values and modifications of variable to perform.
|
inherited |
|
inherited |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
| iconnect::ETristate isys::CTestPoint::isActive | ( | ) |
Returns true, if test point is active during test execution.
| bool isys::CTestPoint::isCustomActivation | ( | ) |
Returns true, if test point will not be activated before test execution, but during test execution from custom script.
This functionality can be used when the order of test point hits is known, and there are not enough hardware breakpoints available.
|
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.
| void isys::CTestPoint::setActive | ( | iconnect::ETristate | isActive | ) |
If parameter is true, then the test point is active during test execution.
|
virtualinherited |
| void isys::CTestPoint::setConditionCount | ( | int | conditionCount | ) |
Sets condition count for test-point.
| void isys::CTestPoint::setConditionExpr | ( | const std::string & | expr | ) |
Sets condition expression for test-point.
| void isys::CTestPoint::setCustomActivation | ( | iconnect::ETristate | isActive | ) |
If parameter is true, then the test point will not be activated before test execution, but during test execution from custom script.
This functionality can be used when the order of test point hits is known, and there are not enough hardware breakpoints available.
|
inherited |
Sets value of enum type.
| void isys::CTestPoint::setId | ( | const std::string & | testPointId | ) |
Sets the test point id.
|
virtualinherited |
Sets style of the mapping for complete object.
|
inherited |
Sets parent.
| void isys::CTestPoint::setScriptFunc | ( | const std::string & | scriptFunc | ) |
Sets script function to be called when test-point is hit.
|
virtualinherited |
Returns object data as YAML string.
|
virtual |