Specmatic Arazzo is a NO-CODE workflow testing tool that allows users to efficiently author, validate, test, and mock workflows, leveraging Arazzo API Specifications
This video uses this very same demo project repo to showcases how to author a workflow specification using Specmatic Arazzo via Specmatic Studio interactively with a drag‑and‑drop interface, validate the workflow, and test it against two microservices Order API and the Location API, We will also demonstrate how to mock the workflow so that the Frontend can consume it independently from these microservices without a single line of code.
You can also use this repo to follow along with the video and learn about the various capabilities. Please do read through the detailed instructions below to know more.
This project includes below services:
- Backend Services (developed using FastAPI, SQLModel, and SQLite)
- Frontend (built using Svelte and Vite)
git clone https://github.com/specmatic/specmatic-arazzo-ui-sampleLaunch it within the Specmatic Arazzo UI Sample project directory as shown in the image below
Execute run.py to get both Front-end and Back-end running.
Please choose appropriate commands below as per your system setup.
For Windows:
python run.pyFor Unix:
python3 run.py-
In the
backenddirectory:- Creates a
venvvirtual environment. - Installs Python dependencies from
requirements.txt. - Starts both the
order_apiandlocation_apimicroservices. - Populates the database with dummy data.
- Creates a
-
In the
frontenddirectory:- Installs the frontend dependencies specified in
package.json. - Launches the frontend application in development mode using Vite.
- Opens the frontend in a web browser.
- Installs the frontend dependencies specified in
- In the UI please use username as
test@specmatic.ioand password asspecmatic. This should show you a couple of products. - Now you can log out and try again with username as
random@specmatic.ioand password asuser. This shows you an empty list.
{
"PlaceOrder": {
"DEFAULT": {
"GetUserDetails": {
"email": "test@specmatic.io",
"password": "specmatic",
"internalToken": "API-TOKEN"
}
},
"RetrieveProducts.IsArrayEmpty": {
"$failureMessage": "Expected not to find any products for random@specmatic.io, as they belong to B Zone",
"GetUserDetails": {
"email": "random@specmatic.io",
"password": "user"
}
}
}
}cd frontend
npm install
npm run dev- On Unix machines:
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 run.py- On Windows:
cd backend
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python run.py
