File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes Testing Servlet (like the Firefox's poster) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testing Servlet (like the Firefox Watch "Testing Servlet (like the Firefox New topic
Author

Testing Servlet (like the Firefox's poster)

Eyal Golan
Greenhorn

Joined: May 20, 2008
Posts: 21
Hello all,
I've just started working on a very new project that consists as the entry points for the clients web application with servlets.
The data that is transferred is XML and I added a filter that set it (a long with other things).

In order to check that things work, I added to Firefox the Poster plugin. With it, I am putting the correct XML, press POST and see that the correct XML is in the response.

Is there a way of doing so by programming (say I want to add JUnit that does it).
HTTPClient / HTTPPost , others. ?

Thanks,

Eyal
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi Eyal,

Did you try HtmlUnit or HttpUnit the latter
worked fine for me in one of my projects.


"Eppur si muove!"
Eyal Golan
Greenhorn

Joined: May 20, 2008
Posts: 21
Hi Gian,
I know about these tools.
Haven't tried them yet.
It look like HttpUnit is the one I need.

Thanks
Alfred Peterson
Greenhorn

Joined: Aug 17, 2010
Posts: 12
Hello all,

I had been facing the severe bugs while working on the Tomcat servlet container.i am trying to get the production code separated with the test code,but possibly i am not doing it poroper way..please suggest me the use of eclipse integration and is it mandatory..??

Thanks & Regards:
Alfred


emule
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing Servlet (like the Firefox's poster)