winIDEA SDK
Loading...
Searching...
No Matches
isys::CTestPoint Class Reference

This class contains specification for test points. More...

#include <CTestPoint.h>

Inheritance diagram for isys::CTestPoint:
isys::CTestBase

Public Types

enum  ETestPointSections
 Ids of test specification sections.

Public Member Functions

 CTestPoint (const CTestBaseSPtr &parent)
 Initializes new instance.
int getConditionCount ()
 Returns condition count for test-point.
std::string getConditionExpr ()
 Returns condition expression for test-point.
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.
std::string getScriptFunctionName ()
 Returns script function to be called when test-point is hit.
CTestBaseListSPtr getSteps (bool isConst)
 Returns list of objects, which contain information about expected values and modifications of variable to perform.
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.
bool isEmpty () const override
 This method returns true, if the object contains no data.
bool isMerged () const override
 Returns true, if the CTestSpecification section containing this object is merged.
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.
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 setId (const std::string &testPointId)
 Sets the test point id.
void setScriptFunc (const std::string &scriptFunc)
 Sets script function to be called when test-point is hit.
std::string toString () override
 Returns object data as YAML string.
std::string validate () override
 Validates consistency of data in object.

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, ...

Detailed Description

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.

 

Constructor & Destructor Documentation

◆ CTestPoint()

isys::CTestPoint::CTestPoint ( const CTestBaseSPtr & parent)

Initializes new instance.

Parameters
parentan instance of parent CTestSpecification class.
Since
9.12.288

Member Function Documentation

◆ cast()

CTestPointSPtr isys::CTestPoint::cast ( const CTestBaseSPtr & testBase)
static

Casts the given object to this class.

Returns NULL if input is NULL.

Exceptions
IllegalArgumentExceptionif input object is not instance of this class.

◆ getConditionCount()

int isys::CTestPoint::getConditionCount ( )

Returns condition count for test-point.

Since
9.12.288

◆ getConditionExpr()

std::string isys::CTestPoint::getConditionExpr ( )

Returns condition expression for test-point.

Since
9.12.288

◆ getHitLimits()

isys::CTestMinMaxSPtr isys::CTestPoint::getHitLimits ( bool isConst)

Returns hit limits.

Since
9.12.288

◆ getId()

const std::string isys::CTestPoint::getId ( )

Returns the test point id.

Since
9.12.288

◆ getLocation()

CTestLocationSPtr isys::CTestPoint::getLocation ( bool isConst)

Returns location of test point.

Since
9.12.288

◆ getLogConfig()

isys::CTestLogSPtr isys::CTestPoint::getLogConfig ( bool isConst)

Returns logging configuration.

Since
9.12.288

◆ getScriptFunctionName()

std::string isys::CTestPoint::getScriptFunctionName ( )

Returns script function to be called when test-point is hit.

Since
9.12.288

◆ getSteps()

CTestBaseListSPtr isys::CTestPoint::getSteps ( bool isConst)

Returns list of objects, which contain information about expected values and modifications of variable to perform.

Since
9.12.288

◆ isActive()

iconnect::ETristate isys::CTestPoint::isActive ( )

Returns true, if test point is active during test execution.

Since
9.12.288

◆ isCustomActivation()

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.

Since
9.12.288

◆ isEmpty()

bool isys::CTestBase::isEmpty ( ) const
overrideinherited

This method returns true, if the object contains no data.

Since
9.12.288

◆ isMerged()

bool isys::CTestPoint::isMerged ( ) const
overridevirtual

Returns true, if the CTestSpecification section containing this object is merged.


Since
9.12.288

Reimplemented from isys::CTestBase.

◆ serialize()

virtual void isys::CTestBase::serialize ( const isys::IEmitterSPtr & emitter)
virtualinherited

Sends contents of this class to emitter.

Since
9.12.288

Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.

◆ setActive()

void isys::CTestPoint::setActive ( iconnect::ETristate isActive)

If parameter is true, then the test point is active during test execution.

Since
9.12.288

◆ setConditionCount()

void isys::CTestPoint::setConditionCount ( int conditionCount)

Sets condition count for test-point.

Since
9.12.288

◆ setConditionExpr()

void isys::CTestPoint::setConditionExpr ( const std::string & expr)

Sets condition expression for test-point.

Since
9.12.288

◆ setCustomActivation()

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.

Since
9.12.288

◆ setId()

void isys::CTestPoint::setId ( const std::string & testPointId)

Sets the test point id.

Since
9.12.288

◆ setScriptFunc()

void isys::CTestPoint::setScriptFunc ( const std::string & scriptFunc)

Sets script function to be called when test-point is hit.

Since
9.12.288

◆ toString()

std::string isys::CTestBase::toString ( )
overrideinherited

Returns object data as YAML string.

Since
9.12.288

◆ validate()

std::string isys::CTestPoint::validate ( )
overridevirtual

Validates consistency of data in object.

Since
9.12.288

Reimplemented from isys::CTestBase.