Power Your Software Testing with AI Agents and Cloud
The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.
- TestMu AI (Formerly LambdaTest)
- /
- Use Cases
- /
- Test an insurance quote and its premium breakdown
Test an insurance quote and its premium breakdown
A base premium, a no-claim discount, tax on the net, and a total the customer will be held to.
Published on:
An insurance premium is a chain of calculations where each step depends on the one before it, and the order matters: a discount applied after tax produces a different number than one applied before.
This use case runs a bike insurance quote on the PhonePey clone and checks every line.
The flow under test
Five figures, and the sequence between them is as much under test as the values themselves.
| Line | Value |
|---|---|
| Base premium | 3,975.00 |
| No-claim bonus at 20 percent | Less 795.00 |
| Net premium | 3,180.00 |
| GST at 18 percent | 572.40 |
| Total payable | 3,752.40 |
The tax is calculated on the net premium, after the discount, not on the base. Asserting all five lines is what pins that ordering, and a change to it would move the total by over a hundred rupees without any single figure looking obviously wrong.
Note: Asserting an entire calculation chain in one instruction is how a regulated premium breakdown stays covered without a file of single-value checks. Start on TestMu AI. Start for free
The test file
The cover options are asserted as a set before one is chosen, so a quote journey that offers fewer products than it should is caught before the premium is even calculated.
---
mode: testing
url: https://my-testing-repo-main.vercel.app/phonepe-clone-app/insurance?reset=true
max_steps: 45
tags: [phonepe, fintech, insurance]
---
# PhonePey 21.4: Bike insurance quote
Catalog objective: start a bike insurance quote journey.
Key assertion: the quote screen renders the premium options.
## Enter the vehicle
Type "KA01AB1234" into "Registration number", select "TVSx" in "Brand", select "Apache 160" in "Model", set "Engine capacity (cc)" to "160", and click "Get quotes".
## Verify the cover options render with premiums
Verify a "Choose your cover" card lists "Third-party only", "Comprehensive" and "Comprehensive + zero depreciation", each with a total premium beside it.
## Choose a cover and a no-claim bonus
Choose "Comprehensive", select "20%" in "No-claim bonus", and verify the premium breakdown shows "Base premium" of "₹3,975.00", "No-claim bonus (20%)" of "−₹795.00", "Net premium" of "₹3,180.00", "GST (18%)" of "₹572.40" and "Total payable" of "₹3,752.40".
## Continue with the quote
Click "Continue with this quote" and verify a green banner titled "Quote ready" shows a total of "₹3,752.40", with a summary showing "Registration" of "KA01AB1234" and "Vehicle" of "TVSx Apache 160 · 160cc".The final step carries the vehicle details onto the quote, which matters because a premium calculated for one vehicle and issued against another is a policy that will not pay out.
Step by step coverage
A vehicle, the options, the calculation and the quote.
| Step | What it proves |
|---|---|
| Enter the vehicle | Registration, brand, model and engine capacity are accepted |
| Verify the cover options render with premiums | All three cover levels are offered with prices |
| Choose a cover and a no-claim bonus | The full premium chain including tax on the net |
| Continue with the quote | The quote carries the total and the vehicle it was calculated for |
Carrying the registration number through to the quote summary is the detail that ties a premium to a specific vehicle rather than to a category.
Running it
kane-cli testmd run tests/phonepe/bike-insurance-quote_test.mdAdd a variant at a different no-claim bonus, since the discount percentage is the input most likely to be mishandled at its boundaries.
Premium tables change with regulation and underwriting rather than with releases. Deriving a suite from requirements covers keeping expected figures tied to their source, and running in CI covers catching drift.
Author
Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.
Insurance Quote FAQs
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance
- Advanced access controls
- Advanced data retention rules
- Advanced Local Testing
- Premium Support options
- Early access to beta features
- Private Slack Channel
- Unlimited Manual Accessibility DevTools Tests




