class TestClock;
class TestCase;
class TestCaseStep;
-class RealmNode;
+class OriginHost;
typedef std::map<unsigned int /* test case id */, TestCase*> test_pool_t;
unsigned int a_sucessTcs;
public:
+ StatSummary() { clear(); }
void newTCState(const TestCase::State::_v beginState, const TestCase::State::_v endState) throw();
void clear() throw();
unsigned int getInProgressCount() const throw() { return a_inprogressTcs; }
// reports
std::string a_reportsDirectory;
- bool a_dumpSuccessfulReports, a_dumpFailedReports;
+ bool a_dumpInitializedReports, a_dumpInProgressReports, a_dumpFailedReports, a_dumpSuccessReports;
bool a_dumpHexMessages;
// Pool of test cases
void setDumpHex(bool dh) throw() { a_dumpHexMessages = dh; }
bool getDumpHex() const throw() { return a_dumpHexMessages; }
- void setDumpSuccessfulReports(bool dsr) throw() { a_dumpSuccessfulReports = dsr; }
- void setDumpFailedReports(bool dfr) throw() { a_dumpFailedReports = dfr; }
- bool getDumpSuccessfulReports() const throw() { return a_dumpSuccessfulReports; }
+
+ void setDumpInitializedReports(bool enable) throw() { a_dumpInitializedReports = enable; }
+ void setDumpInProgressReports(bool enable) throw() { a_dumpInProgressReports = enable; }
+ void setDumpFailedReports(bool enable) throw() { a_dumpFailedReports = enable; }
+ void setDumpSuccessReports(bool enable) throw() { a_dumpSuccessReports = enable; }
+ void setDumpAllReports(bool enable) throw() {
+ setDumpInitializedReports(enable);
+ setDumpInProgressReports(enable);
+ setDumpFailedReports(enable);
+ setDumpSuccessReports(enable);
+ }
+
+ bool getDumpInitializedReports() const throw() { return a_dumpInitializedReports; }
+ bool getDumpInProgressReports() const throw() { return a_dumpInProgressReports; }
bool getDumpFailedReports() const throw() { return a_dumpFailedReports; }
+ bool getDumpSuccessReports() const throw() { return a_dumpSuccessReports; }
// Helper to calculate time interval and synchronous amount of execution tests to guarantee the input rate (tests per second)
// through the time manager which has a minimum resolution of ADML minimum resolution. The first call to this method will
// Main logic
TestCase *getTestCaseFromSessionId(const anna::DataBlock &message, std::string &sessionId) throw();
- void receiveMessage(const anna::DataBlock &message, RealmNode *realm, const anna::diameter::comm::ClientSession *clientSession) throw(anna::RuntimeException);
- void receiveMessage(const anna::DataBlock &message, RealmNode *realm, const anna::diameter::comm::ServerSession *serverSession) throw(anna::RuntimeException);
+ void receiveMessage(const anna::DataBlock &message, OriginHost *host, const anna::diameter::comm::ClientSession *clientSession) throw(anna::RuntimeException);
+ void receiveMessage(const anna::DataBlock &message, OriginHost *host, const anna::diameter::comm::ServerSession *serverSession) throw(anna::RuntimeException);
anna::xml::Node* asXML(anna::xml::Node* parent) const throw();
std::string asXMLString() const throw();