Best Practices of Automated Visual Testing: Getting it Right for the Best UX

20
©2016 Infostretch. All rights reserved. 1 Adam Carmi Co-Founder and CTO Applitools BEST PRACTICES OF AUTOMATED VISUAL TESTING GETTING IT RIGHT FOR THE BEST UX Manish Mathuria Founder and CTO Infostretch

Transcript of Best Practices of Automated Visual Testing: Getting it Right for the Best UX

Page 1: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 1

Adam CarmiCo-Founder and CTOApplitools

BEST PRACTICES OF AUTOMATED

VISUAL TESTING

GETTING IT RIGHT FOR THE BEST UX

Manish MathuriaFounder and CTO Infostretch

Page 2: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 2

Agenda

• What is Visual Testing?

• Visual Testing Tools Requirements

• What kinds of apps must be tested Visually?

• Visual Testing Process

• Best Practices

• Demo

Page 3: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 3

Visual Testing in the Lifecycle

IndispensableLate in the

lifecycle

Manually

Intensive

Does not

Capture

Visual

Defects

Page 4: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 4Image Source: http://baymard.com/blog/bugs-and-user-experience

Visual Bugs

Page 5: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 5

Page 6: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 6

Visual Testing - What do Testers Want?

Incremental Efforts / Automated Validation

• Effort for baseline and maintenance of the same

No False Positives

• Support for Dynamic Content

• Smart validation: ignore/validate viewport portions, comparison with tolerance level

Effective Error Reporting

• Visual Defects Reporting Integrated into Test Results

• Failure Analysis, video reports

Technical Capabilities

• Ignoring Dynamic Content

• Integration Into existing test automation framework

• Layout verification

• Screen resolution independent

Page 7: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 7

Visual Testing – Hi-Pot Candidates

Responsive

High Form

factors

Content

Rich

Device

fragmentatio

n

Page 8: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 8

THE WORKFLOW

Drive the AUT and take screenshots

Compare screenshots with baseline images

Report differences

Update the baseline

Page 9: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 9

THE WORKFLOW

Drive the AUT and take screenshots

Compare screenshots with baseline images

Report differences

Update the baseline

Page 10: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 10

Page 11: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 11

Page 12: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 12

APPLITOOLS EYES

• Handles anti-aliasing, pixel offsets, color similarity, and image scaling

• Dynamic and moving content

• Compare images of different sizes

• No error ratio configuration required

• Validates full UI pages

• Fast!

• Supports layout / structure matching

Page 13: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 13

DEMOIMAGE MATCHING

Page 14: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 14

THE WORKFLOW

Drive the AUT and take screenshots

Compare screenshots with baseline images

Report differences

Update the baseline

Page 15: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 15

DEMO+ +

Page 16: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 16

FULL PAGE VALIDATION

• More coverage

• Catch unexpected bugs

• Enables codeless baseline maintenance

– Everyone can do it

– Immediately

– Avoid element locators maintenance

Page 17: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 17

TEST INTEGRATION OPTIONS

• Write dedicated visual tests

– Maximal control over visual coverage and AUT manipulation

– Moderate effort

• Add visual checkpoints to your existing functional tests

– More ROI out of existing tests

– Moderate to light effort

• Add implicit visual validations to your test framework

– Trivial to implement

– Full page validation

– May result with duplicate validation points

– Exclude tests that are heavily parameterized on data

Page 18: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 18

THE WORKFLOW

Drive the AUT and take screenshots

Compare screenshots with baseline images

Report differences

Update the baseline

Page 19: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 19

DEMOBASELINE MAINTENANCE

Page 20: Best Practices of Automated Visual Testing: Getting it Right for the Best UX

©2016 Infostretch. All rights reserved. 20

SPECIAL OFFERS!

Infostretch

Get a free 4-hour assessment of your visual testing strategy:

http://bit.ly/infostretch-get-free-4

Applitools

Join our free Visual Testing Master Class – learn more advanced features and in-depth

capabilities: https://goo.gl/awXPAg