File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testing Servlet (like the Firefox Watch "Testing Servlet (like the Firefox New topic

Testing Servlet (like the Firefox's poster)

Eyal Golan

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. ?


Gian Franco
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

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.

Alfred Peterson

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:

Consider Paul's rocket mass heater.
subject: Testing Servlet (like the Firefox's poster)
It's not a secret anymore!