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?
SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
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.
Joined: Oct 01, 2001
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.