Presentation create to show the benefits of Mountebank tool and one demonstration of a web application representing an e-commerce used to connect Mountebank and simulate a mocked user journeys and business flows.
10. 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.
11. 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
12. 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