SlideShare a Scribd company logo
COMPARING
AGILE QA APPROACHES
TO END-TO-ENDTESTING
Daria Mehra, Director of QE at Quid
Talk at Lean StartupWeek, 11/03/16
Why test at all?
■ Can’t we write bug-free software?
– Industry Average: "about 15 - 50 errors per 1000 lines of delivered code.”
(Steve McConnell, Code Complete)
■ Can’t we fix the bugs as the users report them?
– Are you Facebook?
■ Cost of fixing the bug goes up with time from inception
– Prevent it at no cost*, fix it pre-release for $, fix it post-release for $$$$.
■ “Hope is not a strategy.” (Google SRE)
Buggy math
■ Mercedes recently ran an ad saying that its new car has 100 million lines of code.That’s
impressive—until you realize that on average, any piece of software has a few bugs per
thousand lines of code, so the car probably has thousands of vulnerabilities.
– Chris Dixon of Andreessen Horowitz, replying to Obama’s 6 tech challenges
■ 100 mln loc * 15 bugs/kloc => 1.5 mln bugs!
■ Ford F-150 pickup, 150 mln loc => 2.25 mln bugs
■ Assume 0.001% probability of bug in a given month
■ Get 1 bug per working day…
How to move fast
■ Remember “Move fast and break things”?
■ Slogan v2: “Move fast and build things”!
■ Because you don’t move faster with a broken leg.
■ Quality vsVelocity is a false dichotomy
■ Quality improves as waste is removed,
leading to velocity
– Kaizen: “change for the better”
– What Agile was called in 1986
Bimodal IT: where do you land?
http://techbeacon.com/gartners-bimodal-it-mistake-devops-can-deliver-velocity-quality
Y u so slow?
Don’t do that “Fast” won’t last
Awesome. How?
Path to quality
Velocity: High.
Except for when it breaks.
Quality: ?????
Velocity: High.
Quality: High.
https://danashby.co.uk/2016/10/19/continuous-testing-in-devops/
Who needs end-to-end tests?
■ http://www.alwaysagileconsulting.com/articles/end-to-end-testing-considered-harmful/
■ https://testing.googleblog.com/2015/04/just-say-no-to-more-end-to-end-tests.html
■ End-to-end testing considered harmful. If that’s all you do. (Steve Smith)
■ Unit tests are great! At Quid: 5000+ unit tests, 108 e2e user-workflow tests.
2 unit tests, 0 integration tests
If this video won’t play in the slide deck, watch it here:
http://thisotplife.tumblr.com/post/137415092034/2-unit-tests-0-integration-tests
needs end-to-end tests!
■ What’s Quid?
– Quid is a platform that searches, analyzes and visualizes
the world’s collective intelligence to help
answer strategic questions
■ Huge data set + upload your own
– Data-dependent execution
■ Search -> NLP -> knowledge network -> viz
■ Rich UI with many workflows:
– Lots of ways to slice and dice the data
■ Import and export and browsers, oh my!
■ Must test important user workflows daily in CI
Two roads diverged
■ Manual-only testing is not a feasible path: slow, expensive, unreliable.
■ Two ways I’ve done it: full automation with Selenium, and RainforestQA.
Selenium approach
■ Automated end-to-end testcases in Python / Ruby / etc,
executed by driving browser actions via Selenium framework
■ Often with a layer of structured natural language on top (Gherkin or Cucumber)
■ Pros:
– Fast execution -> quick feedback loop
– Runs in CI on developer branches and master -> always releasable master
■ Cons:
– Tied to the front-end implementation, your CSS is now your API
– Finicky, tends to suffer from timing issues with page state
– Hard to debug failures, is this a product regression or a test issue?
“Element is not clickable at point (x, y). Other element would receive the click: …”
– Misses regressions that human would notice
– Takes engineering skill to add and maintain testcases
Release process w/Selenium
UnitTests + FunctionalTests + End-to-End SeleniumTests
RainforestQA approach
■ Automated end-to-end testcases in unstructured natural language (English),
executed by crowdsourced human testers via RainforestQA service
■ Pros:
– Easy to add and maintain testcases, non-engineers can do it
– Easy to debug test failures (screenshot + human comment)
– No dependence on front-end implementation, only user-visible workflow
– Human eye
– Parallel scalable execution
■ Cons:
– Slower test execution at human speed
– Annual contract expense
– Runs on staging and/or production, not on dev branches
Release process w/RainforestQA
UnitTests + FunctionalTests End-to-End RainforestQATests
Why we picked RainforestQA
■ Not either/or:
– Quid uses Selenium in production monitoring checks
■ Scaling out Rainforest testcases was SO MUCH EASIER
■ Solved regression testing for a complex product
■ Nightly testing is close enough to CI/CD for us
– Next up: early access testing with feature flags
■ Allows QE team to stay small
■ Promotes collaboration on quality between PM, CS, QE and Dev
■ Frees up Quality Engineer time for “artisanal” exploratory testing
■ … And that has made all the difference.
Ask me anything
■ Daria Mehra, Director of QE at Quid
■ Look us up: www.quid.com
■ Email me: dmehra@quid.com
■ Read my post on quality process: http://tinyurl.com/dmehra-ikea
■ Read about how I spend my days: http://tinyurl.com/dmehra-day
■ And we ARE hiring!

More Related Content

What's hot (20)

PDF
Trunk based development
go_oh
 
PDF
AgileDC15 I'm Using Chef So I'm DevOps Right?
Rob Brown
 
PDF
DevOps Unicorns
Matt O'Keefe
 
PDF
Becoming a Git Master - Nicola Paolucci
Atlassian
 
PDF
從限制理論看 DevOps
William Yeh
 
PPTX
Back to basic: continuous integration (Madrid DevOps)
Sergio Navarro Pino
 
PDF
Trunk-Based Development and Toggling
Bryan Liu
 
PPTX
Advanced deployment scenarios (netcoreconf)
Sergio Navarro Pino
 
PDF
有了 Agile,為什麼還要有 DevOps?
William Yeh
 
PPTX
CI back to basis
Sergio Navarro Pino
 
PPTX
Advanced deployment scenarios
Sergio Navarro Pino
 
PPTX
From Continuous Integration to Continuous Delivery and DevOps
Luca Minudel
 
ODP
Getting your project_started
Adam Culp
 
PDF
DevOpsDaysRiga 2018: Neil Crawford - Trunk based development, continuous depl...
DevOpsDays Riga
 
PPTX
Automation CICD
Lumban Sopian
 
PDF
Distributed Release Management
Mike Brittain
 
PDF
DevQA: make your testers happier with Groovy, Spock and Geb (Greach 2014)
Alvaro Sanchez-Mariscal
 
PPTX
A brief history of automation in Software Engineering
Georg Buske
 
PPTX
Trunk Based Development in the Enterprise - Its Relevance and Economics
Perforce
 
PDF
Principles and Practices in Continuous Deployment at Etsy
Mike Brittain
 
Trunk based development
go_oh
 
AgileDC15 I'm Using Chef So I'm DevOps Right?
Rob Brown
 
DevOps Unicorns
Matt O'Keefe
 
Becoming a Git Master - Nicola Paolucci
Atlassian
 
從限制理論看 DevOps
William Yeh
 
Back to basic: continuous integration (Madrid DevOps)
Sergio Navarro Pino
 
Trunk-Based Development and Toggling
Bryan Liu
 
Advanced deployment scenarios (netcoreconf)
Sergio Navarro Pino
 
有了 Agile,為什麼還要有 DevOps?
William Yeh
 
CI back to basis
Sergio Navarro Pino
 
Advanced deployment scenarios
Sergio Navarro Pino
 
From Continuous Integration to Continuous Delivery and DevOps
Luca Minudel
 
Getting your project_started
Adam Culp
 
DevOpsDaysRiga 2018: Neil Crawford - Trunk based development, continuous depl...
DevOpsDays Riga
 
Automation CICD
Lumban Sopian
 
Distributed Release Management
Mike Brittain
 
DevQA: make your testers happier with Groovy, Spock and Geb (Greach 2014)
Alvaro Sanchez-Mariscal
 
A brief history of automation in Software Engineering
Georg Buske
 
Trunk Based Development in the Enterprise - Its Relevance and Economics
Perforce
 
Principles and Practices in Continuous Deployment at Etsy
Mike Brittain
 

Viewers also liked (8)

PDF
ContainerCon - Test Driven Infrastructure
Yury Tsarev
 
PDF
I Love APIs 2015: End to End Testing: Bug Squashing for Developers
Apigee | Google Cloud
 
PDF
Put on Your Asynchronous Hat and Node
Marc Fasel
 
PDF
BDD
machielg
 
PDF
End to End Testing: Bug Squashing for API Developers
Apigee | Google Cloud
 
PPTX
Behavior-Driven Development (BDD) in context
Alexander Kress
 
PDF
Atagg2015 BDD in Test pyramid
Agile Testing Alliance
 
PDF
Security DevOps - Free pentesters' time to focus on high-hanging fruits // Ha...
Christian Schneider
 
ContainerCon - Test Driven Infrastructure
Yury Tsarev
 
I Love APIs 2015: End to End Testing: Bug Squashing for Developers
Apigee | Google Cloud
 
Put on Your Asynchronous Hat and Node
Marc Fasel
 
End to End Testing: Bug Squashing for API Developers
Apigee | Google Cloud
 
Behavior-Driven Development (BDD) in context
Alexander Kress
 
Atagg2015 BDD in Test pyramid
Agile Testing Alliance
 
Security DevOps - Free pentesters' time to focus on high-hanging fruits // Ha...
Christian Schneider
 
Ad

Similar to Comparing Agile QA Approaches to End-to-End Testing (20)

PDF
What to Do—Develop Your Own Automation or Use Crowdsourced Testing?
TechWell
 
PDF
Building QA Team that matters for an Agile World
Maurizio Mancini
 
PDF
Sq mag no_05
Salah EL AMAMI
 
PPTX
How to Add Test Automation to your Quality Assurance Toolbelt
Brett Tramposh
 
PDF
High Performance Software Engineering Teams
Lars Thorup
 
PDF
How to Build in Quality from Day 1 using Lean QA and Agile Testing
Atlassian
 
PDF
How we improved iOS delivery speed from QA side
Kateryna Sprynsian
 
PDF
SVCC 2011 - 0 - 60: QA Automation @ Box
Peter White
 
PDF
Atlassian Summit 2015 Lean QA and Agile Testing
Maurizio Mancini
 
PDF
How TestOps is Redefining QA Testing in DevOps.pdf
Kanika Vatsyayan
 
PDF
Engaging IV&V Testing Services for Agile Projects
Ravi Kumar
 
DOCX
Guide for Quality Center (QC) Automation Tool
Subrat Srivastava
 
PPTX
Moving QA from Reactive to Proactive with qTest
QASymphony
 
PPTX
Zero touch QA automation platform for DevOps
TaUB Solutions
 
DOC
Software testing cv shirish nagar
Shirish Nagar
 
DOC
Software testing cv shirish nagar
Shirish Nagar
 
DOC
S'ware Testing CV_Shirish Nagar
Shirish Nagar
 
PDF
Automated Testing: QA Horizons
Prottay Karim
 
PPTX
Quality engineering approaches (published)
Yotam Sharan
 
PDF
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
QA or the Highway
 
What to Do—Develop Your Own Automation or Use Crowdsourced Testing?
TechWell
 
Building QA Team that matters for an Agile World
Maurizio Mancini
 
Sq mag no_05
Salah EL AMAMI
 
How to Add Test Automation to your Quality Assurance Toolbelt
Brett Tramposh
 
High Performance Software Engineering Teams
Lars Thorup
 
How to Build in Quality from Day 1 using Lean QA and Agile Testing
Atlassian
 
How we improved iOS delivery speed from QA side
Kateryna Sprynsian
 
SVCC 2011 - 0 - 60: QA Automation @ Box
Peter White
 
Atlassian Summit 2015 Lean QA and Agile Testing
Maurizio Mancini
 
How TestOps is Redefining QA Testing in DevOps.pdf
Kanika Vatsyayan
 
Engaging IV&V Testing Services for Agile Projects
Ravi Kumar
 
Guide for Quality Center (QC) Automation Tool
Subrat Srivastava
 
Moving QA from Reactive to Proactive with qTest
QASymphony
 
Zero touch QA automation platform for DevOps
TaUB Solutions
 
Software testing cv shirish nagar
Shirish Nagar
 
Software testing cv shirish nagar
Shirish Nagar
 
S'ware Testing CV_Shirish Nagar
Shirish Nagar
 
Automated Testing: QA Horizons
Prottay Karim
 
Quality engineering approaches (published)
Yotam Sharan
 
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
QA or the Highway
 
Ad

Recently uploaded (20)

PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Top Managed Service Providers in Los Angeles
Captain IT
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Français Patch Tuesday - Juillet
Ivanti
 
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 

Comparing Agile QA Approaches to End-to-End Testing

  • 1. COMPARING AGILE QA APPROACHES TO END-TO-ENDTESTING Daria Mehra, Director of QE at Quid Talk at Lean StartupWeek, 11/03/16
  • 2. Why test at all? ■ Can’t we write bug-free software? – Industry Average: "about 15 - 50 errors per 1000 lines of delivered code.” (Steve McConnell, Code Complete) ■ Can’t we fix the bugs as the users report them? – Are you Facebook? ■ Cost of fixing the bug goes up with time from inception – Prevent it at no cost*, fix it pre-release for $, fix it post-release for $$$$. ■ “Hope is not a strategy.” (Google SRE)
  • 3. Buggy math ■ Mercedes recently ran an ad saying that its new car has 100 million lines of code.That’s impressive—until you realize that on average, any piece of software has a few bugs per thousand lines of code, so the car probably has thousands of vulnerabilities. – Chris Dixon of Andreessen Horowitz, replying to Obama’s 6 tech challenges ■ 100 mln loc * 15 bugs/kloc => 1.5 mln bugs! ■ Ford F-150 pickup, 150 mln loc => 2.25 mln bugs ■ Assume 0.001% probability of bug in a given month ■ Get 1 bug per working day…
  • 4. How to move fast ■ Remember “Move fast and break things”? ■ Slogan v2: “Move fast and build things”! ■ Because you don’t move faster with a broken leg. ■ Quality vsVelocity is a false dichotomy ■ Quality improves as waste is removed, leading to velocity – Kaizen: “change for the better” – What Agile was called in 1986
  • 5. Bimodal IT: where do you land? http://techbeacon.com/gartners-bimodal-it-mistake-devops-can-deliver-velocity-quality Y u so slow? Don’t do that “Fast” won’t last Awesome. How?
  • 6. Path to quality Velocity: High. Except for when it breaks. Quality: ????? Velocity: High. Quality: High. https://danashby.co.uk/2016/10/19/continuous-testing-in-devops/
  • 7. Who needs end-to-end tests? ■ http://www.alwaysagileconsulting.com/articles/end-to-end-testing-considered-harmful/ ■ https://testing.googleblog.com/2015/04/just-say-no-to-more-end-to-end-tests.html ■ End-to-end testing considered harmful. If that’s all you do. (Steve Smith) ■ Unit tests are great! At Quid: 5000+ unit tests, 108 e2e user-workflow tests.
  • 8. 2 unit tests, 0 integration tests If this video won’t play in the slide deck, watch it here: http://thisotplife.tumblr.com/post/137415092034/2-unit-tests-0-integration-tests
  • 9. needs end-to-end tests! ■ What’s Quid? – Quid is a platform that searches, analyzes and visualizes the world’s collective intelligence to help answer strategic questions ■ Huge data set + upload your own – Data-dependent execution ■ Search -> NLP -> knowledge network -> viz ■ Rich UI with many workflows: – Lots of ways to slice and dice the data ■ Import and export and browsers, oh my! ■ Must test important user workflows daily in CI
  • 10. Two roads diverged ■ Manual-only testing is not a feasible path: slow, expensive, unreliable. ■ Two ways I’ve done it: full automation with Selenium, and RainforestQA.
  • 11. Selenium approach ■ Automated end-to-end testcases in Python / Ruby / etc, executed by driving browser actions via Selenium framework ■ Often with a layer of structured natural language on top (Gherkin or Cucumber) ■ Pros: – Fast execution -> quick feedback loop – Runs in CI on developer branches and master -> always releasable master ■ Cons: – Tied to the front-end implementation, your CSS is now your API – Finicky, tends to suffer from timing issues with page state – Hard to debug failures, is this a product regression or a test issue? “Element is not clickable at point (x, y). Other element would receive the click: …” – Misses regressions that human would notice – Takes engineering skill to add and maintain testcases
  • 12. Release process w/Selenium UnitTests + FunctionalTests + End-to-End SeleniumTests
  • 13. RainforestQA approach ■ Automated end-to-end testcases in unstructured natural language (English), executed by crowdsourced human testers via RainforestQA service ■ Pros: – Easy to add and maintain testcases, non-engineers can do it – Easy to debug test failures (screenshot + human comment) – No dependence on front-end implementation, only user-visible workflow – Human eye – Parallel scalable execution ■ Cons: – Slower test execution at human speed – Annual contract expense – Runs on staging and/or production, not on dev branches
  • 14. Release process w/RainforestQA UnitTests + FunctionalTests End-to-End RainforestQATests
  • 15. Why we picked RainforestQA ■ Not either/or: – Quid uses Selenium in production monitoring checks ■ Scaling out Rainforest testcases was SO MUCH EASIER ■ Solved regression testing for a complex product ■ Nightly testing is close enough to CI/CD for us – Next up: early access testing with feature flags ■ Allows QE team to stay small ■ Promotes collaboration on quality between PM, CS, QE and Dev ■ Frees up Quality Engineer time for “artisanal” exploratory testing ■ … And that has made all the difference.
  • 16. Ask me anything ■ Daria Mehra, Director of QE at Quid ■ Look us up: www.quid.com ■ Email me: [email protected] ■ Read my post on quality process: http://tinyurl.com/dmehra-ikea ■ Read about how I spend my days: http://tinyurl.com/dmehra-day ■ And we ARE hiring!