SlideShare a Scribd company logo
8
Most read
10
Most read
15
Most read
“New way to thinking about test doubles”
MOUNTEBANK
WHO AM I?
● 15 years in IT
● Development & QA
● Principal QA Engineer
1. MOUNTEBANK
a. What’s?
b. Why?
c. How it works?
1. UI INTEGRATION
2. HANDS-ON
3. NEXT STEPS
4. REFERENCES
5. Q&A
WHAT’S?
● Open Source
● Mocks, Stubs and Virtualized Services
○ Cross-Platform
○ Multi-Protocol
● API
● Behaviour Injection
● Node JS
WHY?
● Easy to install - npm i mountebank
● Without any platform dependencies
● Comprehensive documentation
● Native language bindings
● Users Journey
● Proxy
MOUNTEBANK API
PROXY MODES
● ProxyAlways
● ProxyTransparent
● ProxyOnce
PREDICATES
RESPONSES
HOW IT WORKS?
Mountebank runs on default port 2525 and offers the ability to create
imposters within it in other ports.
Each imposter can have many stubs and allows inject behaviour to
maintain and control state between them. Furthermore, it is possible to use
mountebank proxy to redirect calls to real or mocked environment.
UI INTEGRATION
This project is focused on integration between user
interface and stubs created in mountebank, so it
has the following project structure.:
● Mountebank image used in a docker
container
● Docker Compose to up project with
imposters
● HTML files to represents ecommerce web
● JS files (using fetch API) to call endpoints in
mountebank
● EJS file to create all stubs
● A service that simulates the query many
times to obtains the sales state.
CAPTION / SOURCES
USER FLOW
In the user flow, there are six pages each on with one stub in
mountebank and when these stubs are called the state of the
stub created in mountebank is changed.
LOGIN.HTML
AUTHORIZED
SHOP.HTML
LOGGED
PRODUCT_DETAILS.HTML
SELECTED
CART.HTML
ADDED
CHECKOUT.HTML
AT_CHECKOUT
PAYMENT.HTML
PAID
DEMO
DEMOS
Proxy Mode Repeat Inject
Behaviour
REFERENCES
Official Website http://www.mbtest.org/
Book
https://www.manning.com/books/testing-microservices-with-m
ountebank?utm_source=mb&utm_medium=affiliate&utm_camp
aign=book_byars_testing_12_20_18&a_aid=mb&a_bid=ee3288
f4
Mountebank UI http://donhenton.github.io/mountebank-UI/public_html/index.ht
ml#/
Disguise
http://donhenton.github.io/mountebank-UI/public_html/index.ht
ml#/
Google Groups https://groups.google.com/g/mountebank-discuss?pli=1
Q&A
Linkedin (André Diegues Rodrigues).:
https://www.linkedin.com/in/andr%C3%A9-diegues-rodrigues-64b6697a/
Email.:
andrevinicius.rodrigues@farfetch.com andrevdrodrigues@gmail.com
Thanks a Lot ;)

More Related Content

PDF
Applications secure by default
PDF
Callback Function
PDF
Karate - Web-Service API Testing Made Simple
PPTX
Test in Rest. API testing with the help of Rest Assured.
PPTX
Rest assured
ODP
Introduction to Swagger
PDF
Restful api design
PDF
10 Tips for Configuring Your Builds with Bamboo Specs
Applications secure by default
Callback Function
Karate - Web-Service API Testing Made Simple
Test in Rest. API testing with the help of Rest Assured.
Rest assured
Introduction to Swagger
Restful api design
10 Tips for Configuring Your Builds with Bamboo Specs

What's hot (20)

PPT
JavaScript & Dom Manipulation
PDF
Nodejs vatsal shah
PDF
An Introduction of Node Package Manager (NPM)
PPT
Postman.ppt
PDF
Cypress-vs-Playwright: Let the Code Speak
PPTX
WAF Bypass Techniques - Using HTTP Standard and Web Servers’ Behaviour
PPTX
U2F/FIDO2 implementation of YubiKey
PDF
Testing with JUnit 5 and Spring - Spring I/O 2022
PPTX
Test Design and Automation for REST API
PDF
nginx 입문 공부자료
PPTX
Instalasi dan Konfigurasi DHCP Server di Windows Server 2008
PPTX
Angular modules in depth
PPTX
Introduction to REST - API
PDF
Karate - powerful and simple framework for REST API automation testing
PDF
Swagger UI
PDF
Software Testing - Heuristics Cheat Sheet
PDF
ECMA Script
PDF
JavaScript - Chapter 4 - Types and Statements
PDF
Pentesting Rest API's by :- Gaurang Bhatnagar
ODP
Test Automation Framework using Cucumber BDD overview (part 1)
JavaScript & Dom Manipulation
Nodejs vatsal shah
An Introduction of Node Package Manager (NPM)
Postman.ppt
Cypress-vs-Playwright: Let the Code Speak
WAF Bypass Techniques - Using HTTP Standard and Web Servers’ Behaviour
U2F/FIDO2 implementation of YubiKey
Testing with JUnit 5 and Spring - Spring I/O 2022
Test Design and Automation for REST API
nginx 입문 공부자료
Instalasi dan Konfigurasi DHCP Server di Windows Server 2008
Angular modules in depth
Introduction to REST - API
Karate - powerful and simple framework for REST API automation testing
Swagger UI
Software Testing - Heuristics Cheat Sheet
ECMA Script
JavaScript - Chapter 4 - Types and Statements
Pentesting Rest API's by :- Gaurang Bhatnagar
Test Automation Framework using Cucumber BDD overview (part 1)
Ad

Similar to Using Mountebank to inject behavior into test stubs (20)

PDF
Laptop Devops: Putting Modern Infrastructure Automation to Work For Local Dev...
PDF
"The working architecture of NodeJs applications" Viktor Turskyi
PDF
What is a Service Mesh and what can it do for your Microservices
PDF
The Best Postman Alternatives to Streamline API Testing.pdf
PDF
The working architecture of NodeJS applications, Виктор Турский
PDF
The working architecture of node js applications open tech week javascript ...
PPTX
Api functional monitoring -9th October 2021
PDF
Viktor Turskyi "Effective NodeJS Application Development"
PPTX
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
PDF
Odo improving the developer experience on OpenShift - hack & sangria
PDF
Do You Need a Service Mesh? @ London Devops, January 2019
PDF
Top Performance Testing Tools of 2025: Ensure Speed, Stability, and Scale
PDF
Cloud-Native Progressive Delivery
PPTX
Intro to openfaas
PPTX
Building APIs with Mule and Spring Boot
PPTX
Microservice Workshop Hands On
PDF
Continuous Delivery at Snyk
PDF
Openshift serverless Solution
PDF
Ff for product success
 
PDF
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020
Laptop Devops: Putting Modern Infrastructure Automation to Work For Local Dev...
"The working architecture of NodeJs applications" Viktor Turskyi
What is a Service Mesh and what can it do for your Microservices
The Best Postman Alternatives to Streamline API Testing.pdf
The working architecture of NodeJS applications, Виктор Турский
The working architecture of node js applications open tech week javascript ...
Api functional monitoring -9th October 2021
Viktor Turskyi "Effective NodeJS Application Development"
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Odo improving the developer experience on OpenShift - hack & sangria
Do You Need a Service Mesh? @ London Devops, January 2019
Top Performance Testing Tools of 2025: Ensure Speed, Stability, and Scale
Cloud-Native Progressive Delivery
Intro to openfaas
Building APIs with Mule and Spring Boot
Microservice Workshop Hands On
Continuous Delivery at Snyk
Openshift serverless Solution
Ff for product success
 
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020
Ad

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Spectroscopy.pptx food analysis technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation theory and applications.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Programs and apps: productivity, graphics, security and other tools
Spectroscopy.pptx food analysis technology
NewMind AI Weekly Chronicles - August'25 Week I
Per capita expenditure prediction using model stacking based on satellite ima...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Spectral efficient network and resource selection model in 5G networks
Encapsulation theory and applications.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Digital-Transformation-Roadmap-for-Companies.pptx

Using Mountebank to inject behavior into test stubs