As part of a recent assignment, I explored Keploy, an AI-powered API testing tool, to automate and validate the APIs for my Flask-based Personal Expense Tracker project. In this blog, I’ll share my experience, the challenges I faced (especially on Windows!), and how I leveraged Keploy’s Chrome Extension to complete the task.
Project Overview
My project is a simple Personal Expense Tracker built with:
Flask (Python) for the backend API
MongoDB for data storage
Docker for containerization
The API supports full CRUD operations for expenses, and I documented it with an OpenAPI schema.
Why Keploy?
Keploy enables:
Automatic test generation from real API traffic
AI-powered assertions for API responses
Integration with CI/CD pipelines
Browser extension for easy API call recording
Setting Up Keploy
- Keploy CLI (Blocked on Windows Docker) I initially tried running Keploy CLI in Docker to record and replay API traffic. However, I hit a known limitation:
Keploy CLI requires eBPF, which isn’t supported on Docker Desktop for Windows/Mac.
- Keploy Chrome Extension (The Workaround!) To overcome this, I used the Keploy Chrome Extension:
Installed the extension in Chrome
Recorded API calls as I used my app and two public APIs
Generated tests via https://app.keploy.io
API Testing Process
Started my Flask API locally.
Used Postman to verify all endpoints worked.
Used the Keploy Chrome Extension to record API calls:
For my own API (localhost)
For two public APIs: Reqres.in and JSONPlaceholder
Generated tests and saved the cURL commands and responses.
Took screenshots of the process and results.
CI/CD Integration
While Keploy CLI couldn’t run in my Windows Docker environment, I demonstrated my understanding by adding a sample GitHub Actions workflow to my repo.
Note: Full integration is possible on Linux or WSL2.
Key Learnings & Challenges
Keploy CLI is not fully supported on Docker Desktop for Windows/Mac due to kernel limitations.
The Chrome Extension is a great workaround for API test generation and works on any site.
Test evidence (screenshots, cURL, reports) is critical for documenting your process.
Screenshots
Keploy Test Report
Postman Test Results
Keploy Chrome Extension Test 1
Keploy Chrome Extension Test 2
Conclusion
Keploy made it easy to generate and validate API tests, even with platform limitations.
If you’re on Windows/Mac, try the Chrome Extension for API recording and test generation!
Links
Project GitHub Repo
Keploy Chrome Extension
Keploy Docs
Social
I’ve shared my experience on LinkedIn/Twitter.
Feel free to connect and share your own API testing stories!
Thanks for reading!
Top comments (0)