SlideShare una empresa de Scribd logo
1 de 42
From Manual Testing to Intelligent Test Automation
Presented by Stephan Schulz
© All rights reserved
From Manual Testing to Intelligent Test Automation
• Where Are We Today?
• Evolution of Software Testing
• From Manual Testing to Automated Test Design
• Evolution of Model Based Testing
• 3 Generations of Test Automation with Model-Based Testing
• Artificial Intelligence in Testing
• Intelligent Test Automation
• The Future of Testing
© All rights reserved
User Conference on
Advanced Automated Testing
Where Are We Today?
© All rights reserved
Most of Today’s Testing is Still Done Manually
© All rights reserved
User Conference on
Advanced Automated Testing
More than 80% 10%
Between 41% and 80% 12%
Between 20% and 40% 15%
Less than 20% 56%
We do not automate 7%
*From an Enterprise IT Poll in Europe
What percentage of your test execution is automated?*
Even More Dramatic: Enterprise IT Testing Market 2017
80%
20%
Total Size:
$150BN (14% CAGR) Manual Testing: $120BN (!)
Automated Testing: $30BN
… of which only tools: $3BN
… of which only test execution: 60%
© All rights reserved
User Conference on
Advanced Automated Testing
Product Development Is Moving Faster Every Day
© All rights reserved
User Conference on
Advanced Automated Testing
There Is Too Much to Test & Not Enough Time
Then…
• One computer platform
• One OS
• One app
• One browser
• One release per year
© All rights reserved
User Conference on
Advanced Automated Testing
Now…
• Many platforms (PC, tablet, phone, cloud, voice …)
• Multiple OS (Win, iOS, Android, Chrome, legacy, … )
• More connected apps
• Multiple browsers (Chrome, IE, Firefox …
• Multiple releases (every month or sooner)
Integrations, Complexity & Manual Are Top Challenges
© All rights reserved
User Conference on
Advanced Automated Testing
Source: 8th Edition of World Quality Report 2016-17
The Net Is Testing Needs To Be Done ..
FASTER
BETTER
CHEAPER
© All rights reserved
User Conference on
Advanced Automated Testing
The Evolution of Software Testing
© All rights reserved
Evolution of Software Testing
© All rights reserved
User Conference on
Advanced Automated Testing
Manual Testing
Test Scripts
Capture/Replay
Keyword Driven
Testing Frameworks
Test Models
ATD
Testing
Efficiency
Automated Test Design
Model Based Testing (MBT)
Manual Testing
© All rights reserved
User Conference on
Advanced Automated Testing
• “It is cheap”! Anybody can do it!
• It is time consuming,
ineffective, and error prone
• It is still not (yet) replaceable
• When tests are hard (or too
expensive) to automate
• Exploratory testing (with data)
Test Scripts and Capture Replay
User Conference on
Advanced Automated Testing
• Automatic execution!
• Interactions have to be manually
performed or coded
• But capture/replay is still driven
by manual testing 
• Scripting requires special skills
• One small change in SUT requires
re-recording or re-coding
(Keyword Driven) Testing Frameworks
User Conference on
Advanced Automated Testing
• Simpler to use, understand & maintain
• Allows reduction of required skills for
test specification down to Excel!
• Keywords are reusable & tests become
retargetable!
• Still requires (highly) skilled automation
team for scripting keywords
Example:
Login(username,password)
StartVehicle()
Test Models (MBT)
User Conference on
Advanced Automated Testing
• Generally graphical representation of
control flows instead of coding
• Easier to adopt & review than scripts
• Can be generated from manual test
descriptions or test plans
• Allows generation of (partial) scripts
and documentation
• Still user is responsible for test design
Automated Test Design (MBT)
User Conference on
Advanced Automated Testing
• Specify functionality to be tested
and generate optimal test coverage
• Generally graphical representation
of control and data aspects
• Basically full script & documentation
generation from generated tests
• Now manual testers can effectively
contribute to test automation
Don't model tests; model the functionality to be tested!
When you model the functionality to be tested you can create
a model capable of representing every test for that
functionality. It is a much smaller task, since the number of all
possible tests is very large and change behind your back,
which means test models will become obsolete the moment
they are made.
(adopted from Monica Anderson “Don’t model the World; Model the Mind”)
About Model-Based Testing (MBT)
User Conference on
Advanced Automated Testing
• Umbrella term for using models in a testing context; only one approach is
to use MBT for automating test design
• MBT complements test execution
• Recognized by worldwide industrial standards (ETSI, ISTQB)
The Evolution of Model-Based Testing
© All rights reserved
Evolution of Model Based Testing
User Conference on
Advanced Automated Testing
Automated Test Design: Planning & Searching
User Conference on
Advanced Automated Testing
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
Model behavior
implies typically
infinite state space
Constructs tests from the
explored part of the state
space by selecting paths
that leads to testing goals
Test generation algorithm
searches the state space
for testing goals, defined
by the end user
Automated Test Design: Reasoning & Problem Solving
User Conference on
Advanced Automated Testing
• Test generation reasons about
unspecified input data and
derives a concrete data based
on modeled logic
• Generally, constraint solving
theory is applied for computing
unspecified input data
Models describe the
expected external behavior
of the system under test
Models interact with an
unspecified environment
via inputs and outputs
Automated Test Design: Finding Important Tests
User Conference on
Advanced Automated Testing
• Predict the ways the system may fail
• Combine large set of heuristics
• Equivalence classes
• Boundary value analysis
• Combinatorial testing
• Mutation testing
• And more…
• Know what do not cover!
MBT 1.0: Modeling Notation is Adoption Hurdle
User Conference on
Advanced Automated Testing
From
functional programming
(10+ years ago) …
B
lisp
… via some graphical & a lot of
general purpose programming
(~7 yrs ago) …
class GarageDoorController extends StateMachine
{
/** The default constructor. */
public GarageDoorController() { }
public void startMotor( String direction ) {
MotorStart start;
start.direction = direction;
out.send( start );
}
public void stopMotor( ) {
MotorStop stop;
out.send( stop );
}
public void reverseMotor( ) {
MotorReverse reverse;
out.send( reverse );
}
}
UML
Java
OCL
C#
Today We Use Domain Specific Modeling Languages
User Conference on
Advanced Automated Testing
• Designed specifically to use
tester’s language, concepts &
terminology
• Easy to use: drag & drop building
blocks to compose functionality
• Enabling direct automation
• Flexible and extensible
• See also UCAAT 2013 tutorial
MBT 2.0: Enabling Test Process Automation
User Conference on
Advanced Automated Testing
• MBT is not just about test generation!
• MBT integrates & connects with requirement & test management,
versioning control, and test automation/CI integration
ALM / Test Management
Test Execution / CI
ALM / Requirement Management
MBT
MBT 2.0: Still Every New Project Starts Like This …
User Conference on
Advanced Automated Testing
MBT 3.0: “Eliminating” Modeling
User Conference on
Advanced Automated Testing
Modeling System
Under
Test
Test
Execution
Test
Management
Requirement
Management
Test Design
BPM
Gherkin
Flowchart
Man Tests
Test Plans
UI/mainframe
SOAP/REST
Version Control
Test Data
Management
Complete End to End Test Process Automation with MBT
Test Reverse Engineering
User Conference on
Advanced Automated Testing
• Readers normalize test input format
• Keywords are identified from test
steps using Natural Language
Processing (NLP)
• Redundant tests and subtests are
eliminated
• Tests are converted into flows and
merged
BC
A
E
F
G D
H
IJK
B
A
C
D
E
B
A
C
F
A
G
D
E
F
A
H
D
G
E
J
I
K
B
A
C
D
E
E
[ALM] Test Plans: Excel as Input to MBT
User Conference on
Advanced Automated Testing
Generate Tests
Execute!
Import & Refine
“BDD”: Gherkin as Input to MBT
User Conference on
Advanced Automated Testing
Feature: Shopping with esd.conformiq.com
Scenario: Successful shopping
Given a user has logged in successfully
When user adds 1 item(s) of "CQ0003"
Then shopping basket contains 1 item(s)
Scenario: Bad product id
Given a user has logged in successfully
When user adds 3 item(s) of "123"
Then application displays invalid entry
Scenario: Remove item
Given a user has logged in successfully
When user adds 1 item(s) of "CQ0003"
Then shopping basket contains 1 item(s)
When user clicks Remove all button for
item "CQ0003"
Then shopping basket contains 0 item(s)
Import & Refine
Generate Tests
Execute!
See also separate
HUSTEF pres / video
MBT Trends in 2017: Modeling in Prose
• Low end MBT tools are pushing very simple, prose based modeling
notations into the test tool market
• Arguably domain specific modeling still has the edge as it enables a direct path to
automatic test execution (today not possible from prose)
• Users have started to perceive domain specific modeling (= creation of
building blocks) as a burden when it comes to modeling
• Model generation from test assets (reverse engineering) has addressed this issue but
not removed it
• Frequent use of extension points (“custom actions”) is diluting the
value proposition of domain specific languages
• Prose and domain specific action modeling start to mix
© All rights reserved
User Conference on
Advanced Automated Testing
Artificial Intelligence in Testing
© All rights reserved
AI Techniques Have Been Leveraged for (Many) Years!
• Fuzzy and Probabilistic Logic
• Classification
• Search & Optimization
• Expert Systems
• (Deep) Machine Learning (ML)
© All rights reserved
User Conference on
Advanced Automated Testing




?
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
λ
Remember this?
Today the term “AI” is generally reduced to (Deep) Machine Learning …
More Recent: AI in Robustness Testing
© All rights reserved
User Conference on
Advanced Automated Testing
code coverage
• App store testing example:
Fuzz vs search vs man+machine
• Initially, “break the system by clicking
around” (= “Monkey Testing”)
• Now also combination of online MBT
with learnings from previous failures
• No human required for test execution!
steps to reveal fault
Source: Stuart Reid, “Smarter Testing with Artificial Intelligence”, JFTL 2017
More Recent: AI in Result Analysis of Large Test Suites
© All rights reserved
User Conference on
Advanced Automated Testing
• Predictive analytics: what could fail?
• “Test Less - Test Right” (M. Venkata)
• Failure patterns, code changes, etc
• Diagnostic analytics: what is failing?
• Data mining & visualization of defects
• Application monitoring for anomalies
• Prescriptive analytics: what to fix?
• Symptom vs defect
• Root cause analysis
How Could We Use Learning in Functional Testing?
© All rights reserved
User Conference on
Advanced Automated Testing
• Test automation tools have managed successfully to make creation of
tests that are automatically executable more or less “dead easy”
• BUT … automating from “arbitrary” text still has to be done manually
Enter user name and password
and click the Sign In button
Manually refine into
concrete automation steps
Manually refine into domain
specific model inputs & outputs
Manual Test Step
Test Automation Keyword
Model Action(s)
vs
?
Introducing Intelligent Test Automation
© All rights reserved
User Conference on
Advanced Automated Testing
• From manual to automatically executable test in two steps
1. Feed manual tests and train intelligent test automation (if any),
e.g., resolve unknown text to automation rules
2. Execute and fix unrecognized object identifiers (if any)
• The more intelligent test automation is trained - the less it needs to learn!
Intelligent Test Automation in a Nutshell
© All rights reserved
User Conference on
Advanced Automated Testing
• Reader(s) normalize input format(s)
• Natural Language Processing is
used to analyze test steps
• User “teaches” mappings to target
test automation tool or framework
• Works with any input format,
different target technologies, and
any test automation framework!
Intelligent Test Automation Naturally Extends to MBT!
© All rights reserved
User Conference on
Advanced Automated Testing
Test Files
(fully generated)
Custom Libraries
Test Design Test Creation
Includes optimization Includes scripts, data & validations
Requirements Test Execution
Includes harnesses
Includes BAs & Testers
Exec Tool(s)
Intelligent Test Automation
The Start of a New Generation in Test Automation?
User Conference on
Advanced Automated Testing
© All rights reserved
Evolution of Software Testing
© All rights reserved
User Conference on
Advanced Automated Testing
Manual Testing
Test Scripts
Capture/Replay
Keyword Driven
Testing Frameworks
Test Models
ATD
Testing
Efficiency
Automated Test Design
Model Based Testing (MBT)
Thank You for Your Attention!
© All rights reserved
User Conference on
Advanced Automated Testing
Q&A
stephan.schulz@conformiq.com

Más contenido relacionado

Similar a Manual Testing to Intelligent Test Automation.pptx

Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
Vartika Saxena
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
VijayChowthri Nagaprakasham
 

Similar a Manual Testing to Intelligent Test Automation.pptx (20)

Agile Mobile Testing Workshop
Agile Mobile Testing WorkshopAgile Mobile Testing Workshop
Agile Mobile Testing Workshop
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Justin Ison
Justin IsonJustin Ison
Justin Ison
 
Amalgamation of BDD, parallel execution and mobile automation
Amalgamation of BDD, parallel execution and mobile automationAmalgamation of BDD, parallel execution and mobile automation
Amalgamation of BDD, parallel execution and mobile automation
 
Automated Exploratory Testing
Automated Exploratory TestingAutomated Exploratory Testing
Automated Exploratory Testing
 
Improving ROI with Scriptless Test Automation
Improving ROI with Scriptless Test AutomationImproving ROI with Scriptless Test Automation
Improving ROI with Scriptless Test Automation
 
Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
 
Test Automation: Investment Today Pays Back Tomorrow
Test Automation: Investment Today Pays Back TomorrowTest Automation: Investment Today Pays Back Tomorrow
Test Automation: Investment Today Pays Back Tomorrow
 
M. Holovaty, Концепции автоматизированного тестирования
M. Holovaty, Концепции автоматизированного тестированияM. Holovaty, Концепции автоматизированного тестирования
M. Holovaty, Концепции автоматизированного тестирования
 
John Fodeh - Adventures in Test Automation-Breaking the Boundaries of Regress...
John Fodeh - Adventures in Test Automation-Breaking the Boundaries of Regress...John Fodeh - Adventures in Test Automation-Breaking the Boundaries of Regress...
John Fodeh - Adventures in Test Automation-Breaking the Boundaries of Regress...
 
John Fodeh Adventures in Test Automation - EuroSTAR 2013
John Fodeh Adventures in Test Automation - EuroSTAR 2013John Fodeh Adventures in Test Automation - EuroSTAR 2013
John Fodeh Adventures in Test Automation - EuroSTAR 2013
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Next level of test automation with Model-based Testing (MBT): Experience and ...
Next level of test automation with Model-based Testing (MBT): Experience and ...Next level of test automation with Model-based Testing (MBT): Experience and ...
Next level of test automation with Model-based Testing (MBT): Experience and ...
 
Using task models in model-based testing
Using task models in model-based testingUsing task models in model-based testing
Using task models in model-based testing
 
Cloud-based Test Microservices JavaOne 2014
Cloud-based Test Microservices JavaOne 2014Cloud-based Test Microservices JavaOne 2014
Cloud-based Test Microservices JavaOne 2014
 
How to make Automation an asset for Organization
How to make Automation an asset for OrganizationHow to make Automation an asset for Organization
How to make Automation an asset for Organization
 
The Automation Firehose: Be Strategic and Tactical by Thomas Haver
The Automation Firehose: Be Strategic and Tactical by Thomas HaverThe Automation Firehose: Be Strategic and Tactical by Thomas Haver
The Automation Firehose: Be Strategic and Tactical by Thomas Haver
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologies
 
Solving the 3 Biggest Questions in Continuous Testing
Solving the 3 Biggest Questions in Continuous TestingSolving the 3 Biggest Questions in Continuous Testing
Solving the 3 Biggest Questions in Continuous Testing
 

Último

Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 

Último (20)

Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 

Manual Testing to Intelligent Test Automation.pptx

  • 1. From Manual Testing to Intelligent Test Automation Presented by Stephan Schulz © All rights reserved
  • 2. From Manual Testing to Intelligent Test Automation • Where Are We Today? • Evolution of Software Testing • From Manual Testing to Automated Test Design • Evolution of Model Based Testing • 3 Generations of Test Automation with Model-Based Testing • Artificial Intelligence in Testing • Intelligent Test Automation • The Future of Testing © All rights reserved User Conference on Advanced Automated Testing
  • 3. Where Are We Today? © All rights reserved
  • 4. Most of Today’s Testing is Still Done Manually © All rights reserved User Conference on Advanced Automated Testing More than 80% 10% Between 41% and 80% 12% Between 20% and 40% 15% Less than 20% 56% We do not automate 7% *From an Enterprise IT Poll in Europe What percentage of your test execution is automated?*
  • 5. Even More Dramatic: Enterprise IT Testing Market 2017 80% 20% Total Size: $150BN (14% CAGR) Manual Testing: $120BN (!) Automated Testing: $30BN … of which only tools: $3BN … of which only test execution: 60% © All rights reserved User Conference on Advanced Automated Testing
  • 6. Product Development Is Moving Faster Every Day © All rights reserved User Conference on Advanced Automated Testing
  • 7. There Is Too Much to Test & Not Enough Time Then… • One computer platform • One OS • One app • One browser • One release per year © All rights reserved User Conference on Advanced Automated Testing Now… • Many platforms (PC, tablet, phone, cloud, voice …) • Multiple OS (Win, iOS, Android, Chrome, legacy, … ) • More connected apps • Multiple browsers (Chrome, IE, Firefox … • Multiple releases (every month or sooner)
  • 8. Integrations, Complexity & Manual Are Top Challenges © All rights reserved User Conference on Advanced Automated Testing Source: 8th Edition of World Quality Report 2016-17
  • 9. The Net Is Testing Needs To Be Done .. FASTER BETTER CHEAPER © All rights reserved User Conference on Advanced Automated Testing
  • 10. The Evolution of Software Testing © All rights reserved
  • 11. Evolution of Software Testing © All rights reserved User Conference on Advanced Automated Testing Manual Testing Test Scripts Capture/Replay Keyword Driven Testing Frameworks Test Models ATD Testing Efficiency Automated Test Design Model Based Testing (MBT)
  • 12. Manual Testing © All rights reserved User Conference on Advanced Automated Testing • “It is cheap”! Anybody can do it! • It is time consuming, ineffective, and error prone • It is still not (yet) replaceable • When tests are hard (or too expensive) to automate • Exploratory testing (with data)
  • 13. Test Scripts and Capture Replay User Conference on Advanced Automated Testing • Automatic execution! • Interactions have to be manually performed or coded • But capture/replay is still driven by manual testing  • Scripting requires special skills • One small change in SUT requires re-recording or re-coding
  • 14. (Keyword Driven) Testing Frameworks User Conference on Advanced Automated Testing • Simpler to use, understand & maintain • Allows reduction of required skills for test specification down to Excel! • Keywords are reusable & tests become retargetable! • Still requires (highly) skilled automation team for scripting keywords Example: Login(username,password) StartVehicle()
  • 15. Test Models (MBT) User Conference on Advanced Automated Testing • Generally graphical representation of control flows instead of coding • Easier to adopt & review than scripts • Can be generated from manual test descriptions or test plans • Allows generation of (partial) scripts and documentation • Still user is responsible for test design
  • 16. Automated Test Design (MBT) User Conference on Advanced Automated Testing • Specify functionality to be tested and generate optimal test coverage • Generally graphical representation of control and data aspects • Basically full script & documentation generation from generated tests • Now manual testers can effectively contribute to test automation Don't model tests; model the functionality to be tested! When you model the functionality to be tested you can create a model capable of representing every test for that functionality. It is a much smaller task, since the number of all possible tests is very large and change behind your back, which means test models will become obsolete the moment they are made. (adopted from Monica Anderson “Don’t model the World; Model the Mind”)
  • 17. About Model-Based Testing (MBT) User Conference on Advanced Automated Testing • Umbrella term for using models in a testing context; only one approach is to use MBT for automating test design • MBT complements test execution • Recognized by worldwide industrial standards (ETSI, ISTQB)
  • 18. The Evolution of Model-Based Testing © All rights reserved
  • 19. Evolution of Model Based Testing User Conference on Advanced Automated Testing
  • 20. Automated Test Design: Planning & Searching User Conference on Advanced Automated Testing λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ Model behavior implies typically infinite state space Constructs tests from the explored part of the state space by selecting paths that leads to testing goals Test generation algorithm searches the state space for testing goals, defined by the end user
  • 21. Automated Test Design: Reasoning & Problem Solving User Conference on Advanced Automated Testing • Test generation reasons about unspecified input data and derives a concrete data based on modeled logic • Generally, constraint solving theory is applied for computing unspecified input data Models describe the expected external behavior of the system under test Models interact with an unspecified environment via inputs and outputs
  • 22. Automated Test Design: Finding Important Tests User Conference on Advanced Automated Testing • Predict the ways the system may fail • Combine large set of heuristics • Equivalence classes • Boundary value analysis • Combinatorial testing • Mutation testing • And more… • Know what do not cover!
  • 23. MBT 1.0: Modeling Notation is Adoption Hurdle User Conference on Advanced Automated Testing From functional programming (10+ years ago) … B lisp … via some graphical & a lot of general purpose programming (~7 yrs ago) … class GarageDoorController extends StateMachine { /** The default constructor. */ public GarageDoorController() { } public void startMotor( String direction ) { MotorStart start; start.direction = direction; out.send( start ); } public void stopMotor( ) { MotorStop stop; out.send( stop ); } public void reverseMotor( ) { MotorReverse reverse; out.send( reverse ); } } UML Java OCL C#
  • 24. Today We Use Domain Specific Modeling Languages User Conference on Advanced Automated Testing • Designed specifically to use tester’s language, concepts & terminology • Easy to use: drag & drop building blocks to compose functionality • Enabling direct automation • Flexible and extensible • See also UCAAT 2013 tutorial
  • 25. MBT 2.0: Enabling Test Process Automation User Conference on Advanced Automated Testing • MBT is not just about test generation! • MBT integrates & connects with requirement & test management, versioning control, and test automation/CI integration ALM / Test Management Test Execution / CI ALM / Requirement Management MBT
  • 26. MBT 2.0: Still Every New Project Starts Like This … User Conference on Advanced Automated Testing
  • 27. MBT 3.0: “Eliminating” Modeling User Conference on Advanced Automated Testing Modeling System Under Test Test Execution Test Management Requirement Management Test Design BPM Gherkin Flowchart Man Tests Test Plans UI/mainframe SOAP/REST Version Control Test Data Management Complete End to End Test Process Automation with MBT
  • 28. Test Reverse Engineering User Conference on Advanced Automated Testing • Readers normalize test input format • Keywords are identified from test steps using Natural Language Processing (NLP) • Redundant tests and subtests are eliminated • Tests are converted into flows and merged BC A E F G D H IJK B A C D E B A C F A G D E F A H D G E J I K B A C D E E
  • 29. [ALM] Test Plans: Excel as Input to MBT User Conference on Advanced Automated Testing Generate Tests Execute! Import & Refine
  • 30. “BDD”: Gherkin as Input to MBT User Conference on Advanced Automated Testing Feature: Shopping with esd.conformiq.com Scenario: Successful shopping Given a user has logged in successfully When user adds 1 item(s) of "CQ0003" Then shopping basket contains 1 item(s) Scenario: Bad product id Given a user has logged in successfully When user adds 3 item(s) of "123" Then application displays invalid entry Scenario: Remove item Given a user has logged in successfully When user adds 1 item(s) of "CQ0003" Then shopping basket contains 1 item(s) When user clicks Remove all button for item "CQ0003" Then shopping basket contains 0 item(s) Import & Refine Generate Tests Execute! See also separate HUSTEF pres / video
  • 31. MBT Trends in 2017: Modeling in Prose • Low end MBT tools are pushing very simple, prose based modeling notations into the test tool market • Arguably domain specific modeling still has the edge as it enables a direct path to automatic test execution (today not possible from prose) • Users have started to perceive domain specific modeling (= creation of building blocks) as a burden when it comes to modeling • Model generation from test assets (reverse engineering) has addressed this issue but not removed it • Frequent use of extension points (“custom actions”) is diluting the value proposition of domain specific languages • Prose and domain specific action modeling start to mix © All rights reserved User Conference on Advanced Automated Testing
  • 32. Artificial Intelligence in Testing © All rights reserved
  • 33. AI Techniques Have Been Leveraged for (Many) Years! • Fuzzy and Probabilistic Logic • Classification • Search & Optimization • Expert Systems • (Deep) Machine Learning (ML) © All rights reserved User Conference on Advanced Automated Testing     ? λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ Remember this? Today the term “AI” is generally reduced to (Deep) Machine Learning …
  • 34. More Recent: AI in Robustness Testing © All rights reserved User Conference on Advanced Automated Testing code coverage • App store testing example: Fuzz vs search vs man+machine • Initially, “break the system by clicking around” (= “Monkey Testing”) • Now also combination of online MBT with learnings from previous failures • No human required for test execution! steps to reveal fault Source: Stuart Reid, “Smarter Testing with Artificial Intelligence”, JFTL 2017
  • 35. More Recent: AI in Result Analysis of Large Test Suites © All rights reserved User Conference on Advanced Automated Testing • Predictive analytics: what could fail? • “Test Less - Test Right” (M. Venkata) • Failure patterns, code changes, etc • Diagnostic analytics: what is failing? • Data mining & visualization of defects • Application monitoring for anomalies • Prescriptive analytics: what to fix? • Symptom vs defect • Root cause analysis
  • 36. How Could We Use Learning in Functional Testing? © All rights reserved User Conference on Advanced Automated Testing • Test automation tools have managed successfully to make creation of tests that are automatically executable more or less “dead easy” • BUT … automating from “arbitrary” text still has to be done manually Enter user name and password and click the Sign In button Manually refine into concrete automation steps Manually refine into domain specific model inputs & outputs Manual Test Step Test Automation Keyword Model Action(s) vs ?
  • 37. Introducing Intelligent Test Automation © All rights reserved User Conference on Advanced Automated Testing • From manual to automatically executable test in two steps 1. Feed manual tests and train intelligent test automation (if any), e.g., resolve unknown text to automation rules 2. Execute and fix unrecognized object identifiers (if any) • The more intelligent test automation is trained - the less it needs to learn!
  • 38. Intelligent Test Automation in a Nutshell © All rights reserved User Conference on Advanced Automated Testing • Reader(s) normalize input format(s) • Natural Language Processing is used to analyze test steps • User “teaches” mappings to target test automation tool or framework • Works with any input format, different target technologies, and any test automation framework!
  • 39. Intelligent Test Automation Naturally Extends to MBT! © All rights reserved User Conference on Advanced Automated Testing Test Files (fully generated) Custom Libraries Test Design Test Creation Includes optimization Includes scripts, data & validations Requirements Test Execution Includes harnesses Includes BAs & Testers Exec Tool(s) Intelligent Test Automation
  • 40. The Start of a New Generation in Test Automation? User Conference on Advanced Automated Testing © All rights reserved
  • 41. Evolution of Software Testing © All rights reserved User Conference on Advanced Automated Testing Manual Testing Test Scripts Capture/Replay Keyword Driven Testing Frameworks Test Models ATD Testing Efficiency Automated Test Design Model Based Testing (MBT)
  • 42. Thank You for Your Attention! © All rights reserved User Conference on Advanced Automated Testing Q&A stephan.schulz@conformiq.com

Notas del editor

  1. Inspired by M. Utting, B. Legeard, ”Practical Model-BasedTesting – A Tools Approach”, Morgan Kaufmann, 1st edition, 2006. The pyramid symbolizes the relative amout of effort to (re)produce and maintain tests.
  2. Don't model the World; Model the Mind. When you Model the Mind you can create systems capable of Learning everything about the world. It is a much smaller task, since the world is very large and changes behind your back, which means World Models will become obsolete the moment they are made. The only hope to create intelligent systems is to have the system itself create and maintain its own World Models. Continuously, in response to sensory input. Monica Anderson, working on (Language) Understanding Machines and Deep Learning since 2001 and classical AI for decades (https://www.quora.com/)
  3. Inspired by M. Utting, B. Legeard, ”Practical Model-BasedTesting – A Tools Approach”, Morgan Kaufmann, 1st edition, 2006. The pyramid symbolizes the relative amout of effort to (re)produce and maintain tests.