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 CLIRecharge

Test a mobile recharge and the plan it actually applies

A plan is a price, a validity and a set of benefits. Four steps check all three reach the receipt.

Published on:

A recharge is a small payment with a large amount of metadata attached. The customer is not buying an amount, they are buying a validity period and a data allowance, and only one of those is the price.

This use case recharges on the Paytem clone and checks the plan survives to the receipt.

Failure modes in this flow

A recharge that charges the right amount against the wrong plan is the defect worth building this test around, because the price looks perfect.

  • The number and operator - both set, since a plan is only valid for one network.
  • The selected plan - 299 rupees for 28 days, restated after selection.
  • The charge - the recharge confirmed against that number and that amount.
  • The receipt - operator, plan, validity and the benefits the plan includes.

The benefits line is the one that separates this from a payment test. A customer who paid for unlimited calls and a hundred texts a day has bought that, not a price, and the receipt is where the promise is recorded.

Note

Note: Asserting four attributes of a plan in one instruction keeps a metadata-heavy receipt covered without splitting the file into a list of single checks. Try it on TestMu AI. Try free!

Writing the objective

The plan is chosen by its price and data allowance together, because a plan list often contains several entries at the same price with different validity.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/paytm-clone-app/recharge?reset=true
max_steps: 40
tags: [paytm, fintech, recharge]
---

# Paytem 20.2: Mobile recharge

Catalog objective: recharge a prepaid number, choosing a plan.
Key assertion: the plan amount is charged and a receipt is shown.

## Enter the number and operator
Type "9876543210" into "Mobile number" and select "Jiofy" in "Operator".

## Choose a plan
Choose the "₹299.00 · 2 GB/day" plan and verify "Selected plan" reads "₹299.00 · 28 days".

## Recharge
Click the recharge button and verify a green banner titled "Recharge successful" says "9876543210" was recharged with the "₹299.00" plan.

## Verify the receipt
Verify the receipt shows "Transaction ID" of "PTM9095900", "Operator" of "Jiofy", "Plan" of "₹299.00 · 2 GB/day · 28 days" and "Benefits" of "Unlimited calls + 100 SMS/day".

The selected plan is asserted immediately after selection and again on the receipt, which catches a selection that displays correctly and submits something else.

The assertions in detail

Entry, selection, payment and the record.

StepWhat it proves
Enter the number and operatorBoth are accepted, and the plan list is operator specific
Choose a planSelection reflects the chosen price and validity
RechargeThe number is recharged with the selected plan
Verify the receiptOperator, plan, validity and benefits are all recorded

Asserting the operator on the receipt matters more than it looks. A recharge submitted against the wrong network fails at the telecom rather than in the app, long after the money has gone.

Next-generation test execution with TestMu AI

Running it locally

kane-cli testmd run tests/paytm/mobile-recharge_test.md

Add a variant where the number and the operator do not match, since that mismatch is the most common real world recharge failure.

Plan catalogues change constantly while the flow around them does not. Generating plan variants covers keeping up, and running in CI covers catching a catalogue change early.

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

Mobile Recharge 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