Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIBill Pay

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.

FieldValue
Consumer namePriya Nair
Billing periodAug 2026
Units consumed284
Due date2026-09-22
Amount due1,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

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.

StepWhat it proves
Fetch the billA consumer number returns a bill from the selected board
Verify the fetched billName, period, units, due date and amount are all returned
Pay itThe bill is paid from the fetched figure
Verify the amount paid matches the amount fetchedAmount, 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.

Next-generation test execution with TestMu AI

Adding it to a suite

kane-cli testmd run tests/paytm/electricity-bill_test.md

Add 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

Blogs: 75

  • Twitter
  • Linkedin

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.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

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