Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Murach's Java Servlets and JSP: Testing Applications  RSS feed

 
Bruce Alspaugh
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36430
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider a book like "Test Driven" fpr these more advanced concepts.
 
Bruce Alspaugh
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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.
 
Joel Murach
Author
Ranch Hand
Posts: 91
11
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!