• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Murach's Java Servlets and JSP: Testing Applications

 
Greenhorn
Posts: 28
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't find any discussion in the book about how to go about automating the testing of a Servlet/JSP application. The exercises simply have the reader run the application and verify that they work. For larger applications, this is not practical. It would be better if you could use tools like JUnit or TestNG to run automated tests. Unfortunately, there is no discussion of how to organize your code so it can execute in a standalone test environment. I would like to avoid the overhead of tools like Selenium that automate the browser so the tests run quickly.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Consider a book like "Test Driven" fpr these more advanced concepts.
 
Bruce Alspaugh
Greenhorn
Posts: 28
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Consider a book like "Test Driven" fpr these more advanced concepts.


Can you provide a link to the book to which you are referring?

If anyone else knows good references for how to automate the testing of JSPs/servlet applications, please post them.
 
Author
Posts: 142
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bruce. I agree with your point that it's necessary to automate testing for a larger application. I'm not sure if this book is the best place to show how to do that. I will look into it. If it's possible to show how to do that without using too many pages, then I would like to add some coverage of a tool like JUnit in the next edition. Otherwise, it might be best to leave this to a separate book such as the one Jeanne suggested.

Coincidentally, I am currently working on upgrading Murach's Java Programming from Java SE 7 to Java SE 8, and we are planning on adding some coverage of JUnit to that book. If that goes well, we may add similar coverage to the next edition of the servlet/JSP book.

Thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic