From: Eduardo Ramos Testillano Date: Sun, 22 Nov 2015 16:49:10 +0000 (+0100) Subject: turns Failed and Success on failed and success for report operation X-Git-Tag: REFACTORING_TESTING_LIBRARY~81 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=9ec374517954efc1b34694c7ed801231f035d7f7;p=anna.git turns Failed and Success on failed and success for report operation --- diff --git a/example/diameter/launcher/DEPLOY.sh b/example/diameter/launcher/DEPLOY.sh index 360f1bb..93754ac 100755 --- a/example/diameter/launcher/DEPLOY.sh +++ b/example/diameter/launcher/DEPLOY.sh @@ -41,10 +41,10 @@ usage () { echo " non-existent path directory." echo echo " For example:" - echo " $0 b $HOME/ADML/basicServer" - echo " $0 b $HOME/ADML/MMSbalancer" - echo " $0 f $HOME/ADML/tester" - echo " $0 s $HOME/ADML/stress-client" + echo " $0 b $HOME/ADML-basicServer" + echo " $0 b $HOME/ADML-MMSbalancer" + echo " $0 f $HOME/ADML-tester" + echo " $0 s $HOME/ADML-stress-client" echo exit 0 } @@ -168,25 +168,25 @@ case $option in a) echo "Advanced deployment" DEPLOYMENTS_DIR=deployments/advanced - DPATH_dflt=$HOME/ADML/advanced + DPATH_dflt=$HOME/ADML-advanced ;; b) echo "Basic deployment" DEPLOYMENTS_DIR=deployments/basic - DPATH_dflt=$HOME/ADML/basic + DPATH_dflt=$HOME/ADML-basic ;; f) echo "FT deployment" DEPLOYMENTS_DIR=deployments/ft-client - DPATH_dflt=$HOME/ADML/ft-client + DPATH_dflt=$HOME/ADML-ft-client ;; s) echo "ST deployment" DEPLOYMENTS_DIR=deployments/st-client - DPATH_dflt=$HOME/ADML/st-client + DPATH_dflt=$HOME/ADML-st-client ;; *) diff --git a/example/diameter/launcher/Launcher.cpp b/example/diameter/launcher/Launcher.cpp index bf80e2d..a6e5ab9 100644 --- a/example/diameter/launcher/Launcher.cpp +++ b/example/diameter/launcher/Launcher.cpp @@ -1340,7 +1340,7 @@ std::string Launcher::help() const throw() { result += "\n Test cases reports are not dumped on process context (too many information in general)."; result += "\n The report contains context information in every moment: this operation acts as a snapshot."; result += "\n"; - result += "\n test|report|[|[yes]|no]"; + result += "\n test|report|[|[yes]|no]"; result += "\n"; result += "\n Every time a test case is finished, its xml representation will be dump on a file under"; result += "\n the execution directory (or the one configured in process command-line 'tmDir') with"; @@ -1779,7 +1779,7 @@ void Launcher::eventOperation(const std::string &operation, std::string &respons // test|next[|] Forces the execution of the next test case(s) without waiting for test manager tick ... // test|ip-limit[|amount] In-progress limit of test cases. No new test cases will be launched over this value ... // test|repeats| Restarts the whole programmed test list when finished the amount number of times ... - // test|report|[|[yes]|no] Every time a test case is finished a report file in xml format will be created under ... + // test|report|[|[yes]|no] Every time a test case is finished a report file in xml format will be created under ... // test|report-hex[|[yes]|no] Reports could include the diameter messages in hexadecimal format. Disabled by default. // test|goto| Updates current test pointer position. // test|look[|id] Show programmed test case for id provided, current when missing ... @@ -1852,21 +1852,21 @@ void Launcher::eventOperation(const std::string &operation, std::string &respons if (numParams > 3) throw anna::RuntimeException("Wrong body content format on HTTP Request. Use 'help' management command to see more information.", ANNA_FILE_LOCATION); - if(param2 != "Failed" && param2 != "Success") + if(param2 != "failed" && param2 != "success") throw anna::RuntimeException("Wrong body content format on HTTP Request. Use 'help' management command to see more information.", ANNA_FILE_LOCATION); if(param3 == "") param3 = "yes"; bool enable = (param3 == "yes"); - if(param2 == "Success") + if(param2 == "success") testManager.setDumpSuccessfulReports(enable); else testManager.setDumpFailedReports(enable); opt_response_content += (enable ? "report enabled " : "report disabled "); - opt_response_content += "for "; + opt_response_content += "for tests in '"; opt_response_content += param2; - opt_response_content += " tests"; + opt_response_content += "' state"; } else if(param1 == "report-hex") { if (numParams > 2)