testing with ai for agile teams › sites › default › files... · 2018-10-30 · and app...

39
BW8 Test & QA Wednesday, June 6th, 2018, 2:45 PM Testing with AI for Agile Teams Presented by: Jason Arbon test.ai Brought to you by: 350 Corporate Way, Suite 400, Orange Park, FL 32073 888-- -268---8770 ·· 904- --278-- -0524 - [email protected] - https://www.techwell.com/

Upload: others

Post on 07-Jul-2020

2 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

BW8 Test & QA Wednesday, June 6th, 2018, 2:45 PM

Testing with AI for Agile TeamsPresented by:

Jason Arbon test.ai

Brought to you by:

350 Corporate Way, Suite 400, Orange Park, FL 32073 888-- -268- - -8770 ·· 904- --278-- -0524 - [email protected] - https://www.techwell.com/

Page 2: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Jason Arbontest.aiJason Arbon is the CEO of test.ai which is redefining how enterprises develop, test, and ship mobile apps with zero code and zero setup required. He was formerly the director of engineering and product at Applause.com/uTest.com, where he led product strategy to deliver crowdsourced testing via more than 250,000 community members and created the app store data analytics service. Jason previously held engineering leadership roles at Google and Microsoft and coauthored How Google Tests Software and App Quality: Secrets for Agile App Teams.

Page 3: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Testing with AIFor Agile Teams

Jason Arbon, CEO test.ai

Page 4: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Testing Neural Net Ranker

Personalized Web Search and Chrome Test Automation

AI for Mobile Test Automation

Page 5: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Speed Is King

Page 6: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

QA PM

Dev

UX

BA

Page 7: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Outline

● User Flows● AI to identify elements like a human● AI to drive flows like a human● How does this scale?

Page 8: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Testers Don’t (Can’t) Test Anymore

Page 9: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Testers Don’t (Can’t) Test Anymoreo Agile / CI / DevOps

o Barely enough time to verify software

o Little time to actually test

Page 10: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

User Flowso Basic operations

o Important to Business

o Core Features

o Must work vis the User Interface for Users

Page 11: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

User Flows: Sign-up/Sign-in

Page 12: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

User Flows: Search

Page 13: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

User Flows: Cart

Page 14: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Humans: Cues to ‘Label’o Seen Many Examples

o Color

o Shape

o Location

o Text

o Edges

o Context

Page 15: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Perfect Problem for AIo Apps are Similar

o reuse common elements

o reuse common designs

o reuse common patterns

Page 16: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Crawl 30k+ Apps

Page 17: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Cut Screens Into Elements

Page 18: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO
Page 19: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Convert Images and DOM into Features

Page 20: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Connect Training Data to Network

Page 21: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

“Teach” Using Training Set

Page 22: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO
Page 23: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Like Humans: Robust to Changeso Networks know many examples of login buttons

o Networks know what aren’t login buttons

o Networks know if a login button moves, changes size, position, color, etc.

o “Sees and Thinks like a User”

e.g. No CSS selectors or XPath breaks

Page 24: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Time To Identify Elements

Minutes -> Seconds

Page 25: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Humanso “Go To Cart”

o Get Past

▪ Irrelevant

▪ Random

▪ Dynamic

Page 26: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Humans: User Flows

o “Go To Cart”

o Never seen app

o Look for something like a ‘shopping cart icon”

Page 28: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

QLearning: AppGraph

Page 29: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

0

QLearning: AppGraph

-199 (+100)

Hit the goal!

0100(+100)Found better path

Page 30: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

QLearning: AppGraph

o Give Rewards for finding the shopping Cart

o Penalize for steps that don’t find the shopping Cart

o Iterate 10k times X N Apps

o QLearn Brain/Matrix remembers the intuition of how to get to shopping carts

Page 31: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Flow Tests are Just Sequences of Goals

Page 32: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Time To Create Flow Test Sequences

Hours/Days -> Minutes

Page 33: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO
Page 34: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Like Humans: Robust to Flow Changes

o AI Verifies the INTENT of the flow “Go To Cart”

o AI deals with changes in flow, just like Humans do

o Tests still verify that User Flows work, even under rapid app design changes.

e.g. No hard-coded test steps

Page 35: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Cross-Application!

Page 36: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Time To Test

Zero! Instant Test Automation

Page 37: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

Global Brain of Reusable Tests

Page 38: Testing with AI for Agile Teams › sites › default › files... · 2018-10-30 · and App Quality: Secrets for Agile App Teams. Testing with AI For Agile Teams Jason Arbon, CEO

AITesting.org