winIDEA SDK
isys::CTestStopCondition Class Reference

Description

This class defines stop condition for system tests.

There exist three possibilities:

  • set breakpoint: target will stop on the breakpoint
  • set timeout: target will be stopped after the timeout
  • breakpoint after timeout: breakpoint will be set after the specified timeout, and target will stop when the breakpoint is hit

This condition can be applied before system test to initialize the target, and as test termination condition.

#include <CTestStopCondition.h>

Inheritance diagram for isys::CTestStopCondition:
isys::CTestBase

Public Types

enum  EStopCondSections
 Ids of test specification sections.
 

Public Member Functions

 CTestStopCondition (const CTestBaseSPtr &parent)
 Initializes new instance. More...
 
bool isMerged () const
 Returns true, if the CTestSpecification section containing this object is merged. More...
 
EStopType getStopType ()
 Returns stop type.
 
int getTimeout ()
 Returns timeout in milliseconds.
 
std::string getRtExpression ()
 Returns timeout in milliseconds.
 
int getConditionCount ()
 Returns condition count for breakpoint.
 
std::string getConditionExpr ()
 Returns condition expression for breakpoint.
 
CTestLocationSPtr getBreakpointLocation (bool isConst)
 Returns location of breakpoint.
 
void setStopType (EStopType stopType)
 Sets stop type.
 
void setTimeout (int timeout)
 Sets timeout in milliseconds.
 
void setConditionCount (int conditionCount)
 Sets condition count for test-point.
 
void setConditionExpr (const std::string &expr)
 Sets condition expression for test-point.
 
void setRtExpression (const std::string &rtExpression)
 Returns timeout in milliseconds.
 
virtual bool isEmpty () const
 This method returns true, if the object contains no data.
 
virtual void serialize (const isys::IEmitterSPtr &emitter)
 Sends contents of this class to emitter.
 
virtual std::string toString ()
 Returns object data as YAML string.
 

Static Public Member Functions

static CTestStopConditionSPtr cast (CTestBaseSPtr &testBase)
 Casts the given object to this class. More...
 

Protected Member Functions

void setStaticTagsAsConst ()
 This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ...
 

Constructor & Destructor Documentation

◆ CTestStopCondition()

isys::CTestStopCondition::CTestStopCondition ( const CTestBaseSPtr parent)

Initializes new instance.

Parameters
parentan instance of parent CTestPoint class.

Member Function Documentation

◆ cast()

static CTestStopConditionSPtr isys::CTestStopCondition::cast ( 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.

◆ isMerged()

bool isys::CTestStopCondition::isMerged ( ) const
virtual

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


Reimplemented from isys::CTestBase.