automating the responsive website testing

21
AUTOMATING THE RESPONSIVE WEBSITE TESTING Pranathi Birudugadda

Upload: birudugadda-pranathi

Post on 15-Apr-2017

266 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Automating the responsive website testing

AUTOMATING THE RESPONSIVE WEBSITE

TESTINGPranathi Birudugadda

Page 2: Automating the responsive website testing

Pranathi Birudugadda

Quality Enthusiast

Agile Practitioner

Test Automation Engineer

Occasional Blogger

2

ABOUT ME

@Pranathi_B

https://in.linkedin.com/in/pranathi

pranathibirudugadda.wordpress.com

ThoughtWorks TechnologiesIndia

https://github.com/PranathiB

Page 3: Automating the responsive website testing

3

WHAT IS RESPONSIVE WEB DESIGN

Page 4: Automating the responsive website testing

4

• Write once publish everywhere

• Design your development to meet user’s behavior and environment

Page 5: Automating the responsive website testing

HOW IS IT ACHIEVED

5

▫︎ A flexible grid based layout

▫︎ Page element sizing should be in relative units

▫︎ Enable flexible media

▫︎ Flexible images are sized in relative units

▫︎ Addition of media queries

▫︎ Allow the page to use different CSS style rules based on the width of the browser

Page 6: Automating the responsive website testing
Page 7: Automating the responsive website testing

7

RESPONSIVE WEB DESIGN TESTING

Page 8: Automating the responsive website testing

How to Test multiple devices/platforms??

Page 9: Automating the responsive website testing

Pages should be readable on all resolutions

Content defined ‘important’ need to be visible in all

breakpoints

Text, controls, image alignment Color, shading, gradient

consistency

Typed text (data entry) scrolls and displays properly

THINGS TO KEEP IN MIND

Page 10: Automating the responsive website testing

Selecting set of devices for test

COMMON CHALLENGES

Frequent change of requirements Manual testing on all the devices?

Page 11: Automating the responsive website testing

Responsive Web Design

Tester

Viewport resize

Browserstack

ApplitoolsGalen

Framework

Online website checkers Google

responsive checker

AVAILABLE TOOLS IN THE MARKET

Page 12: Automating the responsive website testing

12

GALEN FRAMEWORK

Page 13: Automating the responsive website testing

Open Sourced, distributed under Apache License 2

Developed by Ivan Shubin

Designed with responsiveness in mind

Uses Selenium for web page interactions

GALEN FRAMEWORK

Page 14: Automating the responsive website testing

HOW GALEN WORKS

▫︎Define a set of devices that needs testing

▫︎Write a spec file that defines the layout on these devices

▫︎Galen opens a browser, resizes to specified dimension and verifies the spec file

▫︎Can be used along with Selenium Grid

Page 15: Automating the responsive website testing

GALEN SPEC FILE

● Language used to define the layout of the page on different devices

● Uses simple english words to describe the layout

● Human readable

● Minimal text to define the complete page

Page 16: Automating the responsive website testing

16

GALEN SPEC FILE

Page 17: Automating the responsive website testing

GALEN SPEC LANGUAGE

● *.gspec

● Object Definition

● Tagging

● Relative positions (near, below, inside)

● Alignment

● Height and Width

● Color Scheme

● Image Comparison

● CSS properties

Page 18: Automating the responsive website testing

DEMO

Github repo:

https://github.com/PranathiB/Galen

Page 19: Automating the responsive website testing
Page 20: Automating the responsive website testing

OTHER FEATURES

● Error Reporting using HTML and JSON

● Screenshot capture

● Image Comparison

● Warning levels

● Custom errors

Page 21: Automating the responsive website testing

Questions?

THANK YOU