|
![]() |
This section describes, how to format the Results of the tests.
In this API, the result concept is two things :
The problem with a real logger (like log4J) is we don't have the notion
of results.
In the TestSuite APi we decide to split logs of the program and
results.
There is a super-class abstract : AbstractResult where there is the bare essentials to specify a Result :
There are two classes who implements this abstract class :
AbstractResult is only abstract to make generic formating, so TestResult can print itself like a Java String and a XML node. BenchmarkResult add a time result to print.
In TestSuite API, the results are stocked in ResultsCollection,
there are two classes who contains a ResultCollection :
These classes implements the ResultsExporter interface. After the execution of your Manager you can choose where and how to print results :
yourManager.toXXX();
Where toXXX() is :
yourManager.setVerbatim(true)
,
as a String else only results who the level >= IMP_MSGyourManager.setVerbatim(true)
, in out else only
results who the level >= IMP_MSGyourManager.setVerbatim(true)
, in out else
only results who the level >= IM_MSGIn Manager you can modify this by :
yourManager.setVerbatim(true/false)
If Verbatim value is :
By default Verbatim is at false
This option has no effect on XML and HTML exports.
To see the value of Verbatim :
yourManager.isVerbatim()
See the configuration file part for more details to configure results output by the file descriptor.
If you export your results in a XML DOM tree, with toXML()
method, you can use XSLT to create new formats.