Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Next Generation Java Testing - Webapps

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Cedric and Hani.

My questions are about what parts of testing webapps does cover your book. Does it cover JSPs, HTML compatibility between browsers, Javascript and/or AJAX? Thanks.

Joan Horta
 
author & internet detective
Posts: 41185
848
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
Joan,
As you can see in the table of contents, servlets are covered. In particular, mocks and in container testing (commons-httpclient and Jetty).
 
Joan Horta Tosas
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saw the TOC before posting, and I saw the servlets testing, but didn't know if that included the things I asked, which were not strictly related to JEE, but to HTML (compatibility tests with different browsers), Javascript and AJAX generated by this servlets and JSPs...
 
Jeanne Boyarsky
author & internet detective
Posts: 41185
848
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
Joan,
It doesn't. The focus of that section lies elsewhere.

JUnit in Action covers those concepts well (except AJAX.) In JUnit rather than TestNG of course.
 
author
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We do cover Selenium briefly, which allows you to do cross browser testing.

I'll be honest though and say that despite using it and getting to know it, it didnt quite 'feel' right, and I couldnt get myself happy enough with its usage to be comfortable integrating it into my testing toolbox, so to speak.

Testing ajax is actually much simpler than testing html. We dont explicitly cover it (though we probably should have, its a great buzzword!) but the principles are exactly the same. You can for example run your servlets (or whatever is serving ajax) in-memory and invoke it as a browser would, then test the response. It's simpler than testing html because the response fragments are much smaller and easier to work with.
 
Joan Horta Tosas
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, thanks for your responses.
 
author
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Joan Horta Tosas:
I saw the TOC before posting, and I saw the servlets testing, but didn't know if that included the things I asked, which were not strictly related to JEE, but to HTML (compatibility tests with different browsers), Javascript and AJAX generated by this servlets and JSPs...



For your information, there is a lot of material describing how to use TestNG and Selenium together. Do a Google search on "testng selenium" and you'll find several articles (one of which on developerworks.com, which is not responding right now).

--
Cedric
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic