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 a bill fetch and paying exactly what was fetched
Test a bill fetch and paying exactly what was fetched
The amount fetched from the biller and the amount charged to the customer have to be the same number.
Published on:
Bill payment is an integration wearing a form. The amount is not entered by the customer, it is fetched from a biller, and the only thing that matters is that the figure fetched is the figure charged.
This use case fetches an electricity bill on the Paytem clone and pays it.
The checks that matter
The fetched bill carries five values and each one is a chance for the integration to return something stale or mismatched.
| Field | Value |
|---|---|
| Consumer name | Priya Nair |
| Billing period | Aug 2026 |
| Units consumed | 284 |
| Due date | 2026-09-22 |
| Amount due | 1,842.50 rupees |
The consumer name is the assertion that catches the worst failure. A bill fetched for the wrong consumer number returns a real bill for a real person, and the customer pays a stranger's electricity without anything appearing wrong.
Note: Asserting the fetched amount and the paid amount as the same figure across two steps is what turns a payment test into an integration test. Start on TestMu AI. Start for free
The flow as a test file
The pay button is referenced with the amount in its label, so a button that renders a different figure than the fetched bill fails at the click rather than at the confirmation.
---
mode: testing
url: https://my-testing-repo-main.vercel.app/paytm-clone-app/bills?reset=true
max_steps: 40
tags: [paytm, fintech, bills]
---
# Paytem 20.3: Electricity bill
Catalog objective: fetch an electricity bill by consumer number and pay it.
Key assertion: the fetched amount matches the amount paid.
## Fetch the bill
Select "Tata Power" in "Electricity board", type "100200300" into "Consumer number", and click "Fetch bill".
## Verify the fetched bill
Verify the bill details show "Consumer name" of "Priya Nair", "Billing period" of "Aug 2026", "Units consumed" of "284", "Due date" of "2026-09-22" and "Amount due" of "₹1,842.50".
## Pay it
Click "Pay ₹1,842.50" and verify a green banner titled "Bill paid" appears.
## Verify the amount paid matches the amount fetched
Verify the banner says "₹1,842.50" was paid to Tata Power for consumer "100200300", with transaction "PTM9095900".The final assertion names the amount, the biller and the consumer number together, which ties the payment to the bill it was supposed to settle.
Step by step coverage
A fetch, a verification, a payment and a reconciliation.
| Step | What it proves |
|---|---|
| Fetch the bill | A consumer number returns a bill from the selected board |
| Verify the fetched bill | Name, period, units, due date and amount are all returned |
| Pay it | The bill is paid from the fetched figure |
| Verify the amount paid matches the amount fetched | Amount, biller and consumer number all agree |
Asserting the units consumed is unusual and worth keeping. It is the value a customer checks against their own meter, and a bill with a plausible amount and impossible usage is a biller integration problem.
Adding it to a suite
kane-cli testmd run tests/paytm/electricity-bill_test.mdAdd a variant with an unknown consumer number, since a fetch that silently returns nothing is a worse experience than one that says so.
Third party integrations drift without a release on your side. Running Kane CLI in CI covers scheduled checks, and calling an API in the same run covers comparing the rendered bill against the biller response.
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.
Bill Payment 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




