wood burning stoves 2.0*
The moose likes Servlets and the fly likes what debugging and testing tool for web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "what debugging and testing tool for web application" Watch "what debugging and testing tool for web application" New topic
Author

what debugging and testing tool for web application

priya jain
Greenhorn

Joined: Apr 23, 2003
Posts: 10
Hi ranchers,
I am basically developing small web application in jsp,servlet.But if that module grow and added more features what debugging and testing tools should i know in advance.
What u ppl use in real development?
thanks in advance
priya
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
There are several types of testing like source test tools ,functional test tools ,performance test tools ,load testing ...etc.
Some of the popular tools are winrunner,loadrunner,JUnit,Rational Robot,Silk Test.
For comprehensive info on test tools visit:
http://www.aptest.com/resources.html
priya jain
Greenhorn

Joined: Apr 23, 2003
Posts: 10
hi,
thanks murthy for giving me information about tools but i want to ask whether a developer should also be well versed with testing tools. Should i go in to knowing all these?
Please also tell me wat tools u have used and find it the best
1) for debugging
2) for testing
Some where i read that log4j is for debugging also . I don't know much about it.
I read little about cactus(junit) from testing forum but should i go with it in developing small web applicaiton using jsp,servlet and struts.I am still trying to cope up with struts as it is new for me.
What i am doing is .....just writing jsp and servlet and debugging and testing while running on tomcat and checking/reading about logs. Which approach should I follow???
what should i do now?
priya
[ September 14, 2003: Message edited by: priya jain ]
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
Actually most of the companies have seperate Quality Assurance and Testing people for comprehensive testing.
But knowledge of testing technque are essential for developers. Though they need not be a masters of it.
Coming to your case, unit testing is probably the first testing technique you(any developer) should learn. JUnit is a popular testing tool.It's availabe at http://www.junit.org/index.htm
Coming to debugging, most of the IDE's provide very good debugging facilities like Borland JBuilder,Sun One ..etc., MetaMata's debugging solution allows you to debug JSP code. Traditional Java IDEs such as Sun One and JBuilder allow you to step through code. Coming to log4j it's logging/tracing framework that can send all debugging messages to logs.
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
for example the following link shows Developing, Compiling, Deploying, and Debugging a Sample JSP Component from within the Sun One Studio IDE.
http://developers.sun.com/tools/javatools/articles/S1SEEandS1AS.html
priya jain
Greenhorn

Joined: Apr 23, 2003
Posts: 10
Thanks murthy for clearing my role as developer and giving information .
I am presently using eclipse as an IDE but finding difficulty in debugging throw it.I am going ahead to learn unit testing by junit.
Which IDE u use for web applicaiton.?
One more query....
If i want to show whole processing of my web application with jsp,servlet and all beans classes in UML way.
Should i draw it on paper or there is a tool to represent all modules(classes) as well as JSP's
How u should all class digram and sequence diagram with jsp's?

priya
[ September 14, 2003: Message edited by: priya jain ]
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
I use Borland Jbuilder and Sun One Studio. You can do unit testing from JBuilder itself.You canwrite test cases,execute them ..etc. JBuilder also provides thread level debugging. Optimizer suite can also be integrated with JBuilder.
You can try the trial version of Borland Jbuilder9 Enterprise.Or go for JUnit which is free.
priya jain
Greenhorn

Joined: Apr 23, 2003
Posts: 10
murthy One more query....
If i want to show whole processing of my web application with jsp,servlet and all beans classes in UML way.
Should i draw it on paper or there is a tool to represent all modules(classes) as well as JSP's
How u show all class digram and sequence diagram with jsp's?

thanx in advance
priya
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
There are lot of comprehensive visual modeling tools available. Gone are days where u write design on paper.
I use Rational Rose for visual modeling in UML. Rational rose has extension for J2EE as well. Using this you can model,validate,code and even deploy your entire J2EE application. In rose you can model JSPs,Servlets,EJBs visually. And Rose will automatically generate code for you(skeleton code).
Apart from Rational Rose , you can also use TogetherSoft for UML.
[ September 15, 2003: Message edited by: Murthy Narasimha ]
 
Don't get me started about those stupid light bulbs.
 
subject: what debugging and testing tool for web application