hi,
could anyone pls. tell me about SQLUnit framework to test SPs.
i've downloaded one jar file from source forge.
now i hv to write an application which will test my stored proc.
i've written one class which extends SQLUnit.
i've written one test file.
i've made some changes to build.xml
i'm using eclipse, project contains build.xml and test.xml
java file contains the following code...
public static void main(String[] args) {
junit.textui.TestRunner.run(suite());
// Instantiate SQLUnit
SQLUnit sqlunit = new SQLUnit("sqlunit");
try {
sqlunit.setTestFile("path/to/test.xml");
sqlunit.setHaltOnFailure(false);
sqlunit.setDebug(false);
sqlunit.runTest();
} catch (SQLUnitException e) {
// report the exception
}
}
i'm getting one exception
There was 1 error:
1) testWrapper(net.sourceforge.sqlunit.SQLUnit)
net.sourceforge.sqlunit.SQLUnitException: Input Test File not specified, specify testfile or fileset.
could anyone pls. help me ASAP.
its very urgent.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
could anyone pls. tell me about SQLUnit framework to test SPs.
i've downloaded one jar file from source forge.
now i hv to write an application which will test my stored proc.
i've written one class which extends SQLUnit.
i've written one test file.
i've made some changes to build.xml
i'm using eclipse, project contains build.xml and test.xml
java file contains the following code...
public static void main(String[] args) {
junit.textui.TestRunner.run(suite());
// Instantiate SQLUnit
SQLUnit sqlunit = new SQLUnit("sqlunit");
try {
sqlunit.setTestFile("path/to/test.xml");
sqlunit.setHaltOnFailure(false);
sqlunit.setDebug(false);
sqlunit.runTest();
} catch (SQLUnitException e) {
// report the exception
}
}
i'm getting one exception
There was 1 error:
1) testWrapper(net.sourceforge.sqlunit.SQLUnit)
net.sourceforge.sqlunit.SQLUnitException: Input Test File not specified, specify testfile or fileset.
could anyone pls. help me ASAP.
its very urgent.
Hi
did you ever try to pass in an absolute path name?
e.g.
c:\mysqlunit\path/to/test.xml
Hope this helps
Regards