Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing Servlet (like the Firefox's poster)

 
Eyal Golan
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 979
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eyal,

Did you try HtmlUnit or HttpUnit the latter
worked fine for me in one of my projects.
 
Eyal Golan
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic