winIDEA SDK
isys::CTestCaseTargetInitConfig Class Reference

Description

This class defines target initialization steps to be performed before each test case.

#include <CTestEnvironmentConfig.h>

Inheritance diagram for isys::CTestCaseTargetInitConfig:
isys::CTestBase

Public Types

enum  ETestCaseTargetInitSectionIds
 Ids of test specification sections.
 

Public Member Functions

CTestBaseSPtr createInstance (const CTestBaseSPtr &parent) const
 Creates a new empty instance of this class.
 
bool isDownloadOnTCInit ()
 If E_TRUE is returned, download is performed before each test case. More...
 
bool isResetOnTCInit ()
 If E_TRUE is returned, reset is performed before each test case. More...
 
bool isRunOnTCInit ()
 If E_TRUE is returned, target is started before each test case. More...
 
std::string getStopFunctionOnTCInit ()
 Returns the name of the function to stop on in init sequence before each test case. More...
 
void setDownloadOnTCInit (iconnect::ETristate isDownload)
 
void setResetOnTCInit (iconnect::ETristate isReset)
 
void setRunOnTCInit (iconnect::ETristate isRun)
 
void setStopFunctionOnTCInit (const std::string &stopFunction)
 
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 CTestCaseTargetInitConfigSPtr cast (const 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, ...
 

Member Function Documentation

◆ cast()

static CTestCaseTargetInitConfigSPtr isys::CTestCaseTargetInitConfig::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.

◆ getStopFunctionOnTCInit()

std::string isys::CTestCaseTargetInitConfig::getStopFunctionOnTCInit ( )

Returns the name of the function to stop on in init sequence before each test case.

Has no effect if isRunOnTCInit() returns false.

◆ isDownloadOnTCInit()

bool isys::CTestCaseTargetInitConfig::isDownloadOnTCInit ( )

If E_TRUE is returned, download is performed before each test case.

Default value (E_DEFAULT) means false.

◆ isResetOnTCInit()

bool isys::CTestCaseTargetInitConfig::isResetOnTCInit ( )

If E_TRUE is returned, reset is performed before each test case.

Default value (E_DEFAULT) means false.

◆ isRunOnTCInit()

bool isys::CTestCaseTargetInitConfig::isRunOnTCInit ( )

If E_TRUE is returned, target is started before each test case.

Default value (E_DEFAULT) means false.

◆ setDownloadOnTCInit()

void isys::CTestCaseTargetInitConfig::setDownloadOnTCInit ( iconnect::ETristate  isDownload)

◆ setResetOnTCInit()

void isys::CTestCaseTargetInitConfig::setResetOnTCInit ( iconnect::ETristate  isReset)
See also
isResetOnTCInit

◆ setRunOnTCInit()

void isys::CTestCaseTargetInitConfig::setRunOnTCInit ( iconnect::ETristate  isRun)
See also
isRunOnTCInit

◆ setStopFunctionOnTCInit()

void isys::CTestCaseTargetInitConfig::setStopFunctionOnTCInit ( const std::string &  stopFunction)