Originally posted by Deepa More:
data of test case should be read from or write into some xml file?
Regarding reading the data... If you're using
JUnit 3.8, see
here for an example of how to write data-driven test cases. If you're using JUnit 4.x, see
this instead.
I'm not sure, though, what would you like to write into the XML file?