ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::testing::TestStepCmd Class Reference

#include <TestStep.hpp>

Inheritance diagram for anna::testing::TestStepCmd:
Inheritance graph
[legend]
Collaboration diagram for anna::testing::TestStepCmd:
Collaboration graph
[legend]

Public Member Functions

 TestStepCmd (TestCase *testCase)
 
 ~TestStepCmd ()
 
void setThreadRunning ()
 
void setThreadNotRunning ()
 
bool threadRunning () const
 
bool threadNotRunning () const
 
void setResultCode (int rc)
 
int getResultCode () const
 
void setErrorMsg (const std::string &em)
 
const std::string & getErrorMsg () const
 
void setChildPid (pid_t pid)
 
const pid_t & getChildPid () const
 
void setScript (const std::string &script)
 
const std::string & getScript () const
 
bool do_execute ()
 
void do_complete ()
 
void do_reset ()
 
anna::xml::NodeasXML (anna::xml::Node *parent)
 
- Public Member Functions inherited from anna::testing::TestStep
 TestStep (TestCase *testCase)
 
virtual ~TestStep ()
 
const Type::_vgetType () const
 
const int & getNumber () const
 
bool isCompleted () const
 
anna::Millisecond getLapseMs () const
 
bool execute ()
 
void complete ()
 
void reset ()
 
void next ()
 
std::string asXMLString ()
 

Additional Inherited Members

- Static Public Member Functions inherited from anna::testing::TestStep
static const char * asText (const Type::_v type)
 
- Protected Member Functions inherited from anna::testing::TestStep
bool decodeMessage (bool trust=false)
 
- Protected Attributes inherited from anna::testing::TestStep
TestCasea_testCase
 
bool a_completed
 
Type::_v a_type
 
anna::DataBlock a_message
 
anna::diameter::codec::Messagea_messageCodec
 

Constructor & Destructor Documentation

◆ TestStepCmd()

anna::testing::TestStepCmd::TestStepCmd ( TestCase testCase)
inline
241 : TestStep(testCase), a_threadRunning(false), a_threadDeprecated(false), a_resultCode(-2)/*, a_output("")*/, a_errorMsg(""), a_childPid(-1) { a_type = Type::Cmd; }
Type::_v a_type
Definition: TestStep.hpp:83
Definition: TestStep.hpp:61
TestStep(TestCase *testCase)
Definition: TestStep.hpp:64

◆ ~TestStepCmd()

anna::testing::TestStepCmd::~TestStepCmd ( )
inline

Member Function Documentation

◆ asXML()

anna::xml::Node* anna::testing::TestStepCmd::asXML ( anna::xml::Node parent)
virtual

Reimplemented from anna::testing::TestStep.

◆ do_complete()

void anna::testing::TestStepCmd::do_complete ( )
virtual

◆ do_execute()

bool anna::testing::TestStepCmd::do_execute ( )
virtual

◆ do_reset()

void anna::testing::TestStepCmd::do_reset ( )
virtual

◆ getChildPid()

const pid_t& anna::testing::TestStepCmd::getChildPid ( ) const
inline
257 { return a_childPid; }

◆ getErrorMsg()

const std::string& anna::testing::TestStepCmd::getErrorMsg ( ) const
inline
253 { return a_errorMsg; }

◆ getResultCode()

int anna::testing::TestStepCmd::getResultCode ( ) const
inline
251 { return a_resultCode; }

◆ getScript()

const std::string& anna::testing::TestStepCmd::getScript ( ) const
inline
260 { return a_script; }

◆ setChildPid()

void anna::testing::TestStepCmd::setChildPid ( pid_t  pid)
inline
256 { a_childPid = pid; }

◆ setErrorMsg()

void anna::testing::TestStepCmd::setErrorMsg ( const std::string &  em)
inline
252 { a_errorMsg = em; }

◆ setResultCode()

void anna::testing::TestStepCmd::setResultCode ( int  rc)
inline
250 { a_resultCode = rc; }

◆ setScript()

void anna::testing::TestStepCmd::setScript ( const std::string &  script)
inline
259 { a_script = script; }

◆ setThreadNotRunning()

void anna::testing::TestStepCmd::setThreadNotRunning ( )
inline
246 { a_threadRunning = false; }

◆ setThreadRunning()

void anna::testing::TestStepCmd::setThreadRunning ( )
inline
245 { a_threadRunning = true; }

◆ threadNotRunning()

bool anna::testing::TestStepCmd::threadNotRunning ( ) const
inline
248 { return !a_threadRunning; }

◆ threadRunning()

bool anna::testing::TestStepCmd::threadRunning ( ) const
inline
247 { return a_threadRunning; }

The documentation for this class was generated from the following file: