Link to home
Start Free TrialLog in
Avatar of dhuma
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


Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Well, as you've indicated in your tags, JUnit is the standard for testing. What you might use in addition is an xml diff utility

http://xmlunit.sourceforge.net/
Avatar of dhuma
dhuma

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...
Well all you've just described is possible with JUnit afaics
Avatar of dhuma

ASKER

You meant, what ever we plan to do , just stuff into the JUnit test case?
Avatar of dhuma

ASKER

something like using the Java task in the Junit ?
Avatar of dhuma

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
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dhuma

ASKER

thanks