|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Properties |
_props
Latka configuration variables |
protected 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(String xml)
Use this method to log XML generated by the XMLReporter class. |
static void |
main(String[] args)
Execute a single test suite via the command line interface. |
protected void |
runCommandLine(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(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. |
String |
transformXML(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 URL _reportStylesheetUrl
protected static final org.apache.log4j.Category _log
protected 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(URL url)
url
- a valid URL referencing a stylesheetprotected void logXML(String xml) throws IOException
xml
- XML to be logged
IOException
- if the XML could not be written to the filesystempublic String transformXML(String xml) throws LatkaException
xml
- XML generated by XMLReporter
LatkaException
- if the XML could not be transformedprotected void runCommandLine(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(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 |