43
W6 AI and Data Analytics Wednesday, October 17th, 2018 11:30 AM How AI Is Transforming Software Testing Presented by: Raj Subramanian Brought to you by: 350 Corporate Way, Suite 400, Orange Park, FL 32073 8882688770 9042780524 [email protected] http://www.starwest.techwell.com/

How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

   W6  AI  and  Data  Analytics  Wednesday,  October  17th,  2018  11:30  AM              

How  AI  Is  Transforming  Software  Testing  

 Presented  by:    

 

Raj  Subramanian          

Brought  to  you  by:        

   

   

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

 

   

 

Page 2: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

 

 

   

Raj  Subramanian    Raj  Subramanian  is  a  former  developer  who  moved  to  testing  to  focus  on  his  passion.  Raj  currently  works  as  a  Developer  Evangelist  for  Testim.io,  that  provides  stable  self-­‐healing  AI  based  test  automation  to  enterprises  such  as  Netapp,  Swisscom,Wix  and  Autodesk.  He  also  provides  mobile  training  and  consulting  for  different  clients.  He  actively  contributes  to  the  testing  community  by  speaking  at  conferences,  writing  articles,  blogging,  making  videos  on  his  youtube  channel  and  being  directly  involved  in  various  testing-­‐related  activities.  He  currently  resides  in  Chicago  and  can  be  reached  at  [email protected]  and  on  twitter  at  @epsilon11.  He  actively  blogs  on  www.testim.io  and  his  website  www.rajsubra.com.  His  videos  on  testing,  leadership  and  productivity  can  be  found  here  http://www.rajsubra.com/my-­‐youtube-­‐channel/    

Page 3: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

HOW AI IS

www.testim.io Raj Subramanian [email protected]

TRANSFORMING SOFTWARE TESTING

Page 4: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

www.testim.io

ABOUT ME

● Developer Evangelist at Testim.io● Blogger, Speaker and Writer

○ http://www.rajsubra.com/blog/○ https://blog.testim.io/○ http://www.rajsubra.com/publications/○ http://www.rajsubra.com/presentations/○

● 11+ Years of Development and Testing

Twitter: @epsilon11

E-mail: [email protected]

Page 5: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

AGENDAAGENDA

LEARN THE BASICS OF AI

CURRENT CHALLENGES HOW AI CAN SOLVE THESE CHALLENGES

FUTURE OF AI

Page 6: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

CONTEXTMATTERSCONTEXTMATTERS

Page 7: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Manual Testing

Waterfall methodology

1980 - 1990

Bulky Automation Tools

Experimentation with Different Development Approaches

1990 – 2003

More Robust Automation tools + Open Source Frameworks

Agile Approaches, faster release cycles

2003 - 2010

More about Scale

DevOps, Continuous Testing, CI/CD

2010 - CURRENT

Autonomous Testing, Machine Learning and AI

Collaborative,Smart testing

THE FUTURE

EVOLUTION OF TESTINGEVOLUTION OF TESTING

www.testim.io

Page 8: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Manual Testing

Waterfall methodology

1980 - 1990

Bulky Automation Tools

Experimentation with Different Development Approaches

1990 – 2003

More Robust Automation tools + Open Source Frameworks

Agile Approaches, faster release cycles

2003 - 2010

More about Scale

DevOps, Continuous Testing, CI/CD

2010 - CURRENT

Autonomous Testing, Machine Learning and AI

Collaborative,Smart testing

THE FUTURE

EVOLUTION OF TESTINGEVOLUTION OF TESTING

www.testim.io

Page 9: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Manual Testing

Waterfall methodology

1980 - 1990

Bulky Automation Tools

Experimentation with Different Development Approaches

1990 – 2003

More Robust Automation tools + Open Source Frameworks

Agile Approaches, faster release cycles

2003 - 2010

More about Scale

DevOps, Continuous Testing, CI/CD

2010 - CURRENT

Autonomous Testing, Machine Learning and AI

Collaborative,Smart testing

THE FUTURE

EVOLUTION OF TESTINGEVOLUTION OF TESTING

www.testim.io

Page 10: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Manual Testing

Waterfall methodology

1980 - 1990

Bulky Automation Tools

Experimentation with Different Development Approaches

1990 – 2003

More Robust Automation tools + Open Source Frameworks

Agile Approaches, faster release cycles

2003 - 2010

More about Scale

DevOps, Continuous Testing, CI/CD

2010 - CURRENT

Autonomous Testing, Machine Learning and AI

Collaborative,Smart testing

THE FUTURE

EVOLUTION OF TESTINGEVOLUTION OF TESTING

www.testim.io

Page 11: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Manual Testing

Waterfall methodology

1980 - 1990

Bulky Automation Tools

Experimentation with Different Development Approaches

1990 – 2003

More Robust Automation tools + Open Source Frameworks

Agile Approaches, faster release cycles

2003 - 2010

More about Scale

DevOps, Continuous Testing, CI/CD

2010 - CURRENT

Autonomous Testing, Machine Learning and AI

Collaborative,Smart testing

THE FUTURE

EVOLUTION OF TESTINGEVOLUTION OF TESTING

www.testim.io

Page 12: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Manual Testing

Waterfall methodology

1980 - 1990

Bulky Automation Tools

Experimentation with Different Development Approaches

1990 – 2003

More Robust Automation tools + Open Source Frameworks

Agile Approaches, faster release cycles

2003 - 2010

More about Scale

DevOps, Continuous Testing, CI/CD

2010 - CURRENT

Autonomous Testing, Machine Learning and AI

Collaborative,Smart testing

THE FUTURE

EVOLUTION OF TESTINGEVOLUTION OF TESTING

www.testim.io

Page 13: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

BASICSOF AIBASICS OF AI

Page 14: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Artificial Intelligence (AI)

www.testim.io

DE-MYSTIFYING AIDE-MYSTIFYING AI

Machine Learning (ML)

Deep Learning (DL)

Page 15: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Size Price

Size

Bedrooms

Family Size

Zip code

Wealth

Walkable

School Quality

Price

www.testim.io

DEEP LEARNING EXAMPLEDEEP LEARNING EXAMPLE

Page 17: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

DEMO: QUICK DRAW DEMO: QUICK DRAW

Page 18: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

CURRENTCHALLENGESCURRENTCHALLENGES

Page 19: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Not at all, we test last, we test quality into the product

Testing involved early, but still have an extended test phase before release

We could probably release after every sprint

We could ship daily if we wanted to

We could deploy any minute of any day

13%

57%

19%

10%

2%

YOUR RELEASES?HOW FREQUENT ARE HOW FREQUENT ARE YOUR RELEASES?FROM A RECENT SURVEY TESTIM COMPLETED

www.testim.io

Page 20: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Not at all, we test last, we test quality into the product

Testing involved early, but still have an extended test phase before release

We could probably release after every sprint

We could ship daily if we wanted to

We could deploy any minute of any day

13%

57%

19%

10%

2%

YOUR RELEASES?HOW FREQUENT ARE HOW FREQUENT ARE YOUR RELEASES?FROM A RECENT SURVEY TESTIM COMPLETED

www.testim.io

Page 21: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Not at all, we test last, we test quality into the product

Testing involved early, but still have an extended test phase before release

We could probably release after every sprint

We could ship daily if we wanted to

We could deploy any minute of any day

13%

57%

19%

10%

2%

YOUR RELEASES?HOW FREQUENT ARE HOW FREQUENT ARE YOUR RELEASES?FROM A RECENT SURVEY TESTIM COMPLETED

www.testim.io

Page 22: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

CURRENT CHALLENGESCURRENT CHALLENGESRAPID RELEASE CYCLESRAPID RELEASE CYCLES

Innovators 2.5%

Early Adopters

13.5%

Chasm

Early Majority

34%

Late Majority

34%Laggards

34%

Every two weeks Every day 5 times

a day

www.testim.io

Every 6 month

Every month

Page 23: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

THE CHALLENGE:THE CHALLENGE:#1 SKILL SET#1 SKILL SET

www.testim.io

Innovators 2.5%

Early Adopters

13.5%

Early Majority

34%

Late Majority

34%Laggards

34%

Every two weeks Every day 5 times

a dayEvery 6 month

Every month

www.testim.io

Chasm

Page 24: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

THE CHALLENGE:THE CHALLENGE:#1 SKILL SET#1 SKILL SET

www.testim.iowww.testim.ioSource: http://dilbert.com/

Page 25: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

THE CHALLENGE:THE CHALLENGE:#1 SKILL SET#1 SKILL SET

www.testim.iowww.testim.io

Page 26: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

THE CHALLENGE:THE CHALLENGE:

Innovators 2.5%

Early Adopters

13.5%

Early Majority

34%

Late Majority

34%Laggards

34%

Every two weeks Every day 5 times

a dayEvery 6 month

Every month

Chasm

#2 AUTHORING#2 AUTHORING

Chasm

www.testim.io

Page 27: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

#3 INITIALIZATION

Innovators 2.5%

Early Adopters

13.5%

Early Majority

34%

Late Majority

34%Laggards

34%

Every two weeks Every day 5 times

a dayEvery 6 month

Every month

Chasm

#3 INITIALIZATIONTHE CHALLENGE:THE CHALLENGE:

Chasm

www.testim.io

Page 28: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

www.testim.io

Page 29: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

www.testim.io

Page 30: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

#4 MAINTENANCE#4 MAINTENANCE

Chasm

Innovators 2.5%

Early Adopters

13.5%

Early Majority

34%

Late Majority

34%Laggards

34%

Every two weeks Every day 5 times

a dayEvery 6 month

Every month

THE CHALLENGE:THE CHALLENGE:

Chasm

www.testim.io

Page 31: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Innovators 2.5%

Early Adopters

13.5%

Early Majority

34%

Late Majority

34%Laggards

34%

Every two weeks Every day 5 times

a dayEvery 6 month

Every month

Chasm

THE CHALLENGE:THE CHALLENGE:#5 SCALE#5 SCALE

Chasm

www.testim.io

Page 32: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

HOW AI CAN SOLVETHESE CHALLENGESHOW AI CAN SOLVE THESE CHALLENGES

Page 33: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

www.testim.io

Page 34: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

TESTIM.IOTESTIM.IO

www.testim.io

AI Based Locators

MULTIPLE ATTRIBUTES VS. SINGLE ONE

Hundreds of attributes used to identify elementsA few changes don’t break the test

LOW MAINTENANCE

No need to (tediously) update locators

MORE EXECUTIONS => MORE STABLE

With each execution we learn the changes to the application and optimize scores

Page 35: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

Source: Jason Arbon

www.testim.io

FEATURES

Complexity increases exponentially as new features and states interact with existing features

TESTS

Test coverage grows linearly because they can only be added one at at time

COVERAGEGAP

THE COVERAGE GAPTHE COVERAGE GAPIN SOFTWARE TESTINGIN SOFTWARE TESTING

Time

Com

ple

xity

/ C

over

age

Page 36: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

FUTUREOF AIFUTURE OF AI

Page 37: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

TESTINGAUTONOMOUSAUTONOMOUSTESTING

www.testim.io

LEARN BY OBSERVATION (PRODUCTION)

AGGREGATE USER ACTIONS INTO FLOWS

TEST PRODUCED FROM FLOWS

Page 38: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

www.testim.io

VIA UI TDDAUTHOR FASTERAUTHOR FASTERVIA UI TDD

RUN DURING DEVELOPMENT

UPDATE ON FIRST GREEN TEST(MULTIPLE LOCATORS)

USE DESIGN MOCKSTO AUTHOR (IMAGE BASED)

Page 39: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

AUTOMATIC RESPONSEAUTOMATIC RESPONSE

www.testim.io

SERVERSTESTS’ UI INTERACTION

RECORDSERVER RESPONSE

CALL TO SERVER ARE RECORDED1

RESPOND WITH MOCKS2

SERVERSTESTS’ UI INTERACTION

PLAYSERVER RESPONSE

Page 40: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

www.testim.iowww.testim.io

HOW TESTIM ISHOW TESTIM IS PAVING THE FUTUREPAVING THE FUTURE

Page 41: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

QUALITY VELOCITY

Create much more scenarios in a shorter period of time

Deploy resources much more effectively create the tests proactively

Dev/QA friction is minimized root cause analysis

Easier for QA to maximize user coverage

Take a risk based approach with true data driven decisions

Prevent bugs as opposed to fixing them

THE QUALITY/VELOCITY DILEMMAAUTONOMOUS TESTING ELIMINATESAUTONOMOUS TESTING ELIMINATES THE QUALITY/VELOCITY DILEMMA

www.testim.io

Page 42: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

WRAPIT’S AIT’S AWRAP

Email: [email protected] | Website: www.testim.io | Twitter: @epsilon11 | Youtube: Testim Channel

Page 43: How!AI!Is!TransformingSoftware! Testing!Manual Testing Waterfall methodology 1980 - 1990 Bulky Automation Tools Experimentation with Different Development Approaches1990 – 2003 More

www.testim.io

https://blog.testim.io/summary-blog-how-ai-is-transforming-software-testing/

SUMMARYTALKTALKSUMMARY

Email: [email protected] | Website: www.testim.io | Twitter: @epsilon11 | Youtube: Testim Channel