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 adding funds by UPI with validation first
Test adding funds by UPI with validation first
Reject a malformed address, accept a good one, then confirm the margin moved by exactly the amount added.
Published on:
Funding a trading account before market open is a time-critical operation with no room for a failed transfer. The address validation in front of it is the only thing standing between a client and money sent nowhere.
This use case adds funds by UPI on the Zerodhaa Kyte clone, validation first.
The flow under test
The flow is three checks and a credit, and the first two are about refusing bad input rather than accepting good input.
- The starting margin - 25,000 rupees, established before anything is added.
- A malformed address is refused - with an error naming the expected format.
- A valid address verifies - confirmed by a badge before any amount is entered.
- The credit lands exactly - 5,000 added, taking the margin to 30,000.
The final assertion names the transition from 25,000 to 30,000 rather than just the new figure. A margin that reads 30,000 tells you less than a margin that demonstrably moved by the amount deposited.
Note: Verifying the address before the amount is entered means a client never types a figure against a destination that was never going to work. Start on TestMu AI. Start for free
The test file
The malformed address error is quoted in full, including the example format, because a generic validation message and a helpful one are different products to a client in a hurry.
---
mode: testing
url: https://my-testing-repo-main.vercel.app/zerodha-clone-app/funds?reset=true
max_steps: 40
tags: [zerodha, fintech, funding]
---
# Zerodhaa Kyte 17.4: Funds via UPI
Catalog objective: add funds via the UPI test flow.
Key assertion: the available margin increases correctly.
## Verify the starting margin
Verify "Available margin" reads "₹25,000.00".
## Verify a malformed UPI ID is rejected
Type "priya" into "UPI ID", click "Verify UPI ID", and verify an error reads "Enter a valid UPI ID, for example name@bank."
## Verify a good UPI ID
Replace the UPI ID with "priya@okhdfb", click "Verify UPI ID", and verify a badge reads "UPI ID verified".
## Add the funds
Type "5000" into "Amount", click "Add funds", and verify a green banner titled "Funds added" says "₹5,000.00" was credited and the balance moved from ₹25,000.00 to "₹30,000.00", with "Available margin" now reading "₹30,000.00".Replacing the address between attempts, rather than appending, also exercises whether the previous error clears when the input changes.
Step by step coverage
A baseline, two validation checks, then the credit.
| Step | What it proves |
|---|---|
| Verify the starting margin | The balance is known before any funds are added |
| Verify a malformed UPI ID is rejected | Format validation fires with a helpful message |
| Verify a good UPI ID | A well formed address verifies successfully |
| Add the funds | The credit is confirmed and the margin moves by exactly that amount |
Two of the four steps are about refusing input. On a funding flow that is the right proportion, because the cost of accepting a bad address is far higher than the cost of a rejected one.
Running it
kane-cli testmd run tests/zerodha/funds-upi_test.mdPair this with the payment funding flows in the same suite so every route into the account is covered by the same kind of check.
Validation cases are mechanical to produce and tedious to write. Generating validation variants covers that, and exact string assertions covers pinning each message.
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.
UPI Funding 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




