VISUAL AUTOMATED REGRESSION TESTING - Sriram Angajala

Slides:



Advertisements
Similar presentations
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Advertisements

Software Testing. Legacy Code Problem Does this accurately describe a Rick-roll?
Selenium HP Web Test Tool Training
© 2007 IBM Corporation IBM Emerging Technologies Enabling an Accessible Web 2.0 Becky Gibson Web Accessibility Architect.
Where Do I Start REFERENCE: LEARNING WEB DESIGN (4 TH EDITION) BY ROBBINS 2012 – CHAPTER 1 (PP. 3 – 14)
Responsive Web Design Design websites so that they can adapt to different devices seamlessly. Image by Muhammed RafizeldiMuhammed Rafizeldi.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – February 2013.
Joel Bapaga on Web Design Strategies Technologies Commercial Value.
WorkPlace Pro Utilities.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
Responsive design - Bedrock to our site Responsive site templates included.
Web Automation Testing With Selenium By Rajesh Kanade.
Agile and the automated testing of accessibility
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Reading Flash. Training target: Read the following reading materials and use the reading skills mentioned in the passages above. You may also choose some.
ScriptOnce™ & Best Practices. Agenda 2 Automation that works ScriptOnce –Minimal maintenance –Easy to add devices Robustness –Reliable Scripts - Minimize.
EFFECTIVE QA PROCESS FOR PVC Prepared by:PVC QA Team.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
Add Automated Testing to Your Project in an Afternoon Michael Sherron, Technical Architect.
1 Company Confidential Need a Mobile DotNetNuke Site? Get One the Quick and Easy Way Using CSS Media Queries Amelia Marschall Partner & Creative Director.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Using React, Drupal and Google Chrome to build an interactive kiosk + + =
And Mobile Web Browsers
DHTML.
Appium Studio Appium testing made easy at any scale.
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
Dreamweaver – Setting up a Site and Page Layouts
Internet Made Easy! Make sure all your information is always up to date and instantly available to all your clients.
Implementing Responsive Design UNIT I.
Leverage your Business with Selenium Automation Testing
How to Test a Complex ERP Application using a Data-Driven Framework
4.01B Authoring Languages and Web Authoring Software
Automation Approach for Dynamic and Responsive Web Applications
Concepts for fluid layout
Web Design Principles.
Introduction of Selenium Webdriver Using Java
Use Office UI Fabric React to Build Beauty with SharePoint
Web Browsers & Mobile Web Browsers.
Visual Designer – Tips and Tricks
Developing Web-Based Applications
Creating a Baseline Grid
Galen - Automated testing of look and feel
Atit Leelasuksan Rungroj Maipradit
Top 5 Front End Development Tools. 1. Sublime Text Sublime Text may be a super quick and have packed text and development editor. If you're about to be.
Prepared by Kimberly Sayre and Jinbo Bi
React Revived Web Driver IO for Testers
RemoteLaunch - Overview
What is selenium? Selenium is a portable software-testing framework for web applications. Selenium provides a playback (formerly also recording) tool.
Dynamic Web Pages JavaScript Jill Thomas Oct 14, 2003.
4.01B Authoring Languages and Web Authoring Software
Web scraping tools, an introduction
TEMPLATE.
Welcome to Automated Visual regression testing
Introduction UI designer stands for User Interface designer. UI designing is a type of process that is used for making interfaces in the software or the.
Pattern Libraries Leveraging Atomic Design and Pattern Lab to Develop a Living Visual Style Guide Jayson Jaynes, ITS Web Services Web Developer Mark Miller,
Agile testing for web API with Postman
Digital Instinct - Selenium Monkey Test Analyst By David Williams
Bringing more value out of automation testing
Background We would like to combine existing User guide and Admin guide currently in PDF form into a single HTML master site This master HTML site will.
Introduction to the Desktop Version of CIMSpy/CIMdesk (V 2.3)
Concepts for fluid layout
And Mobile Web Browsers
Web Design Principles.
Bootstrap Direct quote from source: bootstrap/
Is a Content Management System in Your Future?
And Mobile Web Browsers
Automated browser testing with Selenium and C#
Web Application Development Using PHP
Presentation transcript:

VISUAL AUTOMATED REGRESSION TESTING - Sriram Angajala SKILLS MATTER – 11 AUG 2016

Sriram Angajala Sriram.angajala@gmail.com https://uk.linkedin.com/in/sriram-angajala-91a77852

I know Automated Testing, How is it different Why VRT? I know Automated Testing, How is it different Introduction How was it ever tested in past? Agenda Negative Side of WCSS Questions? Demo Tools

Introduction About Visual Regression Testing Tools Demo

Visual Regression Testing? Why What How

Why VRT? Content – Looks – and Feel, Colour contrasting… Every website – need to Rich Contrasting colours Content should look great First impressions

Why VRT? Beautiful on all browsers Testers not concluding their test on Chrome only?? IE also?

Why VRT? Beautiful on all resolutions (X*Y) Lot of effort to make it look beautiful in all sizes and resolutions

Playing around with CSS is costly – It may break ? That’s it? Any thing more… Playing around with CSS is costly – It may break ? @ fonts @height and size @relative heights @margins. Just because an element is on a page does not mean it’s in the right location (or the right size or color). Responsive Websites. Style Guide Based Development – Need more testing on style guides upfront

CSS – How the layout works Styles guides great but when its combined with other elements layout breaks

How to do VRT then – Try manual Lets Start with Unit Testing Css Unit testing is well always there but with compositional classes, you want to test the behaviour, not the implementation Compare page by Page Manually Manually take a baseline images and compare them manually – Manually with Human eye – Lets do a test then User open source image comparison tools Lots of websites and tools ready to do image comparisons just by providing urls – Its great – Even able to find an issue with apple.com – Great – But its not fully automated

Find atleast one difference

Lets see a sample(apple) website http://www.browsera.com/tests/5293#page=35171

Problems with manual VRT? Plan A - Visually Check All Pages X All browsers X All Devices X All resolutions Plan B Visually Check on All Pages X All Browsers X Resolutions Plan C Visually Check Few Pages X Few Browsers Plan D Visually Check Home Page on Chrome and FF

Finally – Automated VRT No manual Efforts on visual testing also. Fit into current automated testing process Test in all resolutions Support mobile testing Go hand and hand with automated testing Focus on specific elements ignoring dynamic areas Generate reports with comparisons Tailor along with selenium tests Ignore browser changes and screen changes

How was it ever Automated tested in past? NO its was not Automated before – Why? Selenium don’t support Visual testing Only functional automated tests across devices to see if every thing work Manual UI testing

How ? Choose a tool based in below parameters CLI – Gulp Support your preferred language Cloud supporting BDD including support GWT Focus on scripting Reports Continuous integration Developers local machine Minimize false positives

I know Automated Testing, How is it different Its the same – that’s what this meetup is all about. Still use your same framework – Just add a Step – THEN – “Everything looks GOOD” in your scenarios

Tools

Tools? No scripting required Browsera Backtac Javascript Cactus CSSCritic CSSLint Fighting Layout Bugs GhostStory Huxley BackstopJS PhantomCSS Wraith Grunt-Photobox

Tools? Java Selenium2-visualdiff  Applitools Ruby https://percy.io/

PhantomCSS PhantomCSS – Oldest Visual Regression Testing Tool based on Javascript. Uses Casper.js and Phontom.js Helps to navigate and take visual screen shots and compare. Cons No reporting tools No test management tools Not along with Webdriver Headless only

Wraith Yes its BBC’s entry, built for performing visual diffs on responsive websites. It allows authors to test various viewport widths, but tests are performed against full screenshots ONLY. One thing it has over PhantomCSS, though, is the ability to ‘fuzz’ the diffs so that tests don’t fail due to platform-specific antialiasing differences. Being written by the BBC it’s received quite a bit of publicity and I suspect it will become fairly popular. It’s built on Ruby, so setting it up on a Windows environment could be a pain Cons Full Page only No Reporting Tool

Selenium2-visualdiff is a Maven plugin for taking screenshots in Selenium webdriver tests, performing a diff and providing a comparative report. It uses some familiar technologies (Maven, Java and Selenium) Cons Not maintained well Full Screen only Cant Ignore dynamic content Link – http://kreyssel.github.io/selenium2-visualdiff/visualdiff.html

AppliTools It integrates with selenium and has the most advanced visual diff algorithm I’ve seen, with support for different resolutions, OS, browsers, and even branches, and exclusion of specific regions Pros Many Well maintained Strong reporting Nice Documentation Recommended for Java and also supports many languages Cons Not open source Cannot well fit with reporting tools

WebdriverCSS? Open source Javascript Based on famous WebdriverIO Extracted from PhantomCSS Uses Webdriver commands to navigate Easy customization Across real Browsers Focus on specific element based on CSS Cons No Report – But Webdriver Admin Panel Can do it

WebdriverCSS how to install? Node Package Manager • NodeJS • Selenium Standalone Server • GraphicsMagick or ImageMagick • webdriver.io • WebdriverCSS plugin for webdriver.io • PhantomJS, Chrome/ChromeDriver, Firefox (Iceweasel may work) • Font Packages (for Linux; OS X and Windows may have plenty installed) • Testing framework (I use Mocha; Jasmine and Cucumber also work) DEMO

Negative Side of AVRT? How to update baseline How to match screen sizes with mobiles False Positives WebdriverCSS not compatible with WebdriverIO Reports not available for Webdriver CSS – Webdriver Admin Panel

Questions?

Please go to meetup page click on link below Feedback? Please go to meetup page click on link below https://www.surveymonkey.co.uk/r/7QQYHGN

Drinks?