SlideShare a Scribd company logo
TITELTEXT
Continuous (Non)-Functional
Testing of Microservices on K8s
Code Days 2021 Digital, February 11th 2021


@LeanderReimer #cloudnativenerd #qaware #CodeDays
Mario-Leander Reimer


Principal Software Architect


@LeanderReimer


#cloudnativenerd #qaware
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
3
"Software Is Eating the World.“


Marc Andreessen, 20th August 2011
Continuous (Non-)Functional Testing of Microservices on K8s
Continuous (Non-)Functional Testing of Microservices on K8s
Dev
Ops
https://commons.wikimedia.org/w/index.php?curid=2223771
Continuous (Non-)Functional Testing of Microservices on K8s
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
9
Continuous delivery (CD) is a software engineering
approach in which teams produce software in short cycles,
ensuring that the software can be reliably released at any
time .… It aims at building, testing, and releasing software
with greater speed and frequency.
The Software Assembly Line
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
11
"Software Industrialization


is key for successful DevOps


and Continuous Delivery."


Unknown source, 22nd October 2019
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
12
Continuous
Delivery
Low Risk
Releases
Less


Rework
Fast Time


to Market
Better
Products
Lower


Costs
Happier
Teams
Happier


Users
Loosely Coupled Architectures
Maintainable Code
Empowered Teams
Continuous Security from Day 1
Test
Automation
Continuous
Integration
GitOps
Deployment
Automation
Monitoring and Alerting
Input Output
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
13
Continuous
Delivery
Low Risk
Releases
Less


Rework
Fast Time


to Market
Better
Products
Lower


Costs
Happier
Teams
Happier


Users
Loosely Coupled Architectures
Maintainable Code
Empowered Teams
Continuous Security from Day 1
Test
Automation
Continuous
Integration
GitOps
Deployment
Automation
Monitoring and Alerting
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
14
Continuous
Delivery
Low Risk
Releases
Less


Rework
Fast Time


to Market
Better
Products
Lower


Costs
Happier
Teams
Happier


Users
Loosely Coupled Architectures
Maintainable Code
Empowered Teams
Continuous Security from Day 1
Test
Automation
Continuous
Integration
GitOps
Deployment
Automation
Monitoring and Alerting
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
Claim 1: A single, linear CI/CD pipeline is suboptimal and
will result in delayed feedback and long release cycles.
15
Check-In Build Test Integrate
Deploy to
Production
Automated
Acceptance Tests
Manual
Auto Auto Auto Auto?
Acceptance
Security
Performance
These high level tests are usually delayed until the end of sprint or the release.


Which one
fi
rst? Is Functionality more important than Security or Performance?
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
Claim 2: A microservice architecture with many down
stream dependencies is complex and hard to test.
16
Cluster
Microservice


A
Microservice


B
External


System B
TEAM A TEAM B UNKNOWN
Microservice


C
TEAM C
External


System A
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
Solution: Why not continuously run (non)-functional
tests against a complex microservice architecture?
17
Check-In Build Integrate
Auto Auto Auto
Smoke
Tests
Quality
Acceptance
Security
Performance
Auto Manual
Report &
Alert
Continuous
Runs inside
the cluster
Test
Deploy to
Production
Integration Environment
// Code Days 2021 Digital —> Go for Operations // @LeanderReimer #cloudnativenerd #qaware #CodeDays #OOPmuc
18
Code & Demos
https://github.com/qaware/continuous-k6k8s


https://github.com/qaware/continuous-zapk8s


https://github.com/qaware/continuous-atdd
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
Load Testing for Engineering Teams
• Made for Developers. The k6 API and CLI are easy to use and
fl
exible.


• Out-of-the-box Docker support. Can be run in a container easily.


• Suitable for Smoke Tests, Load Tests, Stress Tests and Soak Tests.


• Supports REST, GraphQL, gRPC and Websockets.


• Result visualisation via DataDog, CloudWatch, In
fl
uxDB+Grafana, New
Relic and many others


• Extensive documentation and good community.
19
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
OWASP Zed Attack Proxy (ZED)
• Widely used, popular, free and open source web app scanner.


• ZAP provides powerful APIs for security automation.


• Intercepting proxy, active and passive scanner, traditional and AJAX
spider, brute force scanner, port scanner, OpenAPI v3, web sockets.


• ZAP's docker images provide an easy way to run ZAP, especially in a
CI/CD environment: baseline, full scan, API scan, Webswing UI.


• Extensive documentation and international community.
20
// Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays
Very Groovy Browser Automation
• Cross Browser Automation: Chrome, Firefox, Safari, Selenium Hub, …


• Powerful, easy to learn Groovy based DSL. Easy content navigation and
access inspired from jQuery.


• Built-in support for Page Object Pattern for maintainable, stable UI tests.


• Supports asynchronicity and dynamic content .


• Provides integration modules for popular test frameworks: Spock, Unit,
TestNG and Cucumber


• Good and easy build system integration for Maven and Gradle
21
Mario-Leander Reimer


Principal Software Architect, QAware GmbH


mario-leander.reimer@qaware.de


https://www.qaware.de


https://speakerdeck.com/lreimer/


https://github.com/lreimer/
&

More Related Content

What's hot (20)

PDF
Cloud Platforms "demystified": Docker, Kubernetes, Knative & Cloud Foundry
QAware GmbH
 
PDF
Is your kubernetes negative or positive
LibbySchulze
 
PDF
Serverless architectures with Fn Project
Sven Bernhardt
 
PDF
[DevConf.US 2019]Quarkus Brings Serverless to Java Developers
Daniel Oh
 
PDF
You Want to Kubernetes? You MUST Know Containers!
VMware Tanzu
 
PDF
Declarative Import with Magento 2 Import Framework (M2IF)
Tim Wagner
 
PPTX
K8s from Zero to ~Hero~ Seasoned Beginner
Kristof Jozsa
 
PDF
JEE on DC/OS
Josef Adersberger
 
PDF
Scaling DevSecOps Culture for Enterprise
Opsta
 
PDF
Real World CI/CD with Kubernetes
Opsta
 
PDF
Canary deployment with Traefik and K3S
Jakub Hajek
 
PDF
Cloud Compliance with Open Policy Agent
QAware GmbH
 
PPTX
Infrastrucutre as Code
Harmeet Singh
 
PDF
How we can do Multi-Tenancy on Kubernetes
Opsta
 
PDF
Automated Virtualized Testing (AVT) with Docker, Kubernetes, WireMock and Gat...
VMware Tanzu
 
PDF
GitOps A/B testing with Istio and Helm
Weaveworks
 
PPTX
OpenShift Introduction
Red Hat Developers
 
PDF
From Monolith to K8s - Spring One 2020
Mauricio (Salaboy) Salatino
 
PDF
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
Joe Arnold
 
PDF
KubeCon + CloudNativeCon China 2018 Recap
cyberblack28 Ichikawa
 
Cloud Platforms "demystified": Docker, Kubernetes, Knative & Cloud Foundry
QAware GmbH
 
Is your kubernetes negative or positive
LibbySchulze
 
Serverless architectures with Fn Project
Sven Bernhardt
 
[DevConf.US 2019]Quarkus Brings Serverless to Java Developers
Daniel Oh
 
You Want to Kubernetes? You MUST Know Containers!
VMware Tanzu
 
Declarative Import with Magento 2 Import Framework (M2IF)
Tim Wagner
 
K8s from Zero to ~Hero~ Seasoned Beginner
Kristof Jozsa
 
JEE on DC/OS
Josef Adersberger
 
Scaling DevSecOps Culture for Enterprise
Opsta
 
Real World CI/CD with Kubernetes
Opsta
 
Canary deployment with Traefik and K3S
Jakub Hajek
 
Cloud Compliance with Open Policy Agent
QAware GmbH
 
Infrastrucutre as Code
Harmeet Singh
 
How we can do Multi-Tenancy on Kubernetes
Opsta
 
Automated Virtualized Testing (AVT) with Docker, Kubernetes, WireMock and Gat...
VMware Tanzu
 
GitOps A/B testing with Istio and Helm
Weaveworks
 
OpenShift Introduction
Red Hat Developers
 
From Monolith to K8s - Spring One 2020
Mauricio (Salaboy) Salatino
 
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
Joe Arnold
 
KubeCon + CloudNativeCon China 2018 Recap
cyberblack28 Ichikawa
 

Similar to Continuous (Non-)Functional Testing of Microservices on K8s (20)

PDF
Testing Applications—For the Cloud and in the Cloud
TechWell
 
PDF
Continuous OpenAPI Security Tests on K8s with Testkube and ZAP
QAware GmbH
 
PPTX
Continuous Testing in containerized environment
Nicolas Giron
 
PDF
The Ultimate Guide_ 15 Best Continuous Testing Tools in 2024.pdf
kalichargn70th171
 
PPT
Testing In Java
Adrian Treacy
 
PDF
The Ultimate Guide_ 15 Best Continuous Testing Tools in 2024.pdf
flufftailshop
 
PDF
Instant Access to Continuous Delivery in Java Essential Tools and Best Practi...
connermoutik
 
PDF
Continuous Testing Improve Efficiency and Ship Better Software.pdf
Steve Wortham
 
PDF
[Ebooks PDF] download Continuous Delivery in Java Essential Tools and Best Pr...
uouochanee
 
PDF
Ch8b_Testing.pdf - software testing course
OnyedikachiKanu2
 
PDF
Automate Behavior-driven Development | Stanford WebCamp 2022
DOCOMO Innovations, Inc.
 
PPTX
Continuous Integration and Delivery at Shapeways (Matt Boyle)
Nordic APIs
 
PPTX
DevOps for Big Data - Data 360 2014 Conference
Grid Dynamics
 
PDF
From ci to cd - LavaJug 2012
Henri Gomez
 
PDF
Continuous Delivery in Java Essential Tools and Best Practices for Deploying ...
storzcreef45
 
PDF
Continuous Delivery in Java Essential Tools and Best Practices for Deploying ...
storzcreef45
 
PPTX
Agile testing for embedded software development
Tom Stiehm
 
PDF
Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP
QAware GmbH
 
PPTX
ATDD in practice
Andrei Marukovich
 
Testing Applications—For the Cloud and in the Cloud
TechWell
 
Continuous OpenAPI Security Tests on K8s with Testkube and ZAP
QAware GmbH
 
Continuous Testing in containerized environment
Nicolas Giron
 
The Ultimate Guide_ 15 Best Continuous Testing Tools in 2024.pdf
kalichargn70th171
 
Testing In Java
Adrian Treacy
 
The Ultimate Guide_ 15 Best Continuous Testing Tools in 2024.pdf
flufftailshop
 
Instant Access to Continuous Delivery in Java Essential Tools and Best Practi...
connermoutik
 
Continuous Testing Improve Efficiency and Ship Better Software.pdf
Steve Wortham
 
[Ebooks PDF] download Continuous Delivery in Java Essential Tools and Best Pr...
uouochanee
 
Ch8b_Testing.pdf - software testing course
OnyedikachiKanu2
 
Automate Behavior-driven Development | Stanford WebCamp 2022
DOCOMO Innovations, Inc.
 
Continuous Integration and Delivery at Shapeways (Matt Boyle)
Nordic APIs
 
DevOps for Big Data - Data 360 2014 Conference
Grid Dynamics
 
From ci to cd - LavaJug 2012
Henri Gomez
 
Continuous Delivery in Java Essential Tools and Best Practices for Deploying ...
storzcreef45
 
Continuous Delivery in Java Essential Tools and Best Practices for Deploying ...
storzcreef45
 
Agile testing for embedded software development
Tom Stiehm
 
Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP
QAware GmbH
 
ATDD in practice
Andrei Marukovich
 
Ad

More from QAware GmbH (20)

PDF
Frontends mit Hilfe von KI entwickeln.pdf
QAware GmbH
 
PDF
Mit ChatGPT Dinosaurier besiegen - Möglichkeiten und Grenzen von LLM für die ...
QAware GmbH
 
PDF
50 Shades of K8s Autoscaling #JavaLand24.pdf
QAware GmbH
 
PDF
Make Agile Great - PM-Erfahrungen aus zwei virtuellen internationalen SAFe-Pr...
QAware GmbH
 
PPTX
Fully-managed Cloud-native Databases: The path to indefinite scale @ CNN Mainz
QAware GmbH
 
PDF
Down the Ivory Tower towards Agile Architecture
QAware GmbH
 
PDF
"Mixed" Scrum-Teams – Die richtige Mischung macht's!
QAware GmbH
 
PDF
Make Developers Fly: Principles for Platform Engineering
QAware GmbH
 
PDF
Der Tod der Testpyramide? – Frontend-Testing mit Playwright
QAware GmbH
 
PDF
Was kommt nach den SPAs
QAware GmbH
 
PDF
Cloud Migration mit KI: der Turbo
QAware GmbH
 
PDF
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...
QAware GmbH
 
PDF
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
QAware GmbH
 
PDF
Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before.
QAware GmbH
 
PDF
Kubernetes with Cilium in AWS - Experience Report!
QAware GmbH
 
PDF
50 Shades of K8s Autoscaling
QAware GmbH
 
PDF
Service Mesh Pain & Gain. Experiences from a client project.
QAware GmbH
 
PDF
50 Shades of K8s Autoscaling
QAware GmbH
 
PDF
Blue turns green! Approaches and technologies for sustainable K8s clusters.
QAware GmbH
 
PDF
Per Anhalter zu Cloud Nativen API Gateways
QAware GmbH
 
Frontends mit Hilfe von KI entwickeln.pdf
QAware GmbH
 
Mit ChatGPT Dinosaurier besiegen - Möglichkeiten und Grenzen von LLM für die ...
QAware GmbH
 
50 Shades of K8s Autoscaling #JavaLand24.pdf
QAware GmbH
 
Make Agile Great - PM-Erfahrungen aus zwei virtuellen internationalen SAFe-Pr...
QAware GmbH
 
Fully-managed Cloud-native Databases: The path to indefinite scale @ CNN Mainz
QAware GmbH
 
Down the Ivory Tower towards Agile Architecture
QAware GmbH
 
"Mixed" Scrum-Teams – Die richtige Mischung macht's!
QAware GmbH
 
Make Developers Fly: Principles for Platform Engineering
QAware GmbH
 
Der Tod der Testpyramide? – Frontend-Testing mit Playwright
QAware GmbH
 
Was kommt nach den SPAs
QAware GmbH
 
Cloud Migration mit KI: der Turbo
QAware GmbH
 
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...
QAware GmbH
 
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
QAware GmbH
 
Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before.
QAware GmbH
 
Kubernetes with Cilium in AWS - Experience Report!
QAware GmbH
 
50 Shades of K8s Autoscaling
QAware GmbH
 
Service Mesh Pain & Gain. Experiences from a client project.
QAware GmbH
 
50 Shades of K8s Autoscaling
QAware GmbH
 
Blue turns green! Approaches and technologies for sustainable K8s clusters.
QAware GmbH
 
Per Anhalter zu Cloud Nativen API Gateways
QAware GmbH
 
Ad

Recently uploaded (20)

PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Simplify React app login with asgardeo-sdk
vaibhav289687
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Everything you need to know about pricing & licensing Microsoft 365 Copilot f...
Q-Advise
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PPTX
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
PDF
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Simplify React app login with asgardeo-sdk
vaibhav289687
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Everything you need to know about pricing & licensing Microsoft 365 Copilot f...
Q-Advise
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 

Continuous (Non-)Functional Testing of Microservices on K8s

  • 1. TITELTEXT Continuous (Non)-Functional Testing of Microservices on K8s Code Days 2021 Digital, February 11th 2021 @LeanderReimer #cloudnativenerd #qaware #CodeDays
  • 2. Mario-Leander Reimer Principal Software Architect @LeanderReimer #cloudnativenerd #qaware
  • 3. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays 3 "Software Is Eating the World.“ Marc Andreessen, 20th August 2011
  • 9. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays 9 Continuous delivery (CD) is a software engineering approach in which teams produce software in short cycles, ensuring that the software can be reliably released at any time .… It aims at building, testing, and releasing software with greater speed and frequency.
  • 11. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays 11 "Software Industrialization 
 is key for successful DevOps 
 and Continuous Delivery." Unknown source, 22nd October 2019
  • 12. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays 12 Continuous Delivery Low Risk Releases Less 
 Rework Fast Time to Market Better Products Lower 
 Costs Happier Teams Happier 
 Users Loosely Coupled Architectures Maintainable Code Empowered Teams Continuous Security from Day 1 Test Automation Continuous Integration GitOps Deployment Automation Monitoring and Alerting Input Output
  • 13. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays 13 Continuous Delivery Low Risk Releases Less 
 Rework Fast Time to Market Better Products Lower 
 Costs Happier Teams Happier 
 Users Loosely Coupled Architectures Maintainable Code Empowered Teams Continuous Security from Day 1 Test Automation Continuous Integration GitOps Deployment Automation Monitoring and Alerting
  • 14. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays 14 Continuous Delivery Low Risk Releases Less 
 Rework Fast Time to Market Better Products Lower 
 Costs Happier Teams Happier 
 Users Loosely Coupled Architectures Maintainable Code Empowered Teams Continuous Security from Day 1 Test Automation Continuous Integration GitOps Deployment Automation Monitoring and Alerting
  • 15. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays Claim 1: A single, linear CI/CD pipeline is suboptimal and will result in delayed feedback and long release cycles. 15 Check-In Build Test Integrate Deploy to Production Automated Acceptance Tests Manual Auto Auto Auto Auto? Acceptance Security Performance These high level tests are usually delayed until the end of sprint or the release. 
 Which one fi rst? Is Functionality more important than Security or Performance?
  • 16. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays Claim 2: A microservice architecture with many down stream dependencies is complex and hard to test. 16 Cluster Microservice 
 A Microservice 
 B External System B TEAM A TEAM B UNKNOWN Microservice C TEAM C External System A
  • 17. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays Solution: Why not continuously run (non)-functional tests against a complex microservice architecture? 17 Check-In Build Integrate Auto Auto Auto Smoke Tests Quality Acceptance Security Performance Auto Manual Report & Alert Continuous Runs inside the cluster Test Deploy to Production Integration Environment
  • 18. // Code Days 2021 Digital —> Go for Operations // @LeanderReimer #cloudnativenerd #qaware #CodeDays #OOPmuc 18 Code & Demos https://github.com/qaware/continuous-k6k8s https://github.com/qaware/continuous-zapk8s https://github.com/qaware/continuous-atdd
  • 19. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays Load Testing for Engineering Teams • Made for Developers. The k6 API and CLI are easy to use and fl exible. • Out-of-the-box Docker support. Can be run in a container easily. • Suitable for Smoke Tests, Load Tests, Stress Tests and Soak Tests. • Supports REST, GraphQL, gRPC and Websockets. • Result visualisation via DataDog, CloudWatch, In fl uxDB+Grafana, New Relic and many others • Extensive documentation and good community. 19
  • 20. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays OWASP Zed Attack Proxy (ZED) • Widely used, popular, free and open source web app scanner. • ZAP provides powerful APIs for security automation. • Intercepting proxy, active and passive scanner, traditional and AJAX spider, brute force scanner, port scanner, OpenAPI v3, web sockets. • ZAP's docker images provide an easy way to run ZAP, especially in a CI/CD environment: baseline, full scan, API scan, Webswing UI. • Extensive documentation and international community. 20
  • 21. // Code Days 2021 Digital —> Continuous (Non)-Functional Testing of Microservice on K8s // @LeanderReimer #cloudnativenerd #qaware #CodeDays Very Groovy Browser Automation • Cross Browser Automation: Chrome, Firefox, Safari, Selenium Hub, … • Powerful, easy to learn Groovy based DSL. Easy content navigation and access inspired from jQuery. • Built-in support for Page Object Pattern for maintainable, stable UI tests. • Supports asynchronicity and dynamic content . • Provides integration modules for popular test frameworks: Spock, Unit, TestNG and Cucumber • Good and easy build system integration for Maven and Gradle 21
  • 22. Mario-Leander Reimer Principal Software Architect, QAware GmbH [email protected] https://www.qaware.de https://speakerdeck.com/lreimer/ https://github.com/lreimer/ &