Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional...

31
4 Oct 2019 Geoff Meyer, Test Architect Cognitive Automation: Applying AI/ML to tasks within the SDLC

Transcript of Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional...

Page 1: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

4 Oct 2019

Geoff Meyer, Test Architect

Cognitive Automation: Applying AI/ML to tasks within the SDLC

Page 2: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Agenda

• Envisioning the Future of Engineering

• The Dell EMC Journey

• Re-imagine Your Engineering Future

• A Playbook for AI/ML in the SDLC

Page 3: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Envisioning the Future of Engineering

Technologies

Requirements

Technical Debt Product roadmap

Dependencies

Collaborative Resources

Value

Creation

Value

Sustainment

Automation • Unit tests • Code Complexity • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation • DevOps

• Continuous Integration • Environment Provisioning • Continuous Deployment • Continuous Testing

• Cognitive Tasks (AI/ML) • Process Orchestration • Autonomous ‘Self-Driving’

Regression Testing • Continuous Monitoring

Page 4: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Value Creation vs. Value Sustainment Testing vs. Checking

Legacy Regression Checking

1 2 3

1 1

2

4

1

2

3

5

1

2

3

4

6

1

2

3

4

5

Legacy test automation & maintenance

New Feature Regression Checking

New feature test automation development & maintenance

Testing ~ Value Creation

• Establishes Expected Behavior

• Collaborative

• Curious

• Exploratory

• Cognitive

• Analyze Potential Risks

• Requires Thinking

Checking ~ Value Sustainment

• Confirms Expected Behavior

• Robotic

• Tedious

• Scripted

• Vigilance for deviations

• Monitor Known Risks

• Requires Processing

New Feature Development/Test

Sprints

Page 5: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

The Human Side of SW Engineering

• Creative, Collaborative, Problem Solving

• Contextualized Intelligence

• Empathy

• Storytelling

“Houston, we have a problem”

Page 6: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Waterfall Agile

Shift-left testing

Automated UI Testing

Scripted Automation

API Automation

Workflow Automation

Reuse and Portability

DevOps

Continuous Integration

Continuous Test

Continuous Deployment

Cognitive Automation

Configuration Assistants

Test Suite Assistant

Diagnostic Assistant

AI-Assisted UI Automation

AI… The Evolution of Automation

Page 7: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Courtesy of Jason Arbon, CEO Test.AI

Tasks

• Quick-thinking

• Thoughtful

• Contextual

When Do Machines Do Testing?

Page 8: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Context at DellEMC Servers

Server Configuration Elements Chassis Processor Memory DIMM Memory Configuration Hard Disk Drive (HDD) Non-Volatile Memory (NVM) Embedded Systems Management Power Management BIOS Power Supply Bezel Network Daughter Card RAID Controller Network Interface Card (NIC) Host Bus Adapter (HBA) Additional PCIe Cards Cooling

465 Trillion Test Configurations!!

How

much?!

Page 9: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

What if we had a Smart Assistant?

Page 10: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

What are the high-value SUT configurations? What test scripts

should be retired rather than be re-factored?

What tests can detect the maximum number of defects

given the changes in the current build

What is the release risk given the testing that’s been completed?

What’s the optimal coverage for this build/test cycle? What automated test

failures appear to be duplicates?

The Smart Assistant

Page 11: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Selecting our Technology Partners

Page 12: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Report Correlate Predict Recommend Autonomous

Descriptive

Diagnostic

Predictive

Prescriptive

Artificial Intelligence

What Happened?

Why did it Happen?

What will Happen?

How can we make it Happen?

Source: Gartner

Bu

sin

ess

Val

ue

Data Analytics Sophistication

Self-Learning

The Analytics Continuum

Page 13: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

It’s all about the data

“Nobody really goes out of their way to point out the importance of data…”

~ Brian Sletten, Bosatsu Consulting

Page 14: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Data Sources - Product Engineering

Page 15: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Q

Challenges

465 Trillion possible server configs!!! Which are the High Value Configs? How to ensure Optimal Configs

Coverage?

Current Testing Scenario

Quickly predict “best-available” SUT configurations during planning and test execution

Ensure Optimal Configs Coverage Prioritizes High-Value Configs

Objectives

SUT Configuration Planning Model “Q” - System Under Test

Data Sources

Team

Page 16: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Automation candidates

De-prioritization candidates

Test Planning Model “JARVIS”

Technology Partner:

Objectives • Use historical test data and defects

as predictors and to expose patterns • Automate deep-think testing tasks • Codify Subject-Matter Expertise • Real-time access to active

repositories

How can I accelerate discovery of break/fix?

Which manual tests are most effective, and should be automated?

Am I over-testing or under-testing?

Which of my test cases appear to be obsolete?

Fast Find of Break/Fix

Reduced test cycle time

Increased Test Capacity

Re-allocate to Exploratory Testing

Page 17: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Testbots are here AI-assisted UI Automation

• Increases UI test coverage

• At substantially less cost of creation and maintenance

Page 18: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Duplicate Defect Prediction DellEMC XtremIO

Page 19: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Re-imagine Your Future of Engineering

Page 20: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

© 2019 Cognizant, confidential and not for distribution

Courtesy of: Ben Pring, Cognizant

Page 21: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

• Test Case Planning/Analysis • Development patterns

• Field Issues • Customer logs • Customer Sentiment

Analysis

• SUT Configuration Planning • Test Data Planning • Automation Planning

• Coverage Optimization • Changed-based Regression • Test Failure Diagnostics • Predicted Defect Root-cause • SUT Configuration Re-planning • AI-Assisted UI Automation

Assessing Cognitive Automation Opportunities

Page 22: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Framework for Applying AI within the SDLC

Assessing Proving Enabling Realizing

Start with Why Demonstrate

Feasibility

Value, People, Process &

Technology

Feedback & Business Value

Page 23: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Assessing & Proving

5) Select the right model

1) Evaluate your SDLC landscape 4) Collect and Visualize Data

6) Build the prototype

2) Pinpoint your Painpoints

3) Select the right Data

Science Partner

Page 24: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Enabling Value, People, Process & Technology

Reduced Risk, Reduced Time, Increased Resource Availability

Stakeholder buy-in, feedback, and validation

Data cleansing/curation, process and organizational change management

Implement your Analytic Models, Algorithms and Data Marts

Page 25: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Realizing Collecting Business Dividends

• Stakeholder Validation & Feedback Loop

• Dividend collection and reporting

• Risk Reduction

• Increased Capacity

• Reduced Cycle Time

• Continuous Improvement & Future Delivery

Page 26: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Enabling Cognitive Automation

Start with Why

Capture your data

Be a Better Human

Establish deep stakeholder engagement

Re-imagine Engineering

Page 27: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Questions?

W10 - Geoff Meyer

What’s our Job When the Machines do Testing?

Page 28: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Resources Books • Predictive Analytics: The Power to Predict Who Will Click, Buy, Lie, or Die: https://www.amazon.com/dp/B019HR9X4U/ref=dp-kindle-

redirect?_encoding=UTF8&btkr=1 • What To Do When Machines Do Everything: http://www.whenmachinesdoeverything.com/ • Weapons of Math Destruction: https://weaponsofmathdestructionbook.com/ • Race against the Machine: https://books.google.com/books/about/Race_Against_the_Machine.html?id=IhArMwEACAAJ • Super Freakonomics: http://freakonomics.com/books/ • Humans are underrated: http://geoffcolvin.com/books/humans-are-underrated/ • Life 3.0: Being Human in the Age of Artificial Intelligence: https://www.amazon.com/Life-3-0-Being-Artificial-Intelligence/dp/1101946598 • The Four: http://www.thefourbook.com/

Research • When will AI Exceed Human Performance: https://arxiv.org/pdf/1705.08807.pdf • World Quality Report 2016-17 (Capgemini): https://www.capgemini.com/thought-leadership/world-quality-report-2016-17 • World Quality Report 2017-18 (Capgemini): https://www.capgemini.com/thought-leadership/world-quality-report-2017-18 • The next era of Human|Machine Partnerships: https://www.delltechnologies.com/en-us/perspectives/realizing-2030.htm • Towards a Reskilling Revolution: A Future of Jobs for All: http://www3.weforum.org/docs/WEF_FOW_Reskilling_Revolution.pdf • Special report: Tech and the future of transportation: http://b2b.cbsimg.net/downloads/Gilbert/SF_feb2018_transport.pdf • How AL will Change Software Development: https://www.slideshare.net/WillyDevNET/how-ai-will-change-software-development-and-applications • 21 Jobs of the future: https://www.cognizant.com/whitepapers/21-jobs-of-the-future-a-guide-to-getting-and-staying-employed-over-the-next-10-years-

codex3049.pdf • Wait but why: Artificial Intelligence Revolution Part 1: https://waitbutwhy.com/2015/01/artificial-intelligence-revolution-1.html • Wait but why: Artificial Intelligence Revolution Part 2: https://waitbutwhy.com/2015/01/artificial-intelligence-revolution-2.html • What’s Next | Artificial Intelligence Part 1: https://www.youtube.com/watch?v=2br8yji-rcM • What’s Next | Artificial Intelligence Part 2: https://www.youtube.com/watch?v=_WKyiGBYFrU • TensorFlow by Brian Sletten: https://www.youtube.com/watch?v=RlrBKYehcNg • Wolfram Alpha: www.wolframalpha.com

Page 29: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Resources Articles • The Future of Jobs: http://www3.weforum.org/docs/WEF_Future_of_Jobs.pdf • This Technology Will Upend the Entire Automotive Industry: https://moneywise411.com/new-automotive-technology/?ppc=743242 • 5 ways AI will change software testing - https://techbeacon.com/5-ways-ai-will-change-software-testing • What’s Everybody So Afraid of: http://www.popularmechanics.com/technology/robots/news/a28645/googles-alphabet-astro-teller-ai/ • Robots Are Coming for Jobs of as Many as 800 Million Worldwide: https://www.bloomberg.com/news/articles/2017-11-29/robots-are-coming-for-jobs-

of-as-many-as-800-million-worldwide • The 10 Biggest AI Failures of 2017: https://www.techrepublic.com/article/the-10-biggest-ai-failures-of-

2017/?ftag=TRE684d531&bhid=24345184115902224026945549370599 • Technology has created more jobs than it has destroyed: https://www.theguardian.com/business/2015/aug/17/technology-created-more-jobs-than-

destroyed-140-years-data-census • The tech industry needs one million workers now: https://www.yahoo.com/finance/news/tech-industry-needs-one-million-workers-now-

130452775.html • Only 4% of CIOs have deployed AI:https://cio.economictimes.indiatimes.com/news/business-analytics/only-4-pc-of-cios-have-deployed-ai-despite-huge-

interest-levels-in-ai-technologies/62900459 • Towers Watson & Oxford Economics: Global Talent 2021: https://abhishekmittal.com/2012/08/04/towers-watson-oxford-economics-global-talent-2021/ • Testing and Management Efficiency: http://www.developsense.com/blog/2018/02/Efficiency/ • How reinventing software testing can transform your business: https://techcrunch.com/2018/03/13/how-reinventing-software-testing-can-transform-

your-business-and-change-the-world/?utm_content=68756890&utm_medium=social&utm_source=linkedin • Top 5: Things to know about AI: https://www.techrepublic.com/article/top-5-things-to-know-about-ai • Test.AI nabs $11M Series A funding: https://techcrunch.com/2018/07/31/test-ai-nabs-11m-series-a-led-by-google-to-put-bots-to-work-testing-apps/ • Understanding the differences between AI, machine learning, and deep learning: https://www.techrepublic.com/article/understanding-the-differences-

between-ai-machine-learning-and-deep-learning • AI in software testing has arrived. Here's why robots rule: https://searchsoftwarequality.techtarget.com/feature/AI-in-software-testing-has-arrived-

Heres-why-robots-rule • A 5-second test for AI fever: https://www.linkedin.com/pulse/5-second-test-ai-fever-g-%C3%B8stby-sol%C3%A5s/ • Turning Testers into Machine Learning Engineers: https://www.linkedin.com/pulse/turning-testers-machine-learning-engineers-jason-arbon/

Page 30: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

Title: Cognitive Automation: Applying AI/ML to tasks within the SLDC Description: Members of the Engineering community are beginning to explore the exciting capabilities of Artificial Intelligence (AI) to remove even more of the mundane and manual tasks from our jobs. Engineering organizations that have already instilled a culture of automation with their prior adoption of Agile, Test Automation, and DevOps practices, are the best suited to begin the exploration of the AI-inspired solutions to the Engineering SDLC processes. The next generation of Automation within in the Engineering SDLC comes to us in the form of AI-inspired approaches: Analytics, Machine Learning, and Natural Language Processing. Geoff refers to this as Cognitive Automation and it offers the promise of the automation of tasks that up until now could only be performed by humans. Engineering practitioners going down the path of Cognitive Automation should proceed with caution due to the combination of excessive hype and unprecedented complexities as compared to prior stages of automation. Join Geoff as he provides a Framework for organizations to use when considering the application of AI to tasks within their SDLC. The approach, developed while leading the Dell EMC Test AI initiatives, provides Engineering teams with a means of countering the optimistic and sometimes unrealistic expectations of their leaders and their Subject Matter Experts with a pragmatic, yet goal-oriented approach.

Abstract

Page 31: Cognitive Automation · • Build Verification Testing • Regression Testing • Non-Functional Testing • Simulation/Emulation ... • Robotic • Tedious ... and validation Data

A Test Architect in the Dell EMC Infrastructure Solutions Group, Geoff has 30+ years of industry experience as a software developer, manager, program manager, and director.

He drives the Test Strategy and Architecture for 400+ SW and HW Testers across India, Taiwan, and the United States. His initiatives include Agile Testing, Continuous Testing, Infrastructure as a Service(IaaS), Predictive Analytics and Test.AI

Geoff is a member of the Agile Austin community and frequent speaker at international Agile and Testing conferences. He is an active mentor to Military Veterans participating in the www.Vets4Quality.Org program, which provides them an on-ramp to a career in software quality assurance.

Geoff Meyer