dhuma
asked on
Regression Testing of Java Application
We have a Java Application, its a batch program that runs overnight and generates an XML file.
In order to regression test this, we are planning to do the following.
1) Run the production version of the code and QA version of the code pointing to the same data base and compare the output XML files.
are there any suggestions here on how to accomplish this. Any frameworks to run a java process and compare the output files etc.
thanks
In order to regression test this, we are planning to do the following.
1) Run the production version of the code and QA version of the code pointing to the same data base and compare the output XML files.
are there any suggestions here on how to accomplish this. Any frameworks to run a java process and compare the output files etc.
thanks
You ccn use FileUtils contentEquals method to cpmapre files:
http://commons.apache.org/io/api-1.4/org/apache/commons/io/FileUtils.html#contentEquals%28java.io.File,%20java.io.File%29
ASKER
I am looking for more than just comparing XML Files
In this case, it has to invoke one process (with QA jars) and invoke other process (With Prod Jars), and then compare the files.
How about invoking the two versions (Prod and QA) using different class loaders and then compare the xml output using XMl Unit.
any comments on the above...
In this case, it has to invoke one process (with QA jars) and invoke other process (With Prod Jars), and then compare the files.
How about invoking the two versions (Prod and QA) using different class loaders and then compare the xml output using XMl Unit.
any comments on the above...
Well all you've just described is possible with JUnit afaics
ASKER
You meant, what ever we plan to do , just stuff into the JUnit test case?
ASKER
something like using the Java task in the Junit ?
ASKER
oops, I meant ANT
What i mean is that your testing logic would be implemented in your JUnit test cases, probably with supporting apis
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
http://xmlunit.sourceforge.net/