for (TestCaseNode testCaseNode : browserNode.getChildren()) {
for (TestNode testNode : testCaseNode.getChildren()) {
TCMessage testFailedMessage = TC.newTestFailedMessage(testNode);
String reason = errorMessage != null ? "JsTestDriver crash" : "unknown reason";
testFailedMessage.addAttribute(TCAttribute.EXCEPTION_MESSAGE, "Can't execute test due to " + reason + ".");
testFailedMessage.addAttribute(TCAttribute.IS_TEST_ERROR, "yes");
printTCMessage(testFailedMessage);
}
TCMessage testCaseFinishedMessage = TC.newTestSuiteFinishedMessage(testCaseNode);
printTCMessage(testCaseFinishedMessage);
}