Simplify command (no parameter field, all inside command). Interactive mode.
[anna.git] / example / diameter / launcher / testing / TestStep.hpp
index 9b69579..4f7e6e8 100644 (file)
@@ -51,6 +51,7 @@ class TestStep {
     int a_number; // step number used for xml (informational)
     anna::Millisecond a_beginTimestamp; // unix time
     anna::Millisecond a_endTimestamp; // unix time
+    bool a_executed; // used for interactive mode in order to not repeat a execution step if before completing, the user add interactive amount
 
     void setBeginTimestamp(const anna::Millisecond &t) throw() { a_beginTimestamp = t; }
     const anna::Millisecond &getBeginTimestamp() const throw() { return a_beginTimestamp; }
@@ -63,7 +64,7 @@ class TestStep {
     struct Type { enum _v { Unconfigured, Timeout, Sendxml2e, Sendxml2c, Delay, Wait, Cmd }; };
     static const char* asText(const Type::_v type) throw();
 
-    TestStep(TestCase *testCase) : a_message(true), a_messageCodec(NULL) { initialize(testCase); }
+    TestStep(TestCase *testCase) : a_message(true), a_messageCodec(NULL), a_executed(false) { initialize(testCase); }
     virtual ~TestStep() {;}
 
     // setter & getters
@@ -223,7 +224,6 @@ class TestStepWait : public TestStep {
 class TestStepCmd : public TestStep {
 
   std::string a_script;
-  std::string a_parameters;
   std::thread a_thread;
   bool a_threadRunning;
   bool a_threadDeprecated;
@@ -236,9 +236,6 @@ class TestStepCmd : public TestStep {
 
     // setter & getters
     void setThreadRunning(bool running) throw() { a_threadRunning = running; }
-    //bool getThreadRunning() const throw() { return a_threadRunning; }
-    //void setThreadDeprecated(bool deprecated) throw() { a_threadDeprecated = deprecated; }
-    //bool getThreadDeprecated() const throw() { return a_threadDeprecated; }
 
     void setResultCode(int rc) throw() { a_resultCode = rc; }
     int getResultCode() const throw() { return a_resultCode; }
@@ -249,8 +246,6 @@ class TestStepCmd : public TestStep {
 
     void setScript(const std::string &script) throw() { a_script = script; }
     const std::string &getScript() const throw() { return a_script; }
-    void setParameters(const std::string &params) throw() { a_parameters = params; }
-    const std::string &getParameters() const throw() { return a_parameters; }
 
     // virtuals
     bool do_execute() throw();