Re:Show HN: Automatically create QA environments for your Gi...
by jawns on Tuesday December 03, 2013 @12:02PM
(#6841510)
Can you give more details about Visual Regression Testing? If you're comparing screenshots, how do you account for dynamic content?
[ Parent
| on HN ]
Re:Show HN: Automatically create QA environments for your Gi...
by mpotter on Tuesday December 03, 2013 @12:04PM
(#6841524)
Sure! We use a web driver to simulate browsing in an actual client, so Javascript, etc. is executed as it normally would be.
Re:Show HN: Automatically create QA environments for your Gi...
by 3am on Tuesday December 03, 2013 @12:21PM
(#6841656)
WebDriver/Selenium? That's not really visual, like some kind of CV/OCR tool like Sikuli would be. It's a nice tool, I would be more inclined to use it if it supported more robust test environment provisioning (eg, if the pull request is a schema migration) and it gave more control over how to define my own tests, like Sauce Labs.
edit: never mind, I realized you're probably using the built in screenshot features with webdriver and just diffing the images.
Re:Show HN: Automatically create QA environments for your Gi...
by jawns on Tuesday December 03, 2013 @12:05PM
(#6841535)
But what about content that changes on each page load, like a timestamp or a rotating banner ad? Would that be flagged as a regression?
Re:Show HN: Automatically create QA environments for your Gi...
by mpotter on Tuesday December 03, 2013 @12:34PM
(#6841751)
Yeah, it's not perfect but right now we're solving this with tolerance thresholds on the image diffs.
Re:Show HN: Automatically create QA environments for your Gi...
by maerek on Tuesday December 03, 2013 @12:45PM
(#6841809)
Can you share any more details on how the image diffing is done? BBC has a github repo called Wraith that uses ImageMagick and PhantomJS to accomplish a similar task (without the awesomeness of on-demand testing environments). Always curious to learn more about how people are solving the GUI testing problem on the web.