advanced test automation techniques for responsive apps and sites

17
Adam Carmi (@carmiadam) Co-Founder and VP R&D at Applitools ADVANCED TEST AUTOMATION TECHNIQUES FOR RESPONSIVE APPS AND SITES

Upload: adamcarmi

Post on 08-Jan-2017

166 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Advanced test automation techniques for responsive apps and sites

Adam Carmi (@carmiadam)Co-Founder and VP R&D at Applitools

ADVANCED TEST AUTOMATION TECHNIQUES

FOR RESPONSIVE APPS AND SITES

Page 2: Advanced test automation techniques for responsive apps and sites

AGENDA

What are responsive web sites? Let’s test Github! Best practices Q & A

Page 3: Advanced test automation techniques for responsive apps and sites

RESPONSIVE WEB DESIGN

An approach to web design aimed at crafting sites to provide an optimal viewing and interaction experience across a wide range of devices.

“WIKIPEDIA

Page 5: Advanced test automation techniques for responsive apps and sites

window.innerWidth

Page 6: Advanced test automation techniques for responsive apps and sites

TEST=

INTERACTION+

VALIDATION

Page 7: Advanced test automation techniques for responsive apps and sites

LET’S TEST!

+ + +

Page 8: Advanced test automation techniques for responsive apps and sites

INTERACTION TIPS

Detect page layout within its page object

Build browser and layout independent automation

Avoid creating layout specific page objects

Avoid detecting layout by window.innerWidth

Set browser size by window.innerWidth

Page 9: Advanced test automation techniques for responsive apps and sites

TEST=

INTERACTION+

VALIDATION

Page 10: Advanced test automation techniques for responsive apps and sites

An approach to web design aimed at crafting sites to provide an optimal viewing and interaction experience across a wide range of devices.

HOW CAN WE VALIDATE RWD???

“WIKIPEDIA

Page 11: Advanced test automation techniques for responsive apps and sites

VISUAL TESTING

A quality assurance activity aimed to verify that a Graphical User Interface appears correctly to users

Page 12: Advanced test automation techniques for responsive apps and sites
Page 13: Advanced test automation techniques for responsive apps and sites
Page 14: Advanced test automation techniques for responsive apps and sites

AUTOMATED VISUAL TESTING

Drive the AUT and take screenshots

Compare screenshots with baseline images

Report differences

Update the baseline

Page 15: Advanced test automation techniques for responsive apps and sites

LET’S TEST!

+ + +

Page 16: Advanced test automation techniques for responsive apps and sites

VALIDATION TIPS

Prefer full page validation

Use page object callbacks to validate layout-specific UI states

Focus on lower layout boundaries

Don’t abort your tests on validation failures

Always use real browsers

Prefer real devices

Page 17: Advanced test automation techniques for responsive apps and sites

Adam Carmi (@carmiadam)Co-Founder and VP R&D at Applitools

QUESTIONS?