Originally posted by Manish Hatwalne:
I have HTTP-UNIT and I was trying to test this with it, but am not too familiar with these tools, so don't know how exactly I can test it. Especially trying to understand how can I get the resultant HTML in my test by passing the parameters to struts action.
I would suggest reading the
cookbook to get started with the basics and then examining the
API to figure out what kind of things you can do with certain types of objects.
For example, the WebResponse#getInputStream() method would probably be relevant for you if you need to access the raw HTML source code produced by your web application (excluding HTTP headers).