File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BDD in Action: Testing Web Interfaces

 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
John Smart
Author
Ranch Hand
Posts: 43
5
  • 0
  • Mark post as helpful
  • send pies
  • 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: 814
3
  • 0
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 43
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My pleasure!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic