public class Latka
extends java.lang.Object
Suite
,
LatkaProperties
Modifier and Type | Field and Description |
---|---|
protected boolean |
_isValidating
whether xml parsing is validating or not
|
protected static org.apache.log4j.Category |
_log
log4j category for logged output
|
protected java.util.Properties |
_props
Latka configuration variables
|
protected java.net.URL |
_reportStylesheetUrl
XSL stylesheet url to use when generating XML
|
Constructor and Description |
---|
Latka() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.jelly.JellyContext |
buildJellyContext() |
protected void |
logXML(java.lang.String xml)
Use this method to log XML generated by the
XMLReporter class.
|
static void |
main(java.lang.String[] args)
Execute a single test suite via the command line
interface.
|
protected void |
runCommandLine(java.lang.String[] args)
Processes the command line arguments, executes a single test.
|
void |
runTests(Suite suite,
LatkaEventListener listener)
Execute a single Latka test suite.
|
void |
setReportStylesheet(java.net.URL url)
Set the URL to be used when transforming XML generated by the XMLReporter
|
void |
setValidating(boolean isValidating)
Set whether or not Latka will validate the XML in
each test.
|
java.lang.String |
transformXML(java.lang.String xml)
Transform the XML generated by the XMLReporter using
the default stylesheet.
|
protected boolean _isValidating
protected java.net.URL _reportStylesheetUrl
protected static final org.apache.log4j.Category _log
protected java.util.Properties _props
public void runTests(Suite suite, LatkaEventListener listener) throws LatkaException
suite
- test suite to executelistener
- target for test eventsLatkaException
- when any internal error occursXML-based implementation of LatkaEventListener
protected org.apache.commons.jelly.JellyContext buildJellyContext()
public void setValidating(boolean isValidating)
isValidating
- whether or not to validate XMLpublic void setReportStylesheet(java.net.URL url)
url
- a valid URL referencing a stylesheetprotected void logXML(java.lang.String xml) throws java.io.IOException
xml
- XML to be loggedjava.io.IOException
- if the XML could not be written to the filesystempublic java.lang.String transformXML(java.lang.String xml) throws LatkaException
xml
- XML generated by XMLReporterLatkaException
- if the XML could not be transformedprotected void runCommandLine(java.lang.String[] args) throws LatkaException
args
- arguments passed into the main(String[]) methodLatkaException
- if any problems are encountered during
the execution of the testspublic static void main(java.lang.String[] args)
args
- arguments containing the test suite location
and any properties or property file referencesCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.