I have few resources to perform testing on many projects with hundreds of different web pages and the most tedious part is verifying the look and feel of the site is OK. Specially the layouts of HTML elements are not broken.
Is there a way to automate such testing by not developing highly sophisticated AI tools ? :)
Though this question is two years old, I think there's been a huge leap in the field which justifies an updated answer.
There are a number of tools which allows you to perform automated visual testing of your web/mobile application, thus saving valuable time. These tools differ in several ways:
Here's a partial list of tools and their description:
There are actually quite a few more tools, such as PhantomCSS, Huxley, dpxdt and more.
I'll add my vote to Arran's comment that while you /can/ do this, you likely should /not/ spend your valuable time on this. I base this on a lot of years working around UI automation in many different tools including Watir, WebDriver, Selenium RC, Visual Studio, and Telerik's Test Studio.
UI automation is difficult and brittle enough when you're simply trying to do functional testing. Trying to automate look and feel to validate CSS, layout positioning, image appearance, etc. is extraordinarily brittle--even the smallest difference between browsers and the smallest change to the UI will leave you spending a lot of time updating failing tests.
Yes, it's possible. However, keep your sanity by focusing your automation efforts on functionality. Leave visual checks to the tools that do it the quickest and easiest: human eyes.
UPDATE: Please do read the response from dcoder. He/she is absolutely right. There have been some significant (long overdue!) advances in the field. You need to evaluate those tools for fit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With