vhardy 2003/07/10 07:47:57
Modified: test-sources/org/apache/batik/test/xml
XMLTestReportProcessor.java XTRConstants.java
test-resources/org/apache/batik/test/svg HTMLReport.xsl
Log:
Added test class attribute to the XML test report. Also included in the HTML report
Revision Changes Path
1.16 +6 -1
xml-batik/test-sources/org/apache/batik/test/xml/XMLTestReportProcessor.java
Index: XMLTestReportProcessor.java
===================================================================
RCS file:
/home/cvs/xml-batik/test-sources/org/apache/batik/test/xml/XMLTestReportProcessor.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- XMLTestReportProcessor.java 18 Nov 2002 16:44:45 -0000 1.15
+++ XMLTestReportProcessor.java 10 Jul 2003 14:47:57 -0000 1.16
@@ -332,6 +332,11 @@
reportElement.setAttribute(XTR_STATUS_ATTRIBUTE,
status);
+ String className = report.getTest().getClass().getName();
+
+ reportElement.setAttribute(XTR_CLASS_ATTRIBUTE,
+ className);
+
if(!report.hasPassed()){
reportElement.setAttribute(XTR_ERROR_CODE_ATTRIBUTE,
report.getErrorCode());
1.5 +2 -1
xml-batik/test-sources/org/apache/batik/test/xml/XTRConstants.java
Index: XTRConstants.java
===================================================================
RCS file:
/home/cvs/xml-batik/test-sources/org/apache/batik/test/xml/XTRConstants.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XTRConstants.java 19 Oct 2001 09:22:17 -0000 1.4
+++ XTRConstants.java 10 Jul 2003 14:47:57 -0000 1.5
@@ -32,6 +32,7 @@
/////////////////////////////////////////////////////////////////////////
// XTR attributes
/////////////////////////////////////////////////////////////////////////
+ String XTR_CLASS_ATTRIBUTE = "class";
String XTR_DATE_ATTRIBUTE = "date";
String XTR_KEY_ATTRIBUTE = "key";
String XTR_ERROR_CODE_ATTRIBUTE = "errorCode";
1.13 +2 -1
xml-batik/test-resources/org/apache/batik/test/svg/HTMLReport.xsl
Index: HTMLReport.xsl
===================================================================
RCS file:
/home/cvs/xml-batik/test-resources/org/apache/batik/test/svg/HTMLReport.xsl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- HTMLReport.xsl 19 Oct 2001 09:22:17 -0000 1.12
+++ HTMLReport.xsl 10 Jul 2003 14:47:57 -0000 1.13
@@ -146,6 +146,7 @@
<xsl:choose>
<xsl:when test="@status='failed'">
 (<xsl:value-of select="@errorCode" />)
+  (<xsl:value-of select="@class" />)
</xsl:when>
</xsl:choose>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]