Frequently asked questions


[Q]: Where should I put xml data files?

[A]: JTestCase looks for data files in following orders: 1) looks from absolute file path. For example, if you specified XML file as "/aa/bb/my-data.xml", then JTestCase will look for /aa/bb/my-data.xml from root directory. 2) if JTestCase fails above search, it then looks from $CLASSPATH based directories. For example, if you have "/myclass" in your CLASSPATH, JTestCase will search for my-data.xml from /myclass/aa/bb directory. JTestCase will search all PATH from $CLASSPATH until it finds the data file. If fails again, JTestCase will then throws excaption. Thus providing absolute path will improve the performance.