X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Ftest%2Ftree%2Fhtmlreport%2FResultPage.java;h=69bba492e40caa7a7d488e41d5321daaee0b58cd;hb=1943052bca31f5f1ed41e6ad1dad4490f9058762;hp=1ee32e479b438149196c86e46a77b52fcb3d70a3;hpb=77ed5d40c10f8e8e788382ed0da1f3e4a1c31958;p=gpl%2Fargeo-slc.git
diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/htmlreport/ResultPage.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/htmlreport/ResultPage.java
index 1ee32e479..69bba492e 100644
--- a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/htmlreport/ResultPage.java
+++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/htmlreport/ResultPage.java
@@ -40,11 +40,11 @@ class ResultPage {
* @param result
* the result to dump
*/
- protected void generate(StructureRegistry registry) {
+ protected void generate(StructureRegistry \n");
buf.append("");
@@ -142,6 +143,8 @@ class ResultPage {
int displayedIndex = 1;// for display only
for (TestResultPart part : subList.getParts()) {
SimpleResultPart sPart = (SimpleResultPart) part;
+ buf.append("Related Test Run Id:").append(
+ sPart.getTestRunUuid()).append(" An unexpected error prevented the test to run properly.");
- Throwable exception = sPart.getException();
- if (exception != null) {
- StringWriter writer = new StringWriter();
- exception.printStackTrace(new PrintWriter(writer));
- buf.append("Result #").append(result.getTestResultId()).append(
- "
\n");
+ buf.append("Result #").append(result.getUuid()).append("
\n");
Date closeDate = result.getCloseDate();
if (closeDate == null) {
buf.append("[Not closed]");
@@ -78,7 +77,8 @@ class ResultPage {
}
}
- private void generateToc(StringBuffer buf, StructureRegistry registry) {
+ private void generateToc(StringBuffer buf,
+ StructureRegistryOverview
\n");
SortedMap
\n");
}
- private void generatePartsList(StringBuffer buf, StructureRegistry registry) {
+ private void generatePartsList(StringBuffer buf,
+ StructureRegistry
\n");
String clss = "";
if (sPart.getStatus().equals(TestStatus.PASSED)) {
clss = "passed";
@@ -157,15 +160,7 @@ class ResultPage {
if (sPart.getStatus().equals(TestStatus.ERROR)) {
buf
.append("");
- buf.append(writer.toString());
- buf.append("
");
- IOUtils.closeQuietly(writer);
- }
+ buf.append(sPart.getExceptionMessage());
buf.append("