public class TestConverter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.impl.SimpleLog |
logger
logging instance
|
| Constructor and Description |
|---|
TestConverter()
Construct a new TestConverter
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareFiles(java.io.File f1,
java.io.File f2)
Compare files.
|
static void |
main(java.lang.String[] args)
This main method can be used to run the test converter from
the command line.
|
protected void |
runTest(org.w3c.dom.Node testcase,
org.w3c.dom.Node test)
Run a particular test.
|
protected void |
runTestCase(org.w3c.dom.Node tcase)
Run a test case.
|
java.util.Map |
runTests(java.lang.String fname,
java.lang.String dest,
java.lang.String compDir)
Run the Tests.
|
void |
setBaseDir(java.lang.String str)
Sets the base directory.
|
void |
setDebug(boolean debug)
Controls whether to set logging to debug level
|
void |
setFailOnly(boolean fail)
Controls whether to process only the tests which are specified as fail
in the test results.
|
void |
setOutputFormat(java.lang.String outputFormat)
Controls output format to generate
|
public static void main(java.lang.String[] args)
args - command-line argumentspublic void setOutputFormat(java.lang.String outputFormat)
outputFormat - the MIME type of the output formatpublic void setFailOnly(boolean fail)
fail - True if only fail tests should be processedpublic void setBaseDir(java.lang.String str)
str - base directorypublic void setDebug(boolean debug)
debug - If true, debug level, if false, error levelpublic java.util.Map runTests(java.lang.String fname,
java.lang.String dest,
java.lang.String compDir)
fname - filename of the input filedest - destination directorycompDir - comparison directoryprotected void runTestCase(org.w3c.dom.Node tcase)
tcase - Test case node to runprotected void runTest(org.w3c.dom.Node testcase,
org.w3c.dom.Node test)
testcase - Test case to runtest - Testprotected boolean compareFiles(java.io.File f1,
java.io.File f2)
f1 - first filef2 - second fileCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.