SlideShare a Scribd company logo
TESTING
TEST PYRAMID
More unit tests, less high level end-to-end tests running through a GUI
Layers:
UI
Service
Unit
SOFTWARE TESTING ICE CREAM CONE
Reverse of Testing Pyramid
Manual Testing
UI
Service
Unit
TESTING ICE CREAM CONE DISADVANTAGES
- Slow - usually not headless
- Brittle - simple changes could easily break UI tests
- Developers have less ownership of quality
TEST SOURCES
- Business Tests
- QA Tests
- Developer Tests
BUSINESS TESTS
- Behavior-Driven Development is relevant
- acceptance criteria describe what the application is supposed to do, and how
it does so, in high-level business terms
- acceptance criteria become high-level executable specifications
- living documentation
- speed up the feedback cycle and reduce risk
QA TESTS
- help discover and clarify the acceptance criteria
- identify other scenarios beyond the acceptance criteria
- ensure business rules are respected
- ensure support for required number of users or transactions
- demonstrate that application is fit for purpose
DEVELOPER TESTS
- Test-Driven Development related
- build confidence in the code base
- illustrate how components are intended to work, making it easier to
understand
- safer to make changes without introducing new bugs
TEST ROLES
- Tests that Discover
- Tests that Describe
- Tests that Demonstrate
DISCOVER
- Story Mapping
- Impact Mapping
- Example Mapping
DESCRIBE
- explain business rules or features, in high-level terms
- Illustrate how the system works
- BDD
- executable specifications
- Example Tools: Cucumber, SpecFlow, Spock
DEMONSTRATE
- demonstrate that the feature works in more detail
- check boundary conditions, edge cases or error handling
AUTOMATED TESTING QUADRANT
ROLES AND NATURE
- Quadrant 1 - high level business outcomes
- Quadrant 2 - still business-focused but more detailed and comprehensive
- Quadrant 3 - written by and for developers, for easier & cheaper maintenance
- Quadrant 4 - technical equivalent of Quadrant 2 tests
JUST ENOUGH AUTOMATED TESTS
TOO FEW
- reduce confidence
- more manual testing
- slower deployment cycles
TOO MANY
- take a lot of time to write
- increase maintenance costs
BE PRAGMATIC
- Write the simplest and fastest test that you can get away with
- Illustrate the point you are trying to demonstrate
- Make it easy to identify the cause of the problem
WELL BALANCED TEST PORTFOLIO
- Don’t use a web test where a service or unit test could do the same job
- Just the right amount of tests at the right levels to have confidence
REFERENCES
Test Pyramid Heresy - https://dzone.com/articles/a-test-pyramid-heresy
Test Pyramid - https://martinfowler.com/bliki/TestPyramid.html
Google Testing Blog - https://testing.googleblog.com/2015/04/just-say-no-to-
more-end-to-end-tests.html

More Related Content

PPTX
Load and performance testing
Qualitest
 
PPT
Load Testing Strategy 101
iradari
 
PPT
Performance Testing
sharmaparish
 
PPTX
Introduction to Performance Testing
jasndesilva
 
PPT
Performance and load testing
sonukalpana
 
PPTX
ENASE 2013 - SEM - (Francia) From Functional Test Scripts to Performance Test...
Federico Toledo
 
PPTX
Performance Testing
Selin Gungor
 
PDF
Client-Side Performance Testing
Anand Bagmar
 
Load and performance testing
Qualitest
 
Load Testing Strategy 101
iradari
 
Performance Testing
sharmaparish
 
Introduction to Performance Testing
jasndesilva
 
Performance and load testing
sonukalpana
 
ENASE 2013 - SEM - (Francia) From Functional Test Scripts to Performance Test...
Federico Toledo
 
Performance Testing
Selin Gungor
 
Client-Side Performance Testing
Anand Bagmar
 

What's hot (20)

PPS
Performance Test Slideshow Recent
Future Simmons
 
PPTX
An Introduction to Performance Testing
David Tzemach
 
PPTX
Types of performance testing
NaveenKumar Namachivayam
 
PDF
Automated Testing for Dynamics CRM 4 - CRMUG 2014
Wael Hamze
 
PDF
A Story of Continuous Integration
Salesforce Engineering
 
PDF
Automated Testing for Dynamics CRM 2 - CRMUG 2014
Wael Hamze
 
PPTX
Automated Testing for Dynamics CRM 3 - CRMUG 2014
Wael Hamze
 
PPTX
Webinar Xebia & bol.com
Xebia Nederland BV
 
PPTX
ITIL for Agile
rslomkow
 
PPTX
Performance Engineering
Kumar Gupta
 
PPTX
Continuous Integration In The Cloud Final (1)
Alexis Williams
 
PPTX
Writing Test Cases From User Stories And Acceptance Criteria
Hoa Le
 
PPTX
Where quality begins and Test strategy as a template
Augustine Uzokwe
 
PDF
Silverlight & Microsoft CRM Development - extremeCRM Berlin 2012
Wael Hamze
 
PPTX
Introduction to Performance Testing
Tharinda Liyanage
 
PPT
Test Automation Best Practices (with SOA test approach)
Leonard Fingerman
 
PDF
Automated Testing for Dynamics CRM 1 - CRMUG 2014
Wael Hamze
 
PPTX
Reaching for Your Quality Stretch Goals: Testing at Realtor.com
Klaus Salchner
 
PPTX
Functional testing
Vaibhav Dash
 
Performance Test Slideshow Recent
Future Simmons
 
An Introduction to Performance Testing
David Tzemach
 
Types of performance testing
NaveenKumar Namachivayam
 
Automated Testing for Dynamics CRM 4 - CRMUG 2014
Wael Hamze
 
A Story of Continuous Integration
Salesforce Engineering
 
Automated Testing for Dynamics CRM 2 - CRMUG 2014
Wael Hamze
 
Automated Testing for Dynamics CRM 3 - CRMUG 2014
Wael Hamze
 
Webinar Xebia & bol.com
Xebia Nederland BV
 
ITIL for Agile
rslomkow
 
Performance Engineering
Kumar Gupta
 
Continuous Integration In The Cloud Final (1)
Alexis Williams
 
Writing Test Cases From User Stories And Acceptance Criteria
Hoa Le
 
Where quality begins and Test strategy as a template
Augustine Uzokwe
 
Silverlight & Microsoft CRM Development - extremeCRM Berlin 2012
Wael Hamze
 
Introduction to Performance Testing
Tharinda Liyanage
 
Test Automation Best Practices (with SOA test approach)
Leonard Fingerman
 
Automated Testing for Dynamics CRM 1 - CRMUG 2014
Wael Hamze
 
Reaching for Your Quality Stretch Goals: Testing at Realtor.com
Klaus Salchner
 
Functional testing
Vaibhav Dash
 
Ad

Similar to Testing (20)

PPTX
QAorHighway2016
Bhupesh Dahal
 
PPTX
Test Automation Architecture That Works by Bhupesh Dahal
QA or the Highway
 
PDF
Future of the Testing Pyramid: How AI and Codeless Tools Are Changing the Layers
Shubham Joshi
 
PDF
[QaOps] Continuouss Integration | Pipeline strategy
Rafael Lima
 
PPTX
Beginners overview of automated testing with Rspec
jeffrey1ross
 
PPTX
Avoiding test hell
Yun Ki Lee
 
PDF
Build the Right Regression Suite with Behavior-Driven Testing
TechWell
 
PPTX
Making the Unstable Stable - An Intro To Testing
Cameron Presley
 
PDF
We are sinking: Hitting the testing iceberg (CukenFest London, 2018)
Gáspár Nagy
 
PDF
Comprehensive Performance Testing: From Early Dev to Live Production
TechWell
 
PPTX
An Overview of automated testing (1)
Rodrigo Lopes
 
PDF
Introduction to Automated Testing
Lars Thorup
 
PDF
Introduction to-automated-testing
BestBrains
 
PPTX
Testing in agile
Andrei Metelski
 
PPTX
How do you implement Continuous Delivery? Part 4: Automated Testing
Thoughtworks
 
PDF
Automated testing-whitepaper
imdurgesh
 
PDF
Agile Acceptance testing with Fitnesse
ClareMcLennan
 
PDF
10 Lessons learned in test automation
Romania Testing
 
PDF
[Paul Holland] Trends in Software Testing
Ho Chi Minh City Software Testing Club
 
PDF
Testing In Software Engineering
kiansahafi
 
QAorHighway2016
Bhupesh Dahal
 
Test Automation Architecture That Works by Bhupesh Dahal
QA or the Highway
 
Future of the Testing Pyramid: How AI and Codeless Tools Are Changing the Layers
Shubham Joshi
 
[QaOps] Continuouss Integration | Pipeline strategy
Rafael Lima
 
Beginners overview of automated testing with Rspec
jeffrey1ross
 
Avoiding test hell
Yun Ki Lee
 
Build the Right Regression Suite with Behavior-Driven Testing
TechWell
 
Making the Unstable Stable - An Intro To Testing
Cameron Presley
 
We are sinking: Hitting the testing iceberg (CukenFest London, 2018)
Gáspár Nagy
 
Comprehensive Performance Testing: From Early Dev to Live Production
TechWell
 
An Overview of automated testing (1)
Rodrigo Lopes
 
Introduction to Automated Testing
Lars Thorup
 
Introduction to-automated-testing
BestBrains
 
Testing in agile
Andrei Metelski
 
How do you implement Continuous Delivery? Part 4: Automated Testing
Thoughtworks
 
Automated testing-whitepaper
imdurgesh
 
Agile Acceptance testing with Fitnesse
ClareMcLennan
 
10 Lessons learned in test automation
Romania Testing
 
[Paul Holland] Trends in Software Testing
Ho Chi Minh City Software Testing Club
 
Testing In Software Engineering
kiansahafi
 
Ad

Recently uploaded (20)

PDF
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
PDF
Bandai Playdia The Book - David Glotz
BluePanther6
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PDF
Immersive experiences: what Pharo users do!
ESUG
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PDF
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PPT
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PDF
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
PPTX
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
Bandai Playdia The Book - David Glotz
BluePanther6
 
Exploring AI Agents in Process Industries
amoreira6
 
Immersive experiences: what Pharo users do!
ESUG
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
Activate_Methodology_Summary presentatio
annapureddyn
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
Presentation about variables and constant.pptx
kr2589474
 
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 

Testing

  • 2. TEST PYRAMID More unit tests, less high level end-to-end tests running through a GUI Layers: UI Service Unit
  • 3. SOFTWARE TESTING ICE CREAM CONE Reverse of Testing Pyramid Manual Testing UI Service Unit
  • 4. TESTING ICE CREAM CONE DISADVANTAGES - Slow - usually not headless - Brittle - simple changes could easily break UI tests - Developers have less ownership of quality
  • 5. TEST SOURCES - Business Tests - QA Tests - Developer Tests
  • 6. BUSINESS TESTS - Behavior-Driven Development is relevant - acceptance criteria describe what the application is supposed to do, and how it does so, in high-level business terms - acceptance criteria become high-level executable specifications - living documentation - speed up the feedback cycle and reduce risk
  • 7. QA TESTS - help discover and clarify the acceptance criteria - identify other scenarios beyond the acceptance criteria - ensure business rules are respected - ensure support for required number of users or transactions - demonstrate that application is fit for purpose
  • 8. DEVELOPER TESTS - Test-Driven Development related - build confidence in the code base - illustrate how components are intended to work, making it easier to understand - safer to make changes without introducing new bugs
  • 9. TEST ROLES - Tests that Discover - Tests that Describe - Tests that Demonstrate
  • 10. DISCOVER - Story Mapping - Impact Mapping - Example Mapping
  • 11. DESCRIBE - explain business rules or features, in high-level terms - Illustrate how the system works - BDD - executable specifications - Example Tools: Cucumber, SpecFlow, Spock
  • 12. DEMONSTRATE - demonstrate that the feature works in more detail - check boundary conditions, edge cases or error handling
  • 14. ROLES AND NATURE - Quadrant 1 - high level business outcomes - Quadrant 2 - still business-focused but more detailed and comprehensive - Quadrant 3 - written by and for developers, for easier & cheaper maintenance - Quadrant 4 - technical equivalent of Quadrant 2 tests
  • 15. JUST ENOUGH AUTOMATED TESTS TOO FEW - reduce confidence - more manual testing - slower deployment cycles TOO MANY - take a lot of time to write - increase maintenance costs
  • 16. BE PRAGMATIC - Write the simplest and fastest test that you can get away with - Illustrate the point you are trying to demonstrate - Make it easy to identify the cause of the problem
  • 17. WELL BALANCED TEST PORTFOLIO - Don’t use a web test where a service or unit test could do the same job - Just the right amount of tests at the right levels to have confidence
  • 18. REFERENCES Test Pyramid Heresy - https://dzone.com/articles/a-test-pyramid-heresy Test Pyramid - https://martinfowler.com/bliki/TestPyramid.html Google Testing Blog - https://testing.googleblog.com/2015/04/just-say-no-to- more-end-to-end-tests.html