jsystem.extensions.report.xml
Class XmlReporter

java.lang.Object
  extended byjsystem.extensions.report.xml.XmlReporter
All Implemented Interfaces:
TestListener, TestReporter

public class XmlReporter
extends Object
implements TestReporter, TestListener

This reporter is used to create xml structured report. This report can be read and publish by the publisher.


Constructor Summary
XmlReporter()
           
 
Method Summary
 void addElement(Element element)
           
 void addError(Test test, Throwable t)
           
 void addFailure(Test test, AssertionFailedError t)
           
 boolean asUI()
           
 void endTest(Test test)
           
 String getName()
          Get the reporter unick name.
 void initReporterManager()
          Launch the manager GUI.
 void report(String title, String message, boolean isPass, boolean bold)
          This method will be called by the ListenerManager when new report is added.
 void startTest(Test test)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReporter

public XmlReporter()
Method Detail

initReporterManager

public void initReporterManager()
Description copied from interface: TestReporter
Launch the manager GUI.

Specified by:
initReporterManager in interface TestReporter

asUI

public boolean asUI()
Specified by:
asUI in interface TestReporter
Returns:
true if suport GUI false if not

report

public void report(String title,
                   String message,
                   boolean isPass,
                   boolean bold)
Description copied from interface: TestReporter
This method will be called by the ListenerManager when new report is added.

Specified by:
report in interface TestReporter
Parameters:
title - the report title.
message - the report message
isPass - true if pass
bold - true if bold

getName

public String getName()
Description copied from interface: TestReporter
Get the reporter unick name.

Specified by:
getName in interface TestReporter
Returns:
the reporter name.

addError

public void addError(Test test,
                     Throwable t)
Specified by:
addError in interface TestListener

addFailure

public void addFailure(Test test,
                       AssertionFailedError t)
Specified by:
addFailure in interface TestListener

endTest

public void endTest(Test test)
Specified by:
endTest in interface TestListener

startTest

public void startTest(Test test)
Specified by:
startTest in interface TestListener

addElement

public void addElement(Element element)