aspose file tools*
The moose likes Design and the fly likes BDD in Action: Testing Web Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Design
Bookmark "BDD in Action: Testing Web Interfaces" Watch "BDD in Action: Testing Web Interfaces" New topic
Author

BDD in Action: Testing Web Interfaces

Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
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


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
John Smart
Author
Ranch Hand

Joined: Aug 06, 2013
Posts: 33
    
    5
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

Joined: Oct 01, 2001
Posts: 814
    
    3
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

Joined: Aug 06, 2013
Posts: 33
    
    5
My pleasure!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BDD in Action: Testing Web Interfaces