SlideShare a Scribd company logo
test automation strategy
Developing a
why are we here?
regression testing
the greatest cost of development
regression testing
you have already paid for this at least once
why regression test?
why regression test?
quality ensures what was working, still works
why regression test?
quality
risk
money
lost revenue, market, contractual
ensures what was working, still works
deliverables, release, schedule
why regression test?
a project without
thorough and continuous regression testing
is like a road trip
where you do not look out the window
until the end of the trip
why automate? (vs. manual)
why automate? (vs. manual)
TimeMoney
why automate? (vs. manual)
Money
why automate? (vs. manual)
Time
automation strategy
what to consider...
tests are living specifications of the system
automation strategy
what to consider...
ARE THE TESTS GOING TO BE USED?
automation strategy
what to consider...
business needs
return on investment
organizational structure and culture
automation strategy
business needs...
determine areas of focus of the automation
automation strategy
return on investment...
limits and prioritizes the areas of focus of the
automation
determines at which level to automate a test
determines the automation framework
determines the success or failure
determines the speed, ability & openness to change
determines the communication
determines the ability to learn
automation strategy
organization and culture...
automation strategy
organization and culture...
determines who uses and maintains the tests
determines the automation framework too
automation strategy
what else to consider...
automation strategy
what else to consider...
development process and lifecycle
maintenance of the tests
technology stacks
automation strategy
development process and lifecycle...
legacy (system without tests) to greenfields
automation strategy
development process and lifecycle...
system under test development process
methodology: waterfall agile xp ad hoc
is automation development part of the same process?
automation strategy
development process and lifecycle...
is the automator part of the development team?
how much access to the system developers?
automation strategy
maintenance of the tests...
who and how much can they maintain?
how are the system developers involved?
automation strategy
maintenance of the tests...
how timely can/must tests be maintained
what reporting needed to maintain tests
automation strategy
finally, technology stacks...
languages and technology already used
unit and integration testing
source code control, continuous integration
devops or operations
where to automate?
Developing a test automation strategy by Brian Bayer
who is going to use the tests?
developers, maybe...
depends
where to automate?
https://msdn.microsoft.com
“Its essential point is that you should
have many more low-level unit tests than
high level end-to-end tests running
through a GUI.” Martin Fowler
where to automate?
UNIT LEVEL
INTEGRATION LEVEL
GUI INTEGRATION LEVEL
XPtest driven development
ACCEPTANCE LEVEL
BDD
ACCEPTANCE LEVEL
BDD
where to automate?
acceptance tests
only if the business is engaged and
going to use them
ACCEPTANCE LEVEL
BDD
where to automate?
what to consider...
DRY
look for low-hanging fruit
risk-based testing
what computers do well, humans not so much
fragility of test
where to automate?
what to consider...
which automation framework to use?
which automation framework to use?
Gherkin/Cucumber
Robot Framework
Selenium Webdriver
Spock/Geb
JUnit
Jasmine
TestNG
which automation framework to use?
what to consider...
ORGANIZATIONAL STRUCTURE AND CULTURE
which automation framework to use?
what to consider...
who is reading the tests?
who is writing and maintaining the tests?
balance of right tool with existing technology,
knowledge, and ability to learn
ORGANIZATIONAL STRUCTURE AND CULTURE
which automation framework to use?
what else to consider...
natural language for high level specification
goal is to develop tests NOT framework
and...
grids...
integration...
Developing a test automation strategy by Brian Bayer
reporting...
teh sexy
gherkin/cucumber/ruby
but JRuby (JVM), Java, Groovy, JavaScript,
.NET (using SpecFlow)
libraries (Selenium, Watir)
Ruby has the richest ecosystem with gems
gherkin/cucumber
generally ruby based...
Feature: Cash Withdrawal
Scenario: Successful withdrawal from an account in credit
Given my account has been credited with $100
When I withdraw $20
Then $20 should be dispensed
And the balance of my account should be $80
Given /^my account has been credited with (#{CAPTURE_CASH_AMOUNT})$/
do |amount|
my_account.credit(amount)
end
Developing a test automation strategy by Brian Bayer
also runs on Jython (JVM) & IronPython (.NET)
libraries (Selenium, Watir, SOAP, etc.)
keyword based
supports “given when then”
supports tabular/data driven
robot framework
python based...
*** Settings ***
Library Selenium Library
Suite Setup Start Selenium Server
Suite Teardown Stop Selenium Server
Test Setup Setup Test
Test Teardown Close All Browsers
*** Testcases ***
Login Should Succeed When the Correct
Username and Password are Entered
Enter Username AUser
Enter Password TestPass
Click the Login Button
Login is Successful
*** Keywords ***
Setup Test
Open Browser http://zdiles.chaosnet.org/ googlechrome
Maximize Browser Window
Enter Username [Arguments] ${username}
Input Text uname ${username}
Login Is Successful
Page Should Contain Welcome
*** Testcases ***
Login Should Succeed When the Correct Username and
Password are Entered
Given I Enter Username AUser
And I Enter Password TestPass
When I Click the Login Button
Then Login is Successful
given when then
spock/geb/groovy
Developing a test automation strategy by Brian Bayer
developing in java or grails?
groovy-based browser automation tool
built on Selenium WebDriver
works with JUnit, TestNG, Spock
page models and jQuery selector syntax
spock/geb/groovy
geb...
groovy-based test and specification framework
supports “given when then”
tabular/data driven
spock/geb/groovy
spock...
import geb.spock.GebSpec
class GebHomepageSpec extends GebSpec {
def "can access The Book of Geb via homepage"() {
given:”One is on the Geb Home Page”
to GebHomePage
when: “I click the jQuery Link”
highlights.jQueryLikeApi.click()
then: “I should be at the jQuery Section”
highlights.jQueryLikeApi.isSelected
}
}
import geb.Page
class GebHomePage extends Page {
static url = "http://gebish.org"
static at = { title == "Geb - Very Groovy Browser Automation" }
static content = {
highlights { $("#sidebar .sidemenu").module(HighlightsModule) }
sectionTitles { $("#main h1")*.text() }
}
}
FRAMEWORKS
other options...
raw Selenium (Java)
excel spreadsheet data driven scripts
script capture record/playback
flat files in source control
other options...
which automation framework to use?
the simplest thing that could possibly work
tests
are specifications of the system...
how does it fit?
how does it fit...
design your approach into the organization
how does it fit...
find the gaps and tight squeezes
the specifics...
the mechanics...
so what’s left?
documentation of the strategy...
execution of the strategy...
if project management...
estimation...
resources...
Developing a test automation strategy by Brian Bayer

More Related Content

PPT
Automated Testing with Agile
PDF
Test Automation Framework Design | www.idexcel.com
PDF
Automated vs manual testing
PPTX
Test automation proposal
PPT
Test Automation Strategies For Agile
PPTX
Selenium Test Automation
PPT
Test Automation Best Practices (with SOA test approach)
PPT
Automation testing
Automated Testing with Agile
Test Automation Framework Design | www.idexcel.com
Automated vs manual testing
Test automation proposal
Test Automation Strategies For Agile
Selenium Test Automation
Test Automation Best Practices (with SOA test approach)
Automation testing

What's hot (20)

PPT
Selenium
PPT
Automated Testing vs Manual Testing
PDF
Automation Testing using Selenium
PPT
Selenium ppt
PDF
Katalon Studio - A Codeless Automation Tool.pdf
PPTX
Selenium test automation
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
PPT
Hybrid Automation Framework Development introduction
PDF
Building a Test Automation Strategy for Success
PPT
Selenium Concepts
PDF
Introduction cypress
PDF
Introduction To Mobile-Automation
PDF
Web automation using selenium.ppt
PPTX
Introduction to Automation Testing
PPTX
How to Get Started with Cypress
PDF
Test Automation - Keytorc Approach
PDF
Test Automation
PDF
Test Automation Trends and Beyond
PPTX
Test Automation and Selenium
ODP
Selenium ppt
Selenium
Automated Testing vs Manual Testing
Automation Testing using Selenium
Selenium ppt
Katalon Studio - A Codeless Automation Tool.pdf
Selenium test automation
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Hybrid Automation Framework Development introduction
Building a Test Automation Strategy for Success
Selenium Concepts
Introduction cypress
Introduction To Mobile-Automation
Web automation using selenium.ppt
Introduction to Automation Testing
How to Get Started with Cypress
Test Automation - Keytorc Approach
Test Automation
Test Automation Trends and Beyond
Test Automation and Selenium
Selenium ppt
Ad

Viewers also liked (20)

PDF
Test Automation in the Microservices Oriented Enterprise by Shawn Wallace
PPTX
Agile Testing Strategy
PPTX
QA Fest 2014. Ярослав Пернеровский. Appium - два в одном. рецепт приготовлени...
PPTX
I don't always test...but when I do I test in production - Gareth Bowles
PPTX
The Risky Business of Testing by Shaminder Rai and Dave Patel
PPTX
Cucumber From the Ground Up - Joseph Beale
PDF
Bad metric, bad! - Joseph Ours
PPTX
Challenging Your Project’s Testing Mindsets - Joe DeMeyer
PDF
Improv(e) your testing! - Damian Synadinos
PDF
Training for Automated Testing - Kelsey Shannahan
PDF
Testing web services by Stan Jónsson
PDF
When Cultures Collide – A tester’s story by Raj Subramanian
PPTX
STOP! You're Testing Too Much - Shawn Wallace
PDF
Austin agile conf 2012 infrastructure automation-gmiranda
PDF
Ready, set, go! - Anna Royzman
PDF
Feedback and its importance in delivering high quality software - Ken De Souza
PPTX
The Art of Gherkin Scripting - Matt Eakin
PDF
WE are Doing it Wrong - Dmitry Sharkov
PDF
Agile Infrastructure Automation Presentation to Wall Street Technology Associ...
PDF
Scrum gathering Paris 2013 - test automation strategy for Scrum Projects
Test Automation in the Microservices Oriented Enterprise by Shawn Wallace
Agile Testing Strategy
QA Fest 2014. Ярослав Пернеровский. Appium - два в одном. рецепт приготовлени...
I don't always test...but when I do I test in production - Gareth Bowles
The Risky Business of Testing by Shaminder Rai and Dave Patel
Cucumber From the Ground Up - Joseph Beale
Bad metric, bad! - Joseph Ours
Challenging Your Project’s Testing Mindsets - Joe DeMeyer
Improv(e) your testing! - Damian Synadinos
Training for Automated Testing - Kelsey Shannahan
Testing web services by Stan Jónsson
When Cultures Collide – A tester’s story by Raj Subramanian
STOP! You're Testing Too Much - Shawn Wallace
Austin agile conf 2012 infrastructure automation-gmiranda
Ready, set, go! - Anna Royzman
Feedback and its importance in delivering high quality software - Ken De Souza
The Art of Gherkin Scripting - Matt Eakin
WE are Doing it Wrong - Dmitry Sharkov
Agile Infrastructure Automation Presentation to Wall Street Technology Associ...
Scrum gathering Paris 2013 - test automation strategy for Scrum Projects
Ad

Similar to Developing a test automation strategy by Brian Bayer (20)

PPT
Quality Assurance & Testing in a glimpse
PPT
Saa S Tech Introduction
PPT
Test Automation Frameworks Final
PPTX
Best practices for test automation
PPTX
Test automation and Agile software development
PDF
The Automation Firehose: Be Strategic and Tactical by Thomas Haver
PDF
The Automation Firehose: Be Strategic & Tactical With Your Mobile & Web Testing
PPTX
'BIG Testing' with Hans Buwalda
PDF
Test automation: Are Enterprises ready to bite the bullet?
PDF
What are the Top Automated Software Testing Tools for 2021
PDF
Getting Started With QA Automation
PDF
The Testing Planet Issue 2
PPT
Automation
PPTX
Banishing the Fears of Test Automation - Codestock 2022
PPT
SAP Test automation - fully automatic test of complex business processes incl...
PDF
6 Traits of a Successful Test Automation Architecture
PDF
Introduction Machine Learning by MyLittleAdventure
PPTX
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
PPTX
"Fear is the mind-killer." -Banishing the Fears of Test Automation
PDF
Improving ROI with Scriptless Test Automation
Quality Assurance & Testing in a glimpse
Saa S Tech Introduction
Test Automation Frameworks Final
Best practices for test automation
Test automation and Agile software development
The Automation Firehose: Be Strategic and Tactical by Thomas Haver
The Automation Firehose: Be Strategic & Tactical With Your Mobile & Web Testing
'BIG Testing' with Hans Buwalda
Test automation: Are Enterprises ready to bite the bullet?
What are the Top Automated Software Testing Tools for 2021
Getting Started With QA Automation
The Testing Planet Issue 2
Automation
Banishing the Fears of Test Automation - Codestock 2022
SAP Test automation - fully automatic test of complex business processes incl...
6 Traits of a Successful Test Automation Architecture
Introduction Machine Learning by MyLittleAdventure
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
"Fear is the mind-killer." -Banishing the Fears of Test Automation
Improving ROI with Scriptless Test Automation

More from QA or the Highway (20)

PDF
KrishnaToolComparisionPPT.pdf
PPTX
Ravi Lakkavalli - World Quality Report.pptx
PPTX
Caleb Crandall - Testing Between the Buckets.pptx
PDF
Thomas Haver - Mobile Testing.pdf
PDF
Thomas Haver - Example Mapping.pdf
PDF
Joe Colantonio - Actionable Automation Awesomeness in Testing Farm.pdf
PDF
Sarah Geisinger - Continious Testing Metrics That Matter.pdf
PDF
Jeff Sing - Quarterly Service Delivery Reviews.pdf
PDF
Leandro Melendez - Chihuahua Load Tests.pdf
PDF
Rick Clymer - Incident Management.pdf
PPTX
Robert Fornal - ChatGPT as a Testing Tool.pptx
PDF
Federico Toledo - Extra-functional testing.pdf
PPTX
Andrew Knight - Managing the Test Data Nightmare.pptx
PDF
Melissa Tondi - Automation We_re Doing it Wrong.pdf
PDF
Jeff Van Fleet and John Townsend - Transition from Testing to Leadership.pdf
PPTX
DesiradhaRam Gadde - Testers _ Testing in ChatGPT-AI world.pptx
PDF
Damian Synadinos - Word Smatter.pdf
PDF
Lee Barnes - What Successful Test Automation is.pdf
PPTX
Jordan Powell - API Testing with Cypress.pptx
PPTX
Carlos Kidman - Exploring AI Applications in Testing.pptx
KrishnaToolComparisionPPT.pdf
Ravi Lakkavalli - World Quality Report.pptx
Caleb Crandall - Testing Between the Buckets.pptx
Thomas Haver - Mobile Testing.pdf
Thomas Haver - Example Mapping.pdf
Joe Colantonio - Actionable Automation Awesomeness in Testing Farm.pdf
Sarah Geisinger - Continious Testing Metrics That Matter.pdf
Jeff Sing - Quarterly Service Delivery Reviews.pdf
Leandro Melendez - Chihuahua Load Tests.pdf
Rick Clymer - Incident Management.pdf
Robert Fornal - ChatGPT as a Testing Tool.pptx
Federico Toledo - Extra-functional testing.pdf
Andrew Knight - Managing the Test Data Nightmare.pptx
Melissa Tondi - Automation We_re Doing it Wrong.pdf
Jeff Van Fleet and John Townsend - Transition from Testing to Leadership.pdf
DesiradhaRam Gadde - Testers _ Testing in ChatGPT-AI world.pptx
Damian Synadinos - Word Smatter.pdf
Lee Barnes - What Successful Test Automation is.pdf
Jordan Powell - API Testing with Cypress.pptx
Carlos Kidman - Exploring AI Applications in Testing.pptx

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Cloud computing and distributed systems.
PDF
Electronic commerce courselecture one. Pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Big Data Technologies - Introduction.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
MYSQL Presentation for SQL database connectivity
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
GamePlan Trading System Review: Professional Trader's Honest Take
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Spectral efficient network and resource selection model in 5G networks
Cloud computing and distributed systems.
Electronic commerce courselecture one. Pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Big Data Technologies - Introduction.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The Rise and Fall of 3GPP – Time for a Sabbatical?
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
MYSQL Presentation for SQL database connectivity

Developing a test automation strategy by Brian Bayer