From: Eduardo Ramos Testillano Date: Fri, 27 Nov 2015 14:30:39 +0000 (+0100) Subject: Improve. test|report operation output X-Git-Tag: REFACTORING_TESTING_LIBRARY~72 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=cf1d6959b2262da181a16521ff91c7e3fb4c15d8;p=anna.git Improve. test|report operation output --- diff --git a/example/diameter/launcher/Launcher.cpp b/example/diameter/launcher/Launcher.cpp index b2ee171..120fabc 100644 --- a/example/diameter/launcher/Launcher.cpp +++ b/example/diameter/launcher/Launcher.cpp @@ -1867,10 +1867,15 @@ void Launcher::eventOperation(const std::string &operation, std::string &respons testManager.setDumpFailedReports(enable); else if(param2 == "success") testManager.setDumpSuccessReports(enable); - else if(param2 == "all") + else if(param2 == "all") { + param2 = "any"; testManager.setDumpAllReports(enable); - else if(param2 == "none") - testManager.setDumpAllReports(!enable); + } + else if(param2 == "none") { + enable = !enable; + param2 = "any"; + testManager.setDumpAllReports(enable); + } else throw anna::RuntimeException("Wrong body content format on HTTP Request. Use 'help' management command to see more information.", ANNA_FILE_LOCATION);