• 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

BDD in Action: Testing Web Interfaces

 
Ranch Hand
Posts: 883
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
John,
On another thread you mentioned that testing Web Services is much easier than testing web interfaces, which I took to mean web pages. Even if that's wrong, I'm wondering what tools you'd recommend for testing a web page. Not things like 'does it look nice', but do the right error messages appear when the user tries to log in with no password.

I wrote Spock specifications to drive Selenium 2 code and exercised a several page web-based wizard. It wasn't difficult, and let me test all the pathways whenever a change was made to the underlying code. Since I was looking for the contents of specifically named divs, it wasn't fragile either.

Do you have much experience with this kind of testing, or some suggestions for better tools or approaches?

Thanks,
Burk
 
Author
Posts: 43
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I do a *lot* of this sort of testing :-). What you are describing sounds like what I would call low-level UI testing, and the approach you describe is fine for this. If you want to use BDD and web testing to also document how the requirements have been delivered, you can use Webdriver in conjunction with tools like JBehave with Thucydides.
 
Burk Hufnagel
Ranch Hand
Posts: 883
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks John, I appreciate the advice. As I stated in another thread, thanks for all the help and for giving me so many good ideas.
Burk
 
John Smart
Author
Posts: 43
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My pleasure!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic