| java.lang.Object net.sourceforge.sqlunit.reporters.CanooWebTestReporter
CanooWebTestReporter | public class CanooWebTestReporter implements IReporter(Code) | | SQLUnit Reporter that works with the Canoo Web Test framework. Generates
XML that can be converted to output for the Canoo Web Test console.
author: Rob Nielsen (robn@asert.com.au) author: Paul King (paulk@asert.com.au) version: $Revision: 1.9 $ |
Method Summary | |
final public void | addFailure(Throwable th, boolean isError) Called when an exception occured during processing. | final public void | echo(String message) Called from within the test from the SQLUnit Echo tag to print
out values from within the test. | final public void | finishedTest(long time, boolean success) | final public String | getName() Returns the format name. | final public boolean | hasContainer() Returns true since this reporter runs in the context of a Canoo
Web Test. | final public void | newTestFile(String name, String location) Called when a new sqlunit test file is run. | final public void | runningTest(String name, int testIndex, String desc) Called before a test is run. | final public void | setConfig(Map configMap) Called after the connection is made. | final public void | setUp() Called before the set up section of the test. | final public void | settingUpConnection(String connectionId) Called before a database connection is setup. | final public void | skippedTest(String name, int testIndex, String desc) Called when a test is skipped because of an earlier failure. | final public void | tearDown() | final public void | tempFile(int testId, String result, String file) Called when a test has failed and a temporary file is left containing
data. | final public void | testFileComplete(boolean success) Called when the test file has been completed. |
FORMAT_NAME | final public static String FORMAT_NAME(Code) | | the format name to be used in the ant task
|
CanooWebTestReporter | public CanooWebTestReporter(String outputFile) throws Exception(Code) | | Constructs a new CanooWebTestReporter
Parameters: outputFile - the file throws: Exception - if a problem occurs |
addFailure | final public void addFailure(Throwable th, boolean isError)(Code) | | Called when an exception occured during processing.
Parameters: th - the exception that occured Parameters: isError - true if the exception is an error, else false. |
echo | final public void echo(String message)(Code) | | Called from within the test from the SQLUnit Echo tag to print
out values from within the test.
Parameters: message - the message to echo. |
finishedTest | final public void finishedTest(long time, boolean success)(Code) | | Called when a test is completed
Parameters: time - the time in milliseconds the test took to run Parameters: success - true if the test succeeded, false otherwise |
getName | final public String getName()(Code) | | Returns the format name.
the format name. |
hasContainer | final public boolean hasContainer()(Code) | | Returns true since this reporter runs in the context of a Canoo
Web Test.
true. |
newTestFile | final public void newTestFile(String name, String location)(Code) | | Called when a new sqlunit test file is run.
Parameters: name - the name of the test being run Parameters: location - the filename of the test file |
runningTest | final public void runningTest(String name, int testIndex, String desc)(Code) | | Called before a test is run.
Parameters: name - the name of the test being run Parameters: testIndex - the index of the test being run Parameters: desc - a description of the test being run |
setConfig | final public void setConfig(Map configMap)(Code) | | Called after the connection is made. The map contains key/value
pairs of configuration parameters for the connection and debug settings.
Parameters: configMap - the configuration map |
setUp | final public void setUp()(Code) | | Called before the set up section of the test.
|
settingUpConnection | final public void settingUpConnection(String connectionId)(Code) | | Called before a database connection is setup.
Parameters: connectionId - the id of the connection being attempted, or null for the default connection |
skippedTest | final public void skippedTest(String name, int testIndex, String desc)(Code) | | Called when a test is skipped because of an earlier failure.
Parameters: name - the name of the test being run Parameters: testIndex - the index of the test being run Parameters: desc - a description of the test being run |
tearDown | final public void tearDown()(Code) | | Called before the tear down section is run
|
tempFile | final public void tempFile(int testId, String result, String file)(Code) | | Called when a test has failed and a temporary file is left containing
data.
Parameters: testId - the index of the test Parameters: result - the result of the test Parameters: file - the temporary file |
testFileComplete | final public void testFileComplete(boolean success)(Code) | | Called when the test file has been completed.
Parameters: success - true if everything completed with no errors, false otherwise |
|
|