portfolio / autoquote
AutoQuote
A test automation framework around a small insurance quote service, set up the way a QA team would run one.
- Built with
- Ruby, Sinatra, RSpec, Cucumber, Capybara, Playwright
- Runs on
- GitHub Actions, Docker, Kubernetes
- When
- 2026
What it is
The app under test is deliberately small: you send an age, a vehicle year and a ZIP code, and it sends back a quote with a premium. The point of the project is everything around it. There is a test layer for the API, a test layer for the web page, a pipeline that runs both, and the files to run it all in a container.
The layers
- API tests in RSpec. They post quotes straight to the service and check the status codes and the response: a valid quote, each required field missing, and values that fail validation.
- Browser tests in Cucumber. Scenarios are written in plain English and drive a real Chromium through Capybara and Playwright.
- Page objects. The scenarios never touch a selector. Each page of the app has a class that knows how to fill it in and read it.
- Continuous integration. A GitHub Actions workflow starts the app and runs both suites on every push and pull request, and keeps the reports when something fails.
- Containers. A Dockerfile and Compose file for the app, plus a Kubernetes Deployment and Service that I ran on a local kind cluster.
A scenario
This is one of the browser tests as it appears in the repository:
Feature: Request an auto insurance quote
As a user
I want to submit my age, vehicle year, and ZIP
So that I can receive a quote
Scenario: Successful quote request
Given I am on the quote form page
When I fill in the form with age "30", vehicle year "2020", and zip "43215"
And I submit the form
Then I should see a quote result
And the quote should include a quote ID and premium
How I worked on it
I ran it like a small team project: a backlog of user stories, one feature branch and pull request per piece of work, and an iteration log and retrospective kept in the repository.
See the source on GitHub Pipeline runs Back to the portfolio