How to get request scope attribute values thru HttpUnit
Post by:saritha Reddy
My application is built using struts 1.1. We are also using tiles concept.I'm trying to execute some Unit test case using HttpUnit & JUnit. At Java layer I set one ArrayList to request using request.setAttribute().How can i retrive this attribute values in my HttpUnit TestCase.
Post by:Ilja Preuss
You can't, because httpUnit actually isn't a unit testing framework. It's a system testing framework simulating a web client, so all you can do is make assertions about information available at the client side (HTML, cookies etc.).
HttpUnit is coming with ServletUnit that you could possibly be used for this. I'm not totally sure, though. Take a look at the documentation on the httpUnit homepage...