16
Automating visual software testing ADVANCED TEST AUTOMATION TECHNIQUES FOR RESPONSIVE APPS AND SITES Adam Carmi (@carmiadam) Co-Founder and CTO at Applitools

Advanced test automation techniques for responsive apps and sites

Embed Size (px)

Citation preview

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

Automating visual software testing

ADVANCED TEST AUTOMATION TECHNIQUES FOR RESPONSIVE

APPS AND SITES

Adam Carmi (@carmiadam)Co-Founder and CTO at Applitools

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

Automating visual software testing

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

Automating visual software testing

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.

“WIKIPEDI

A

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

Automating visual software testing

https://github.com

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

Automating visual software testing

window.innerWidth

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

Automating visual software testing

TEST=

INTERACTION+

VALIDATION

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

Automating visual software testing

LET’S TEST!

+ + +

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

Automating visual software testing

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

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

Automating visual software testing

TEST=

INTERACTION+

VALIDATION

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

Automating visual software testing

HOW CAN WE VALIDATE RWD?

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

“WIKIPEDI

A

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

Automating visual software testing

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

Automating visual software testing

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

Automating visual software testing

THE WORKFLOWDrive the AUT and take screenshots

Compare screenshots with baseline images

Report differences

Update the baseline

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

Automating visual software testing

LET’S TEST!

+ + +

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

Automating visual software testing

VALIDATION TIPS

• Set the viewport size rather than the browser window size

• Use page object callbacks to validate layout-specific UI states

• Prefer full page validation over component validation

• Focus on lower layout boundaries

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

Automating visual software testing

QUESTIONS?Adam Carmi (@carmiadam)

Co-Founder and CTO at Applitools