| Author |
JUNIT to test a web application
|
SaravanaKumar Venugopal
Greenhorn
Joined: May 12, 2012
Posts: 12
|
|
All,
Is there a way to test the web application(My application uses Jsp, Servlet and Struts) starting from Presenatation layer to DAO layer with Ant script.
If there is a method, please provide a sample script
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
Ant would just run the junit test so the Ant part isn't important to the question. There are two main approaches.
Test in browser - selenium is most common. It offers a junit interface but you need a browser installedTest from URL but without browser - JWebUnit is good hereForget about the URL and start at the servlet/struts action/spring controller/etc. - Here you can just use JUnit in container testing
|
[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
|
 |
 |
|
|
subject: JUNIT to test a web application
|
|
|