SlideShare a Scribd company logo
PRATEEK YADAV
INFOSYS LTD Pune
AUTOMATION TESTING APPROACH
FOR RESPONSIVE WEB DESIGN
By PrateekYadav, NirmalPaul Jacob
Abstract
Now a days, most of the websitesare beingdeveloped asResponsive
webdesign(RWD) websites.Testingthe same setof test cases on all
the available devicesinthe market today ispractically impossible due
to the high cost factor, availabilityof all devicesand amount of effort
requiredto test on all these devices. ThisPaper talks about using
multiple toolsavailable inthe market currently for testingRWD
website and our experiencesrelatedtothem
Context
In the market today, there
are a large numberof
deviceswithdifferent
resolutionsand screensizes.
A tough competitionexists
whereineveryclientwants
theirapplication web pages
to run on all these devices.
The RWD web pageslayout
will adjustbased on the
screen size and PPI of the
device.
The main challenge for
testingRWD web pages is
that the automation script
generatedfor one browser
one platformwill onlycover
the functionality,behavior
and workflow.But the same
automation script running on
differentdevicesignoresthe
lookand feel,Layoutand UI
alignment.
We have focusedmajorly on
screenshotanalysisand pixel
by pixel comparison.We also
have capabilityto execute
parallel testcases for RWD
website across multiple
deviceshavingmultiple
resolutionsinone go along
withcontinuous integration
using SeleniumandJenkins.
Brief onRWD Testing
RWD is the multi device
strategy in whichwe develop
one html page which can be
renderedin all the available
device form factors.
RWD Testing focusseson
testingthe same web page on
differentOS,platform and
browser combinationwith
differentdeviceshaving
differentresolutionsand
screen size.
ChallengesTestingRWD
 Lack of proper Automation
Framework, so if there is
slightchange in the
requirementrequireshuge
manual effortand time.
 Targeting the scenarios
which can be automated
and which can’t be
automated.
 Text field, Button, frames
fittingthe screen.
 Font size,textand color is
consistentfor each type of
text.
 Image is losingitscontent
on differentscreen
resolution
 Response time of website
in desktopvs mobile
 Physical size of the screen
 Screen Density(Dots per
inch) – dpi - quantityof
pixelswithinaphysical
area of the screen
 Resolution – number of
physical pixelsona screen
– more important when
you developforone kind
of screen.
 Orientation – landscape
/portrait – rotation
 Density independence:
Allowsto preserve the
physical size of an object
(i.e.a button) when
presentedon screensthat
differindensity.
Brief onRWD TestingTools/ Frameworks/Plugins
Integration
with
Selenium+
Jenkins
Galen
Framework
Ghost
Inspector
Tool
Wraith
Tool
Huxley
Tool
Browsera
Tool
PRATEEK YADAV
Browsera
Tests the layoutdifferencesandscripting error in webapplication. License is requiredand
integrationwithbuildtools is not possible.We have to provide URL and selectthe browser
which we want to act as baseline. Testingisdone across wide variety of browser combinations
withreference to baseline browser.Compares the DOM structure and testreport is generated
withscreenshot.
Galen Framework
Galen is an open source tool for layout testing.Galen launchesthe browser and resizesthe
browser to requiredsize and tests the web page according to the specifications.Galenplugin
can be addedto existingseleniumscripts.Ituses seleniumforinteractingwith elementsonthe
page and getting theirlocationsand dimensions.Galencan also be addedto seleniumgridand
RWD testingcan be done parallel on multiple devices,multipleresolutionandsize.Thissaves
huge amount of testingtime and lesstestingresource will be required.End to end Jenkins
Integrationcan be done.
PRATEEK YADAV
Ghost Inspector
This is a record and playback tool for webapplication testing. It is also usedfor UI alignment
testingby comparing the screenshotsPixel by Pixel.We can set the tolerance level from0% to
90%, which indicateshow much amount of change is allowable inscreen shot. Browser to
Browser screenshot comparison is done.We can notifytestingteam by configuringthe email
ids.We can export the recordedscript in SeleniumHTML format. Exported Seleniumscriptcan
be usedto our existingseleniumframeworkand endto endintegrationwith Jenkinscan be
done.This tool can be integratedwith others toolslike Travis chat, Git Hub, OpsGenie, circleCi.
Huxley
Huxleyis a test-like systemforcatching visual defects inWeb applications.Huxleyruns in two
modesRecord mode and playback mode.Using seleniumwebdriverwe can record our actions
on browser. In playback mode it uses seleniumwebdriver,takesscreenshotand compares with
original screenshot.End to end integration withJenkinscan be done.
Wraith
This is a screenshotcomparison tool developedbyBBC news.Wraith uses screenshotcreated in
a differentenvironment tocompare and then creates a screenshothighlightingdifferenceswith
the affectedarea in blue color. The output file containsthe percentage of pixelsthat have
changed. This tool has capabilityto integrate with Selenium. Endto End integrationwith
Jenkinscan be done.
Comparisonof Tools/Frameworks
Assessment Criteria
Galen
Framework
Ghost Inspector
Tool
Huxley Wraith Tool Browsera Tool
Licensing Open Source Licensed Open Source Open Source Licensed
Build and Deployment
Integration
TypesofBrowser supported
Learnabilityand Ease ofuse
Language Supported Java Record and Play Python Ruby Record and play
APItestingSupport No Yes No No No
Integration withExisting
Selenium framework&Jenkins
CI
Yes Yes Yes Yes No
Reportingand Analysis
Case Study
Context
We had an RWD website whichneededto be testedacross wide variety of browser
combinations.The complexityincreasedwhenthe page designchanges for variousscreen sizes
and orientations.All the new featurestest cases coveringthe requirementsfora particular
release,includingpositive,negative scenariosneedtobe testedacross multiple browserson
multiple devices.All the regressionfeaturestestcases coveringthe End to End scenarios of all
previousrelease,includingpositive,negativescenariosalsoneedto be executedonmultiple
browsers on multiple deviceshavingdifferentresolutions. EachRelease will have some new
requirementsbecause of whichthe regressiontest suite would needto be executedagain and
again.
Solution
We had an existingseleniumframeworkintegratedwithJenkins.We addedthe Galen
framework to our existingseleniumframework.Throughthe use of seleniumgrid we testedUI
across wide varietyof browser combinationson differentmachines.Through Jenkinswe are
triggeringthe test case execution.
Ghost Inspectorcan also be usedto generate script for webapplicationtesting.The recorded
script can be exportedas SeleniumHTML format. We can add our script to our existing
Seleniumframework withJenkins CI.Similarly Wraith, Huxleycan be used.
Technologies
 OS Platforms: iOS/Android
 Devices:iPhone/iPad/SamsungTab
 Tools: Selenium,Galen framework,Ghost Inspector Tool, Jenkins CI,SeleniumGrid
framework,Maven
BusinessImpact
Savingsaccounted in termsof Automation,RegressionTest Suite,Process improvements,
DevelopmentReusable artifacts, and Performance tuning and value addition.
About the Authors
Prateek Yadav
Technology Analyst
Prateekis Technology Analystwith Infosys.He has over 5 years of experience of manual
and Automation testing tools. His interest and expertise include exploring open source
tools available in market.
Nirmal Paul Jacob
Technology Architect
Nirmal is Technology Architect with Infosys. He has over 9 years of experience. He has
beenworkingon mobile applicationdevelopmentprojectsoverthe last5 yearsand prior
to that in web development projects. He has special interest in automation technology
used in mobile development and QA

More Related Content

What's hot (20)

PPTX
Testing in DevOps world
Moataz Nabil
 
PPTX
How To Use Jenkins for Continuous Load and Mobile Testing with SOASTA & Cloud...
SOASTA
 
PPTX
Mobile UI Testing using Appium and Docker
Moataz Nabil
 
PDF
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
PDF
Trust Your Pipeline - Automatically Testing and End-to-End Java Application
Elias Nogueira
 
PPTX
Story Testing Approach for Enterprise Applications using Selenium Framework
Oleksiy Rezchykov
 
DOC
Mca 02 year_exp_unit_automation_testing_ldra_rtrt_c -
sandeep kumar gupta
 
PPTX
Mastering Test Automation: How To Use Selenium Successfully
SpringPeople
 
PPTX
Continuous delivery applied
Mike McGarr
 
PPTX
Zalenium - How to run Selenium Script using Docker and Selenium Grid
Moataz Nabil
 
PPTX
Continuous Testing and New Tools for Automation - Presentation from StarWest ...
Sauce Labs
 
PPTX
Jenkins as the Test Reporting Framework
Nitin Sharma
 
PPTX
ATAGTR2017 Testing of Connected Cars Based on IOT
Agile Testing Alliance
 
PPTX
Automated Acceptance Tests & Tool choice
toddbr
 
PPTX
ATAGTR2017 SPEAKING EYE for differently abled people to see the web content
Agile Testing Alliance
 
PPT
Continuous Integration
Joseph Wang
 
PPTX
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Moataz Nabil
 
PPTX
The Right Tool for the Right Project
Ori Bendet
 
PDF
Modern Functional Test Automation Through Visual AI - webinar w/ Raja Rao
Applitools
 
Testing in DevOps world
Moataz Nabil
 
How To Use Jenkins for Continuous Load and Mobile Testing with SOASTA & Cloud...
SOASTA
 
Mobile UI Testing using Appium and Docker
Moataz Nabil
 
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
Trust Your Pipeline - Automatically Testing and End-to-End Java Application
Elias Nogueira
 
Story Testing Approach for Enterprise Applications using Selenium Framework
Oleksiy Rezchykov
 
Mca 02 year_exp_unit_automation_testing_ldra_rtrt_c -
sandeep kumar gupta
 
Mastering Test Automation: How To Use Selenium Successfully
SpringPeople
 
Continuous delivery applied
Mike McGarr
 
Zalenium - How to run Selenium Script using Docker and Selenium Grid
Moataz Nabil
 
Continuous Testing and New Tools for Automation - Presentation from StarWest ...
Sauce Labs
 
Jenkins as the Test Reporting Framework
Nitin Sharma
 
ATAGTR2017 Testing of Connected Cars Based on IOT
Agile Testing Alliance
 
Automated Acceptance Tests & Tool choice
toddbr
 
ATAGTR2017 SPEAKING EYE for differently abled people to see the web content
Agile Testing Alliance
 
Continuous Integration
Joseph Wang
 
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Moataz Nabil
 
The Right Tool for the Right Project
Ori Bendet
 
Modern Functional Test Automation Through Visual AI - webinar w/ Raja Rao
Applitools
 

Viewers also liked (20)

PPTX
Yahya Devqaops updated
Agile Testing Alliance
 
PPTX
Big Data - Hadoop and MapReduce - Aditya Garg
Agile Testing Alliance
 
PPTX
Modelling QA Transformation with Prime
Agile Testing Alliance
 
PPTX
50+ ways to improve tester - programmer relationship
Agile Testing Alliance
 
PPTX
The New Gives and Takes in a testers role
Agile Testing Alliance
 
PPTX
Amalgamation of BDD, parallel execution and mobile automation
Agile Testing Alliance
 
PDF
Digital Assurance - Today & Tomorrow
Agile Testing Alliance
 
PPTX
#ATAGTR2016 Twitter Action
Agile Testing Alliance
 
PPTX
Introduction - #ATAGTR2016
Agile Testing Alliance
 
PPTX
Dr. shankar-dev ops-davinci_code_GTR
Agile Testing Alliance
 
PPTX
Fidelity Test Data Management
Agile Testing Alliance
 
PDF
Demystifying Devops - Uday kumar
Agile Testing Alliance
 
PDF
Using Docker for Testing - Mukta
Agile Testing Alliance
 
PDF
IoT: Testing - Shardul Rao
Agile Testing Alliance
 
PPTX
Augmented Reality & Software Testing - Sourabh d
Agile Testing Alliance
 
PPTX
Service Virtualization - Kalpna
Agile Testing Alliance
 
PPTX
WiKi Based Automation Testing: Fitness & DevOps
Agile Testing Alliance
 
PPTX
Test Engagement - Vishal Prasad
Agile Testing Alliance
 
PPTX
Continuous Performance Testing with Taurus and Jmeter
Agile Testing Alliance
 
PPTX
Test Automation in Agile
Agile Testing Alliance
 
Yahya Devqaops updated
Agile Testing Alliance
 
Big Data - Hadoop and MapReduce - Aditya Garg
Agile Testing Alliance
 
Modelling QA Transformation with Prime
Agile Testing Alliance
 
50+ ways to improve tester - programmer relationship
Agile Testing Alliance
 
The New Gives and Takes in a testers role
Agile Testing Alliance
 
Amalgamation of BDD, parallel execution and mobile automation
Agile Testing Alliance
 
Digital Assurance - Today & Tomorrow
Agile Testing Alliance
 
#ATAGTR2016 Twitter Action
Agile Testing Alliance
 
Introduction - #ATAGTR2016
Agile Testing Alliance
 
Dr. shankar-dev ops-davinci_code_GTR
Agile Testing Alliance
 
Fidelity Test Data Management
Agile Testing Alliance
 
Demystifying Devops - Uday kumar
Agile Testing Alliance
 
Using Docker for Testing - Mukta
Agile Testing Alliance
 
IoT: Testing - Shardul Rao
Agile Testing Alliance
 
Augmented Reality & Software Testing - Sourabh d
Agile Testing Alliance
 
Service Virtualization - Kalpna
Agile Testing Alliance
 
WiKi Based Automation Testing: Fitness & DevOps
Agile Testing Alliance
 
Test Engagement - Vishal Prasad
Agile Testing Alliance
 
Continuous Performance Testing with Taurus and Jmeter
Agile Testing Alliance
 
Test Automation in Agile
Agile Testing Alliance
 
Ad

Similar to Automation Testing Approach for Responsive Web Design (20)

PPTX
7 automated visual testing tools for you
OpenSense Labs
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
PPTX
MyHeritage - End 2 End testing Infra
MatanGoren
 
PDF
Jenkins and visual regression – Exove
Exove
 
PDF
Testing at the Speed of Mobile: Adopting Continuous Integration with Agile
Keynote Mobile Testing
 
PPTX
MyHeritage - QA Automations in a Continuous Deployment environment
MatanGoren
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
PDF
Arquillian: Effective tests from the client to the server
Lukáš Fryč
 
PPTX
Selenium
abiramimaya
 
PPTX
Continuous Mobile - Testing Using Jenkins - A How To Guide
KeynoteSystems
 
PPTX
Continuous Mobile Testing Using Jenkins - A How To Guide
KeynoteSystems
 
PPTX
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
hemasubbu08
 
PPTX
Mobile Testing Challenges Lighting Talk with www.softtest.ie
David O'Dowd
 
KEY
Selenium at STPCon - Dallas 2011
hugs
 
PPT
Selenium for everyone
Tft Us
 
PDF
Selenium -Test automation for web applications
AnisGhelissi
 
ODP
Mastering selenium for automated acceptance tests
Nick Belhomme
 
PPTX
Intro
Vivek Rajasekar
 
PDF
Designing Top-Class Test Suites for Web Applications
Lukáš Fryč
 
PPTX
Introduction to selenium
Archana Krushnan
 
7 automated visual testing tools for you
OpenSense Labs
 
Test Automation Using Selenium
Nikhil Kapoor
 
MyHeritage - End 2 End testing Infra
MatanGoren
 
Jenkins and visual regression – Exove
Exove
 
Testing at the Speed of Mobile: Adopting Continuous Integration with Agile
Keynote Mobile Testing
 
MyHeritage - QA Automations in a Continuous Deployment environment
MatanGoren
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Arquillian: Effective tests from the client to the server
Lukáš Fryč
 
Selenium
abiramimaya
 
Continuous Mobile - Testing Using Jenkins - A How To Guide
KeynoteSystems
 
Continuous Mobile Testing Using Jenkins - A How To Guide
KeynoteSystems
 
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
hemasubbu08
 
Mobile Testing Challenges Lighting Talk with www.softtest.ie
David O'Dowd
 
Selenium at STPCon - Dallas 2011
hugs
 
Selenium for everyone
Tft Us
 
Selenium -Test automation for web applications
AnisGhelissi
 
Mastering selenium for automated acceptance tests
Nick Belhomme
 
Designing Top-Class Test Suites for Web Applications
Lukáš Fryč
 
Introduction to selenium
Archana Krushnan
 
Ad

More from Agile Testing Alliance (20)

PPTX
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
Agile Testing Alliance
 
PDF
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
Agile Testing Alliance
 
PPTX
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
Agile Testing Alliance
 
PDF
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
Agile Testing Alliance
 
PDF
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
Agile Testing Alliance
 
PPTX
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
Agile Testing Alliance
 
PPTX
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
Agile Testing Alliance
 
PPTX
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
Agile Testing Alliance
 
PDF
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
Agile Testing Alliance
 
PPTX
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
Agile Testing Alliance
 
PPTX
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
Agile Testing Alliance
 
PPTX
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
Agile Testing Alliance
 
PPTX
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
Agile Testing Alliance
 
PDF
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
Agile Testing Alliance
 
PPTX
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
Agile Testing Alliance
 
PDF
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
Agile Testing Alliance
 
PDF
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
Agile Testing Alliance
 
PPTX
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
Agile Testing Alliance
 
PDF
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
Agile Testing Alliance
 
PPTX
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
Agile Testing Alliance
 
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
Agile Testing Alliance
 
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
Agile Testing Alliance
 
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
Agile Testing Alliance
 
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
Agile Testing Alliance
 
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
Agile Testing Alliance
 
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
Agile Testing Alliance
 
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
Agile Testing Alliance
 
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
Agile Testing Alliance
 
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
Agile Testing Alliance
 
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
Agile Testing Alliance
 
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
Agile Testing Alliance
 
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
Agile Testing Alliance
 
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
Agile Testing Alliance
 
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
Agile Testing Alliance
 
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
Agile Testing Alliance
 
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
Agile Testing Alliance
 
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
Agile Testing Alliance
 
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
Agile Testing Alliance
 
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
Agile Testing Alliance
 
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
Agile Testing Alliance
 

Recently uploaded (20)

PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 

Automation Testing Approach for Responsive Web Design

  • 1. PRATEEK YADAV INFOSYS LTD Pune AUTOMATION TESTING APPROACH FOR RESPONSIVE WEB DESIGN By PrateekYadav, NirmalPaul Jacob Abstract Now a days, most of the websitesare beingdeveloped asResponsive webdesign(RWD) websites.Testingthe same setof test cases on all the available devicesinthe market today ispractically impossible due to the high cost factor, availabilityof all devicesand amount of effort requiredto test on all these devices. ThisPaper talks about using multiple toolsavailable inthe market currently for testingRWD website and our experiencesrelatedtothem
  • 2. Context In the market today, there are a large numberof deviceswithdifferent resolutionsand screensizes. A tough competitionexists whereineveryclientwants theirapplication web pages to run on all these devices. The RWD web pageslayout will adjustbased on the screen size and PPI of the device. The main challenge for testingRWD web pages is that the automation script generatedfor one browser one platformwill onlycover the functionality,behavior and workflow.But the same automation script running on differentdevicesignoresthe lookand feel,Layoutand UI alignment. We have focusedmajorly on screenshotanalysisand pixel by pixel comparison.We also have capabilityto execute parallel testcases for RWD website across multiple deviceshavingmultiple resolutionsinone go along withcontinuous integration using SeleniumandJenkins.
  • 3. Brief onRWD Testing RWD is the multi device strategy in whichwe develop one html page which can be renderedin all the available device form factors. RWD Testing focusseson testingthe same web page on differentOS,platform and browser combinationwith differentdeviceshaving differentresolutionsand screen size. ChallengesTestingRWD  Lack of proper Automation Framework, so if there is slightchange in the requirementrequireshuge manual effortand time.  Targeting the scenarios which can be automated and which can’t be automated.  Text field, Button, frames fittingthe screen.  Font size,textand color is consistentfor each type of text.  Image is losingitscontent on differentscreen resolution  Response time of website in desktopvs mobile  Physical size of the screen  Screen Density(Dots per inch) – dpi - quantityof pixelswithinaphysical area of the screen  Resolution – number of physical pixelsona screen – more important when you developforone kind of screen.  Orientation – landscape /portrait – rotation  Density independence: Allowsto preserve the physical size of an object (i.e.a button) when presentedon screensthat differindensity. Brief onRWD TestingTools/ Frameworks/Plugins Integration with Selenium+ Jenkins Galen Framework Ghost Inspector Tool Wraith Tool Huxley Tool Browsera Tool
  • 4. PRATEEK YADAV Browsera Tests the layoutdifferencesandscripting error in webapplication. License is requiredand integrationwithbuildtools is not possible.We have to provide URL and selectthe browser which we want to act as baseline. Testingisdone across wide variety of browser combinations withreference to baseline browser.Compares the DOM structure and testreport is generated withscreenshot. Galen Framework Galen is an open source tool for layout testing.Galen launchesthe browser and resizesthe browser to requiredsize and tests the web page according to the specifications.Galenplugin can be addedto existingseleniumscripts.Ituses seleniumforinteractingwith elementsonthe page and getting theirlocationsand dimensions.Galencan also be addedto seleniumgridand RWD testingcan be done parallel on multiple devices,multipleresolutionandsize.Thissaves huge amount of testingtime and lesstestingresource will be required.End to end Jenkins Integrationcan be done.
  • 5. PRATEEK YADAV Ghost Inspector This is a record and playback tool for webapplication testing. It is also usedfor UI alignment testingby comparing the screenshotsPixel by Pixel.We can set the tolerance level from0% to 90%, which indicateshow much amount of change is allowable inscreen shot. Browser to Browser screenshot comparison is done.We can notifytestingteam by configuringthe email ids.We can export the recordedscript in SeleniumHTML format. Exported Seleniumscriptcan be usedto our existingseleniumframeworkand endto endintegrationwith Jenkinscan be done.This tool can be integratedwith others toolslike Travis chat, Git Hub, OpsGenie, circleCi. Huxley Huxleyis a test-like systemforcatching visual defects inWeb applications.Huxleyruns in two modesRecord mode and playback mode.Using seleniumwebdriverwe can record our actions on browser. In playback mode it uses seleniumwebdriver,takesscreenshotand compares with original screenshot.End to end integration withJenkinscan be done. Wraith This is a screenshotcomparison tool developedbyBBC news.Wraith uses screenshotcreated in a differentenvironment tocompare and then creates a screenshothighlightingdifferenceswith the affectedarea in blue color. The output file containsthe percentage of pixelsthat have
  • 6. changed. This tool has capabilityto integrate with Selenium. Endto End integrationwith Jenkinscan be done. Comparisonof Tools/Frameworks Assessment Criteria Galen Framework Ghost Inspector Tool Huxley Wraith Tool Browsera Tool Licensing Open Source Licensed Open Source Open Source Licensed Build and Deployment Integration TypesofBrowser supported Learnabilityand Ease ofuse Language Supported Java Record and Play Python Ruby Record and play APItestingSupport No Yes No No No Integration withExisting Selenium framework&Jenkins CI Yes Yes Yes Yes No Reportingand Analysis
  • 7. Case Study Context We had an RWD website whichneededto be testedacross wide variety of browser combinations.The complexityincreasedwhenthe page designchanges for variousscreen sizes and orientations.All the new featurestest cases coveringthe requirementsfora particular release,includingpositive,negative scenariosneedtobe testedacross multiple browserson multiple devices.All the regressionfeaturestestcases coveringthe End to End scenarios of all previousrelease,includingpositive,negativescenariosalsoneedto be executedonmultiple browsers on multiple deviceshavingdifferentresolutions. EachRelease will have some new requirementsbecause of whichthe regressiontest suite would needto be executedagain and again. Solution We had an existingseleniumframeworkintegratedwithJenkins.We addedthe Galen framework to our existingseleniumframework.Throughthe use of seleniumgrid we testedUI across wide varietyof browser combinationson differentmachines.Through Jenkinswe are triggeringthe test case execution. Ghost Inspectorcan also be usedto generate script for webapplicationtesting.The recorded script can be exportedas SeleniumHTML format. We can add our script to our existing Seleniumframework withJenkins CI.Similarly Wraith, Huxleycan be used. Technologies  OS Platforms: iOS/Android  Devices:iPhone/iPad/SamsungTab  Tools: Selenium,Galen framework,Ghost Inspector Tool, Jenkins CI,SeleniumGrid framework,Maven BusinessImpact Savingsaccounted in termsof Automation,RegressionTest Suite,Process improvements, DevelopmentReusable artifacts, and Performance tuning and value addition.
  • 8. About the Authors Prateek Yadav Technology Analyst Prateekis Technology Analystwith Infosys.He has over 5 years of experience of manual and Automation testing tools. His interest and expertise include exploring open source tools available in market. Nirmal Paul Jacob Technology Architect Nirmal is Technology Architect with Infosys. He has over 9 years of experience. He has beenworkingon mobile applicationdevelopmentprojectsoverthe last5 yearsand prior to that in web development projects. He has special interest in automation technology used in mobile development and QA