SlideShare a Scribd company logo
TEST AUTOMATION
ARCHITECTURE IN
MICROSERVICES
Alper Mermer
1
TESTING RELATED ISSUES IN MICROSERVICES
Services are built and deployed independently
Services talk to each other to accomplish things
Builds and deploys are automated
Data is not centralized
Cross functionals need to be tested way before the end
Tests need to be executed way earlier
Tests need to be executed way later
2
THE INFAMOUS TEST AUTOMATION PYRAMIDE
3
INTERNAL TESTS
4
EXTERNAL TESTS
5
SERVICES ARE BUILT AND DEPLOYED INDEPENDENTLY
6You can’t depend on other services to be up
SERVICES ARE BUILT AND DEPLOYED INDEPENDENTLY
7
Use test doubles to resolve your dependencies
Mountebank
SERVICES ARE BUILT AND DEPLOYED INDEPENDENTLY
8
Your tests should be able to run in isolation
Docker
SERVICES TALK TO EACH OTHER TO ACCOMPLISH THINGS
9Keep the communication between your services alive
SERVICES TALK TO EACH OTHER TO ACCOMPLISH THINGS
10
Create Consumer Driven Contract Tests between services
Pact
BUILDS AND DEPLOYS ARE AUTOMATED
11You don’t have a buffer time between builds
BUILDS AND DEPLOYS ARE AUTOMATED
12
Multiple layers of testing
Layered path to
production deployment
Blue - Green deployments
Canary releases
BUILDS AND DEPLOYS ARE AUTOMATED
13
Repeatable environments
Vagrant, Puppet, Chef, Ansible, Docker
DATA IS NOT CENTRALIZED
14
You have to manage each test data seperately
Each test creates its own data
DATA IS NOT CENTRALIZED
15
Each test data should be unique accross the test suite
Each test deletes only the data it created
CROSS FUNCTIONALS NEED TO BE TESTED WAY BEFORE THE
END
16
Again, you can’t wait until everything is completed
CROSS FUNCTIONALS NEED TO BE TESTED WAY BEFORE THE
END
17
Put in automated performance tests in your CDP
Jmeter, Gattling, Locust
CROSS FUNCTIONALS NEED TO BE TESTED WAY BEFORE THE
END
18
Put in automated security checks in your CDP
OWASP ZAP, OWASP Dependency Check, W3af
TESTS NEED TO BE EXECUTED WAY EARLIER
19
Tests aren’t the responsibility of the testers alone
You need to start testing right away
TESTS NEED TO BE EXECUTED WAY EARLIER
20
You should minimize testing things as a whole
End to End (E2E) tests
TESTS NEED TO BE EXECUTED WAY EARLIER
21
Implement Journey Tests
Selenium, Capybara, Sahi, Appium
TESTS NEED TO BE EXECUTED WAY LATER
22
See what’s going on in production
Monitor things
TESTS NEED TO BE EXECUTED WAY LATER
23
Analyze trends and problems on production
Have some tests which are run in production
TESTS NEED TO BE EXECUTED WAY LATER
24
Be a Quality Analyst
COMMON PITFALLS
Don’t use a fixed recipe
Build your architecture
incrementally
Keep your architecture alive
25
BOOK SUGGESTIONS
Building Microservices - Designing Fine-Grained Systems, Sam Newman
Infrastructure as Code - Managing Servers in the Cloud, Kief Morris
26
27
THANK YOU
Questions ?
amermer@thoughtworks.com
@alpermermer
@test_hive

More Related Content

What's hot (20)

PPTX
Automation Testing
Sun Technlogies
 
PPT
Automation testing
Biswajit Pratihari
 
PPT
Automation With A Tool Demo
Nivetha Padmanaban
 
PDF
30 of the best free software test tools in 60 minutes by Jess Lancaster
QA or the Highway
 
PPTX
Amalgamation of BDD, parallel execution and mobile automation
Agile Testing Alliance
 
PPTX
Test automation
Xavier Yin
 
PPTX
Elements of a Test Framework
SmartBear
 
PPTX
Colorful world-of-visual-automation-testing-latest
Onur Baskirt
 
PDF
Say NO To (More) Selenium Tests
Anand Bagmar
 
PPTX
How to scale your Test Automation
Klaus Salchner
 
PDF
The limits of unit testing by Craig Stuntz
QA or the Highway
 
PPTX
Test Automation Architecture That Works by Bhupesh Dahal
QA or the Highway
 
PDF
Integration Testing in Enterprises using TaaS
Anand Bagmar
 
PPTX
Continuous Delivery without Test Automation @STPCon, San Diego
Maaret Pyhäjärvi
 
PPTX
What is automation testing | David Tzemach
David Tzemach
 
PPTX
Automation_testing
Yana Altunyan
 
PPTX
ISTQB Foundation and Selenium Java Automation Testing
HiraQureshi22
 
PDF
Test Automation
nikos batsios
 
DOCX
Selenium Testing Project report
Kapil Rajpurohit
 
PPT
Test Automation Best Practices (with SOA test approach)
Leonard Fingerman
 
Automation Testing
Sun Technlogies
 
Automation testing
Biswajit Pratihari
 
Automation With A Tool Demo
Nivetha Padmanaban
 
30 of the best free software test tools in 60 minutes by Jess Lancaster
QA or the Highway
 
Amalgamation of BDD, parallel execution and mobile automation
Agile Testing Alliance
 
Test automation
Xavier Yin
 
Elements of a Test Framework
SmartBear
 
Colorful world-of-visual-automation-testing-latest
Onur Baskirt
 
Say NO To (More) Selenium Tests
Anand Bagmar
 
How to scale your Test Automation
Klaus Salchner
 
The limits of unit testing by Craig Stuntz
QA or the Highway
 
Test Automation Architecture That Works by Bhupesh Dahal
QA or the Highway
 
Integration Testing in Enterprises using TaaS
Anand Bagmar
 
Continuous Delivery without Test Automation @STPCon, San Diego
Maaret Pyhäjärvi
 
What is automation testing | David Tzemach
David Tzemach
 
Automation_testing
Yana Altunyan
 
ISTQB Foundation and Selenium Java Automation Testing
HiraQureshi22
 
Test Automation
nikos batsios
 
Selenium Testing Project report
Kapil Rajpurohit
 
Test Automation Best Practices (with SOA test approach)
Leonard Fingerman
 

Similar to Test Automation Architecture in Microservices (20)

PDF
Deploying large-scale, serverless and asynchronous systems - without integrat...
DiUS
 
PPTX
Test Strategies in Microservices
Mesut Özen
 
PDF
Web Services Testing Best Practices: Secure, Reliable, and Scalable APIs
Shubham Joshi
 
PDF
Continuous Delivery at Snyk
Anton Drukh
 
PDF
Automated testing-whitepaper
imdurgesh
 
PDF
Testing Microservices
Nagarro
 
PPTX
Automation testing
Tomy Rhymond
 
PPTX
Microservices testing strategy-v2
rajni singh
 
PDF
Cloud Native Testing, 2020 Edition: A Modern Blueprint for Pre-production Tes...
OlyaSurits
 
PDF
Continuous Delivery Testing @HiQ
Tomas Riha
 
PDF
Modernizing Testing as Apps Re-Architect
DevOps.com
 
PPTX
QAorHighway2016
Bhupesh Dahal
 
PDF
Software Testing
Andrew Wang
 
PPTX
Continuous delivery mobile application development
Thoughtworks
 
PPTX
Enterprise Mobile Development
Damian Beresford
 
PDF
Serverless microservices: Test smarter, not harder
DiUS
 
PDF
QA Meetup at Signavio (Berlin, 06.06.19)
Anesthezia
 
PDF
Test Design for Fully Automated Build Architecture
TechWell
 
PPTX
microservice testing tools and technologies
KingOfLuck
 
PDF
Использование AzureDevOps при разработке микросервисных приложений
Vitebsk Miniq
 
Deploying large-scale, serverless and asynchronous systems - without integrat...
DiUS
 
Test Strategies in Microservices
Mesut Özen
 
Web Services Testing Best Practices: Secure, Reliable, and Scalable APIs
Shubham Joshi
 
Continuous Delivery at Snyk
Anton Drukh
 
Automated testing-whitepaper
imdurgesh
 
Testing Microservices
Nagarro
 
Automation testing
Tomy Rhymond
 
Microservices testing strategy-v2
rajni singh
 
Cloud Native Testing, 2020 Edition: A Modern Blueprint for Pre-production Tes...
OlyaSurits
 
Continuous Delivery Testing @HiQ
Tomas Riha
 
Modernizing Testing as Apps Re-Architect
DevOps.com
 
QAorHighway2016
Bhupesh Dahal
 
Software Testing
Andrew Wang
 
Continuous delivery mobile application development
Thoughtworks
 
Enterprise Mobile Development
Damian Beresford
 
Serverless microservices: Test smarter, not harder
DiUS
 
QA Meetup at Signavio (Berlin, 06.06.19)
Anesthezia
 
Test Design for Fully Automated Build Architecture
TechWell
 
microservice testing tools and technologies
KingOfLuck
 
Использование AzureDevOps при разработке микросервисных приложений
Vitebsk Miniq
 
Ad

Recently uploaded (20)

PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
July Patch Tuesday
Ivanti
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Ad

Test Automation Architecture in Microservices

  • 2. TESTING RELATED ISSUES IN MICROSERVICES Services are built and deployed independently Services talk to each other to accomplish things Builds and deploys are automated Data is not centralized Cross functionals need to be tested way before the end Tests need to be executed way earlier Tests need to be executed way later 2
  • 3. THE INFAMOUS TEST AUTOMATION PYRAMIDE 3
  • 6. SERVICES ARE BUILT AND DEPLOYED INDEPENDENTLY 6You can’t depend on other services to be up
  • 7. SERVICES ARE BUILT AND DEPLOYED INDEPENDENTLY 7 Use test doubles to resolve your dependencies Mountebank
  • 8. SERVICES ARE BUILT AND DEPLOYED INDEPENDENTLY 8 Your tests should be able to run in isolation Docker
  • 9. SERVICES TALK TO EACH OTHER TO ACCOMPLISH THINGS 9Keep the communication between your services alive
  • 10. SERVICES TALK TO EACH OTHER TO ACCOMPLISH THINGS 10 Create Consumer Driven Contract Tests between services Pact
  • 11. BUILDS AND DEPLOYS ARE AUTOMATED 11You don’t have a buffer time between builds
  • 12. BUILDS AND DEPLOYS ARE AUTOMATED 12 Multiple layers of testing Layered path to production deployment Blue - Green deployments Canary releases
  • 13. BUILDS AND DEPLOYS ARE AUTOMATED 13 Repeatable environments Vagrant, Puppet, Chef, Ansible, Docker
  • 14. DATA IS NOT CENTRALIZED 14 You have to manage each test data seperately Each test creates its own data
  • 15. DATA IS NOT CENTRALIZED 15 Each test data should be unique accross the test suite Each test deletes only the data it created
  • 16. CROSS FUNCTIONALS NEED TO BE TESTED WAY BEFORE THE END 16 Again, you can’t wait until everything is completed
  • 17. CROSS FUNCTIONALS NEED TO BE TESTED WAY BEFORE THE END 17 Put in automated performance tests in your CDP Jmeter, Gattling, Locust
  • 18. CROSS FUNCTIONALS NEED TO BE TESTED WAY BEFORE THE END 18 Put in automated security checks in your CDP OWASP ZAP, OWASP Dependency Check, W3af
  • 19. TESTS NEED TO BE EXECUTED WAY EARLIER 19 Tests aren’t the responsibility of the testers alone You need to start testing right away
  • 20. TESTS NEED TO BE EXECUTED WAY EARLIER 20 You should minimize testing things as a whole End to End (E2E) tests
  • 21. TESTS NEED TO BE EXECUTED WAY EARLIER 21 Implement Journey Tests Selenium, Capybara, Sahi, Appium
  • 22. TESTS NEED TO BE EXECUTED WAY LATER 22 See what’s going on in production Monitor things
  • 23. TESTS NEED TO BE EXECUTED WAY LATER 23 Analyze trends and problems on production Have some tests which are run in production
  • 24. TESTS NEED TO BE EXECUTED WAY LATER 24 Be a Quality Analyst
  • 25. COMMON PITFALLS Don’t use a fixed recipe Build your architecture incrementally Keep your architecture alive 25
  • 26. BOOK SUGGESTIONS Building Microservices - Designing Fine-Grained Systems, Sam Newman Infrastructure as Code - Managing Servers in the Cloud, Kief Morris 26