UI regression testing

Status
Not open for further replies.

Tim L

Ars Legatus Legionis
14,039
Subscriptor
In previous jobs the QA dept has run regression tests on the UI to catch unintended consequences of CSS changes, etc, which has been very handy. I'm currently contracting for a very small agency with no formal QA process (I had to set up a build server for build automation and testing) and now I'm finding myself in a situation where some rather silly UI regressions keep slipping past the attention of our UI dev. Rather than make him eyeball every page on the site, I thought some sort of automated test would be handy. It doesn't have to be perfect, just enough to catch more than we would by hand.

I've already looked at Wraith, and while promising I haven't quite got it working yet. Before I go further down that path I thought I'd ask for recommendations as there's bound to be something out there that has escaped my attention. Our dev env is Windows, so anything that works there is preferred, although I'm not averse to firing up a Linux VM - that's how I'm attempting to run Wraith. For magical unicorn bonus points, we're using Team City for builds, so something that could run as a task under that would be awesome.

Anyway, just looking for options really. Free is good, but not essential as theoretically it will pay its way in time saved.
 

jxl

Ars Praefectus
5,020
I've tried a number of automated UI test solutions (Watir, Selenium, MS stuff, some pile of sadness from HP) and they've all been slow, super-fragile, required hand-holding and missed obvious breaks (and people weren't watching when it did catch breaks because it cried wolf so often).

Could I advise not going down that path and just doing code reviews instead? I mean, if the path you're really taking is just "walk a path through the app, taking screenshots every page and attach those as build artifacts" then you've adopted a perfectly cromulent approach, but if it runs slow, maybe just have it run once or twice a day at set intervals.
 

Tim L

Ars Legatus Legionis
14,039
Subscriptor
[url=http:/civis/viewtopic.php?p=30964481#p30964481:11hh3q06 said:
jxl[/url]":11hh3q06]I've tried a number of automated UI test solutions (Watir, Selenium, MS stuff, some pile of sadness from HP) and they've all been slow, super-fragile, required hand-holding and missed obvious breaks (and people weren't watching when it did catch breaks because it cried wolf so often).

Could I advise not going down that path and just doing code reviews instead? I mean, if the path you're really taking is just "walk a path through the app, taking screenshots every page and attach those as build artifacts" then you've adopted a perfectly cromulent approach, but if it runs slow, maybe just have it run once or twice a day at set intervals.

That's pretty much the plan. I'm going to set up a few representative pages on our dev server and have it run through our responsive breakpoints every night, or prior to a staging deployment as part of the release process. It doesn't have to be perfect, or fast, just something that may catch some things we're change-blind to or didn't think to check.

I'm pretty pleased with my solution so far, am hoping to get it up and running under TeamCity today. :)
 

J^M

Ars Scholae Palatinae
815
Subscriptor++
[url=http:/civis/viewtopic.php?p=30964481#p30964481:3o8l2tfy said:
jxl[/url]":3o8l2tfy]some pile of sadness from HP
UFT? That's our standard. :(

Thoughts on using automated testing frameworks for a vendor web app? I offered to look into this for a coworker and I haven't been thrilled by what I've looked at. Manual testing has been killing that team. It takes days for them to run through everything, and in the meantime, the vendor is breakingmaking more changes.

I just hope we haven't done anything like contractually agree that we won't use automated testing on their site.
 

Tim L

Ars Legatus Legionis
14,039
Subscriptor
I've been running my homebrew tests for a couple of weeks now and they're working a treat so far. :)

They don't catch everything, and sometimes churn out a lot of false positives (when something has changed by design), but they've been totally worth it to catch a few things (mostly mobile views) that would have otherwise escaped my attention.

When I have time I'll stick it up on github or something, but it's pretty simple stuff.
 
Status
Not open for further replies.