Commit 3f6c18bb authored by Malo Toudic's avatar Malo Toudic
Browse files
parent 1ecfda20
......@@ -166,8 +166,16 @@ public class Execution implements Serializable {
}
public String getGlobalStatus() {
if (testStepResults == null || testStepResults.size() == 0) {
return "UNKNOWN";
}
for (GwtTestStepResult testStepResult : testStepResults) {
if (testStepResult.getStatus().equals("FAILED")) {
if (testStepResult.getStatus().equals("FAILED")
|| (testStepResult.getResponseValidation() != null && testStepResult.getResponseValidation().getValidationStatus() == "FAILED")
|| (testStepResult.getRequestValidation() != null && testStepResult.getRequestValidation().getValidationStatus() == "FAILED")) {
return "FAILED";
}
if (testStepResult.getStatus().equals("UNKNOWN")) {
return testStepResult.getStatus();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment