ANNA Suite  2020b
Multipurpose development suite for Telco applications
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
anna::testing::TestStep Class Referenceabstract

#include <TestStep.hpp>

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

Classes

struct  Type
 

Public Member Functions

 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 ()
 
virtual anna::xml::NodeasXML (anna::xml::Node *parent)
 
std::string asXMLString ()
 

Static Public Member Functions

static const char * asText (const Type::_v type)
 

Protected Member Functions

bool decodeMessage (bool trust=false)
 
virtual bool do_execute ()=0
 
virtual void do_complete ()=0
 
virtual void do_reset ()=0
 

Protected Attributes

TestCasea_testCase
 
bool a_completed
 
Type::_v a_type
 
anna::DataBlock a_message
 
anna::diameter::codec::Messagea_messageCodec
 

Constructor & Destructor Documentation

◆ TestStep()

anna::testing::TestStep::TestStep ( TestCase testCase)
inline
64 : a_message(true), a_messageCodec(NULL), a_executed(false) { initialize(testCase); }
anna::diameter::codec::Message * a_messageCodec
Definition: TestStep.hpp:87
anna::DataBlock a_message
Definition: TestStep.hpp:86

◆ ~TestStep()

virtual anna::testing::TestStep::~TestStep ( )
inlinevirtual
65 {;}

Member Function Documentation

◆ asText()

static const char* anna::testing::TestStep::asText ( const Type::_v  type)
static

◆ asXML()

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

◆ asXMLString()

std::string anna::testing::TestStep::asXMLString ( )

◆ complete()

void anna::testing::TestStep::complete ( )

◆ decodeMessage()

bool anna::testing::TestStep::decodeMessage ( bool  trust = false)
protected

◆ do_complete()

virtual void anna::testing::TestStep::do_complete ( )
protectedpure virtual

◆ do_execute()

virtual bool anna::testing::TestStep::do_execute ( )
protectedpure virtual

◆ do_reset()

virtual void anna::testing::TestStep::do_reset ( )
protectedpure virtual

◆ execute()

bool anna::testing::TestStep::execute ( )

◆ getLapseMs()

anna::Millisecond anna::testing::TestStep::getLapseMs ( ) const
inline
71 { return a_endTimestamp - a_beginTimestamp; }

◆ getNumber()

const int& anna::testing::TestStep::getNumber ( ) const
inline
69 { return a_number; }

◆ getType()

const Type::_v& anna::testing::TestStep::getType ( ) const
inline
68 { return a_type; }
Type::_v a_type
Definition: TestStep.hpp:83

◆ isCompleted()

bool anna::testing::TestStep::isCompleted ( ) const
inline
70 { return a_completed; }
bool a_completed
Definition: TestStep.hpp:82

◆ next()

void anna::testing::TestStep::next ( )

◆ reset()

void anna::testing::TestStep::reset ( )

Member Data Documentation

◆ a_completed

bool anna::testing::TestStep::a_completed
protected

◆ a_message

anna::DataBlock anna::testing::TestStep::a_message
protected

◆ a_messageCodec

anna::diameter::codec::Message* anna::testing::TestStep::a_messageCodec
protected

◆ a_testCase

TestCase* anna::testing::TestStep::a_testCase
protected

◆ a_type

Type::_v anna::testing::TestStep::a_type
protected

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