Test design and strategy · mid
Risk-based testing and payment states
When time is short, test what is likely to fail and what hurts most if it does. Payments are a good example, because a payment has many states, not only success and failure.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Risk is chance of failure times impact. Likely to fail: changed code, complex logic, past bugs, new integrations. High impact: payments, login, checkout, data loss.
- Ask first what changed, which areas had bugs before, what the automated suite covers, and which journeys bring in money.
- Pick in this order: everything touching the change, then critical journeys (smoke), then risky neighbours. Let automation cover broad regression while you test new things by hand.
- Report what was tested, what was not, known bugs and risks. Go or no-go is a shared decision, not the tester alone.
- UPI states: created, pending, success, failure, expired and late success. The usual bug is the app treating pending or timed out as failed.
- Payment cases: wrong PIN, low balance, user declines, collect request expires, app killed in the UPI app, double tap on Pay, back button on the pending screen, the same order paid from two devices.
- Use the gateway sandbox, and a stub server (for example WireMock) for a webhook that arrives late, twice or out of order. Never use real money in automation.
- Check beyond the screen: the payment rows and status history, one payment per order (idempotency key), the webhook signature, and server-side status confirmation with the gateway.
The red pen
Common traps: mistake → fix
Mistake: Run the first 80 cases and stop
Fix: choose by risk, not by order in the sheet.
Mistake: The app screen after redirect proves the payment
Fix: only the server status from the gateway does.
Mistake: Pending means failed
Fix: pending can become success later.
Easy to hard
Questions interviewers ask, easy to hard
- You have one day and 400 test cases. What do you run?
- How do you decide what to test first?
- Money was debited but the order shows failed. What states and cases do you test?
- How do you test a webhook that arrives twice or late?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.