|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.latka.Latka
public class Latka
This is the primary class for executing Latka functional tests. The main(String aargs[]) class provides a convenient command-line interface for executing single tests. See the Latka documentation for details on command-line usage. There is also a webapp-based Latka interface.
Suite
,
LatkaProperties
Field Summary | |
---|---|
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 Summary | |
---|---|
Latka()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean _isValidating
protected java.net.URL _reportStylesheetUrl
protected static final org.apache.log4j.Category _log
protected java.util.Properties _props
Constructor Detail |
---|
public Latka()
Method Detail |
---|
public void runTests(Suite suite, LatkaEventListener listener) throws LatkaException
suite
- test suite to executelistener
- target for test events
LatkaException
- 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 logged
java.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 XMLReporter
LatkaException
- if the XML could not be transformedprotected void runCommandLine(java.lang.String[] args) throws LatkaException
args
- arguments passed into the main(String[]) method
LatkaException
- 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 references
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |