1Business context
PowerGrid is an electricity utility's self-service portal. Consumers log in with an OTP, submit meter readings, see slab-based bills, pay fully or partly, set up autopay and report outages safely.
OTP login with a resend countdown, a usage chart with hover tooltips, meter readings with slab-tariff bill maths, full or partial payments, an autopay mandate and outage reports.
2Users & roles
- 👤 Electricity consumer (1234567890, OTP 111222) — reads meter, pays, sets autopay, reports outages
3Modules & screens
| Screen | Route | What it does |
|---|---|---|
| Login | /apps/utilities | Consumer number + OTP with resend timer |
| Dashboard | /apps/utilities/dashboard | Usage bars with tooltips, meter reading, bill estimate, autopay |
| Pay bill | /apps/utilities/pay | Full or partial payment |
| Report outage | /apps/utilities/outage | Outage type with safety warnings |
4Main end-to-end journey
Reading, autopay and payment
- Log in with 1234567890 and OTP 111222
- Submit reading 4870
- Enable autopay with TrustBank and a ₹3,000 cap
- Pay the bill in full by UPI
- Return to the dashboard
Expected: 350 kWh, bill ₹1,725.00, autopay Active via TrustBank, and bill status Paid
5Business rules & validations
- OTP & resend timerIntermediate
resend-otp stays disabled while resend-countdown ticks from 30 — mock the clock or wait for enabled.
- Hover tooltipsIntermediate
Hover usage-bar-* to show usage-tooltip with units and amount (also works on keyboard focus).
- Reading validationBeginner
A reading below last-reading or non-numeric shows error-new-reading.
- High-usage confirmIntermediate
More than 1,000 units reveals confirm-high, which must be ticked to continue.
- Slab mathsAdvanced
350 units → 100×3 + 200×5 + 50×7.5 + 50 = ₹1,725.00 in estimated-bill; slab-row lists each band.
- Partial paymentsIntermediate
pay-partial below 50% of the due shows pay-error; a valid amount leaves remaining-due.
- Autopay switchIntermediate
Turning autopay-toggle on opens mandate-modal; cancelling leaves it off.
- Conditional warningBeginner
Choosing “Sparking wire” shows safety-warning before submitting an outage.
6Test data & credentials
- URL
- /apps/utilities
- Consumer no.
- 1234567890
- OTP
- 111222
- Tariff
- ₹3 / ₹5 / ₹7.5 + ₹50
7Glossary
- Slab tariff
- ₹3 / ₹5 / ₹7.5 per unit by band, plus ₹50 fixed charge
- Autopay mandate
- Bank authorisation with a maximum amount
- Partial payment
- Must be at least 50% of the amount due
8Watch-outs for automation
- ⚠️Resend OTP is disabled while a 30-second countdown runs
- ⚠️Readings below the last reading are rejected
- ⚠️Over 1,000 units needs a confirmation checkbox
9Suggested test strategy
1 · Smoke
2
P1 positive and end-to-end cases — run on every build.
2 · Regression
17
All cases, incl. 4 negative and 4 edge — run before release.
3 · End-to-end
3
Full user journeys — run nightly.
Start with these smoke cases
- POWERGRID-01 — Pay a bill
- POWERGRID-E2E-01 — Reading, autopay and payment