Menu

problem in SQLUnit

Help
arora
2007-06-22
2013-04-25
  • arora

    arora - 2007-06-22

    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.

     
    • rjaekle

      rjaekle - 2007-09-13

      Hi

      did you ever try to pass in an absolute path name?

      e.g.

      c:\mysqlunit\path/to/test.xml

      Hope this helps
      Regards

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.