- bool configureTTPS(int testTicksPerSecond) throw();
-
- bool clearPool() throw();
- bool resetPool(bool hard /* hard reset includes in-progress test cases */) throw();
- void setPoolRepeats(int repeats) throw() { a_poolRepeats = repeats; }
- int getPoolRepeats() const throw() { return a_poolRepeats; }
- int getPoolCycle() const throw() { return a_poolCycle; }
-
- bool getAutoResetHard() const throw() { return a_autoResetHard; }
- void setAutoResetHard(bool hard = true) throw() { a_autoResetHard = hard; }
-
-
- unsigned int getInProgressCount() const throw() { return a_statSummary.getInProgressCount(); }
- unsigned int getInProgressLimit() const throw() { return a_inProgressLimit; }
- void setInProgressLimit(unsigned int limit) throw() { a_inProgressLimit = limit; } // 0 = UINT_MAX (no limit)
-
- bool gotoTestCase(unsigned int id) throw();
- TestCase *findTestCase(unsigned int id) const throw(); // id = -1 provides current test case triggered
- TestCase *getTestCase(unsigned int id) throw(); // creates/reuses a test case
-
- // Diameter
- TestCase *getDiameterTestCaseFromSessionId(const anna::DataBlock &message, std::string &sessionId) throw();
- TestCase *getDiameterTestCaseFromSubscriberId(const anna::DataBlock &message, std::string &subscriberId) throw();
- void receiveDiameterMessage(const anna::DataBlock &message, const anna::diameter::comm::ClientSession *clientSession) throw(anna::RuntimeException);
- void receiveDiameterMessage(const anna::DataBlock &message, const anna::diameter::comm::ServerSession *serverSession) throw(anna::RuntimeException);
+ bool configureTTPS(int testTicksPerSecond) ;
+
+ bool clearPool(std::string &result) ;
+ bool resetPool(bool hard /* hard reset includes in-progress test cases */) ;
+ void setPoolRepeats(int repeats) { a_poolRepeats = repeats; }
+ int getPoolRepeats() const { return a_poolRepeats; }
+ int getPoolCycle() const { return a_poolCycle; }
+
+ bool getAutoResetHard() const { return a_autoResetHard; }
+ void setAutoResetHard(bool hard = true) { a_autoResetHard = hard; }
+
+
+ unsigned int getInProgressCount() const { return a_statSummary.getInProgressCount(); }
+ unsigned int getInitializedCount() const { return a_statSummary.getInitializedCount(); }
+ unsigned int getFinishedCount() const { return a_statSummary.getFinishedCount(); }
+ unsigned int getInProgressLimit() const { return a_inProgressLimit; }
+ void setInProgressLimit(unsigned int limit) { a_inProgressLimit = limit; } // -1 = UINT_MAX (no limit)
+
+ bool gotoTestCase(unsigned int id) ;
+ bool runTestCase(unsigned int id) ;
+ TestCase *findTestCase(unsigned int id) const ; // id = -1 provides current test case triggered
+ TestCase *getTestCase(unsigned int id, const std::string &description = "") ; // creates/reuses a test case
+ // provide 0 to reserve the id = tests() + 1
+ // Diameter-specific
+ TestCase *getDiameterTestCaseFromSessionId(const anna::DataBlock &message, std::string &sessionId) ;
+ TestCase *getDiameterTestCaseFromSubscriberId(const anna::DataBlock &message, std::string &subscriberId) ;
+ void receiveDiameterMessage(const anna::DataBlock &message, const anna::diameter::comm::ClientSession *clientSession) noexcept(false);
+ void receiveDiameterMessage(const anna::DataBlock &message, const anna::diameter::comm::ServerSession *serverSession) noexcept(false);