result += "\n enabled because the programmed test cases dumps could be heavy (anyway you could enable the";
result += "\n dumps separately, for any of the possible states: Initialized, InProgress, Failed, Success).";
result += "\n";
- result += "\n test|report|<initialized/in-progress/failed/success/all>[|[yes]|no]";
+ result += "\n test|report|<initialized/in-progress/failed/success/all/none>[|[yes]|no]";
result += "\n";
result += "\n Enables/disables report generation for a certain test case state: initialized, in-progress,";
result += "\n failed or success. This applies to report summary (former described operation) and automatic";
// test|next[|<sync-amount>] 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|<amount> Restarts the whole programmed test list when finished the amount number of times ...
- // test|report|<initialized/in-progress/failed/success/all>[|[yes]|no]
+ // test|report|<initialized/in-progress/failed/success/all/none>[|[yes]|no]
// Enables/disables report generation for a certain test case state: initialized, in-progress ...
// test|report-hex[|[yes]|no] Reports could include the diameter messages in hexadecimal format. Disabled by default.
// test|goto|<id> Updates current test pointer position.
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 != "initialized" && param2 != "in-progress" && param2 != "failed" && param2 != "success" && param2 != "all")
- 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");
testManager.setDumpFailedReports(enable);
else if(param2 == "success")
testManager.setDumpSuccessReports(enable);
- else // all
+ else if(param2 == "all")
testManager.setDumpAllReports(enable);
+ else if(param2 == "none")
+ 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);
opt_response_content += (enable ? "report enabled " : "report disabled ");
opt_response_content += "for tests in '";