This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes What is the best way to test and debug servelets within Eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "What is the best way to test and debug servelets within Eclipse?" Watch "What is the best way to test and debug servelets within Eclipse?" New topic
Author

What is the best way to test and debug servelets within Eclipse?

Benjamin Weaver
Ranch Hand

Joined: Apr 08, 2003
Posts: 161
I have dimly heard of various tools for testing servlets in Eclipse but did not know which was best and exactly for what?

What, within Eclipse, enables testing of servlets?
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Moving this to the "IDEs, Version Control and other tools" forum as this is clearly an Eclipse related topic.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26193
    
  66

Benjamin,
To test the servlet "for real", you need to deploy it to a server and test it. There are many Eclipse plugins for Tomcat - a free lightweight server. (Seach this forum for details.)

You also may be interested in writing automated tests. You can use JUnit to unit test the servlet passing it a mock request from easyMock/jMock. You can integration test the servlet on the server using Cactus or JWebUnit.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the best way to test and debug servelets within Eclipse?
 
Similar Threads
J2ME Plug-in for Eclipse?
JUnit in Action by Vincent Massol, Ted Husted
Servlet in Eclipse
Unit testing framework for testing servlets
Best J2EE plug-in for Eclipse