rootSuite.getTestsuites().add(loadExceptionSuite);
}
Testcase tc = JunitresultFactory.eINSTANCE.createTestcase();
tc.setName("Error loading: " + f.getAbsolutePath());
Error error = JunitresultFactory.eINSTANCE.createError();
StringBuilder builder = new StringBuilder();
builder.append("Can not load junit xml result from file: ").append(f.getAbsolutePath()).append("\n");
builder.append("Caused by: ").append(e.toString());
error.setValue(builder.toString());
error.setMessage(e.getMessage());
tc.getErrors().add(error);
loadExceptionSuite.getTestcases().add(tc);
}