Web and mobile testing represents the most tangible layer of quality assurance — where users directly interact with your product. Senior QA engineers must demonstrate not just knowledge of test techniques, but the ability to think systematically about complex user flows across platforms, devices, network conditions, and edge cases.
This chapter covers 30 scenario-based questions that interviewers commonly use to assess a candidate's ability to:
Decompose complex features into testable components
Identify high-risk areas that demand deeper coverage
Design concrete test cases rather than listing abstract topics
Communicate a structured approach under time pressure
The CROSS Framework for Scenario Questions
Use this framework to structure your answers:
C - Clarify: Ask scope questions (platform? user type? integrations?)
R - Risk: Identify what could go wrong (data loss, security, UX)
O - Outline: Design test categories (functional, edge, NFR)
S - Specify: Give concrete test cases with steps and expected results
S - Summartic: Summarize coverage and mention automation strategy
Demonstrate ability to decompose a seemingly simple feature into comprehensive test coverage spanning functional correctness, security hardening, accessibility, and cross-platform behavior.
Interview Answer
"A login page seems simple but is one of the highest-risk surfaces in any application. I'd structure my approach using risk-based thinking.
First, I'd clarify scope: What authentication methods are supported — email/password, SSO, OAuth, biometric? Is there MFA? What platforms — web, iOS, Android? Are there rate-limiting or lockout policies?
Risk identification: The login page is the front door for attackers. Top risks include credential stuffing, session hijacking, information disclosure through error messages, and broken accessibility preventing users from authenticating.
Test design — I'd organize into categories:
Functional (Happy Path):
Valid credentials → successful login → redirect to dashboard
'Remember me' checkbox persists session across browser restarts
SSO redirect flow completes and maps to correct internal user
I'd automate the functional and security regression tests in CI, use OWASP ZAP for periodic security scans, and run accessibility checks with axe-core in the pipeline."
Assess the candidate's ability to handle real-time systems with complex state management, concurrency, and multi-device synchronization challenges.
Interview Answer
"A chat application is one of the most complex features to test because it involves real-time communication, state synchronization, and numerous edge cases around connectivity. Let me walk through my approach.
Clarifying questions: Is this 1:1 chat, group chat, or both? What message types are supported — text, images, files, voice notes? Is there end-to-end encryption? What platforms — web, iOS, Android? Is there a message history limit?
Risk analysis: The top risks are message loss, message ordering, duplicate messages, sync failures across devices, and data leakage in group chats.
Test design:
Message Sending & Receiving:
Send text message → appears in recipient's chat within 2 seconds
Send message with emoji/unicode → renders correctly on all platforms
Send 10,000-character message → handled gracefully (truncated or scrollable)
Send message to offline user → delivered when they come online (with delivery indicator update)
Real-time Synchronization:
User A sends message while User B is typing → both messages appear in correct order
Open same conversation on phone and laptop → message appears on both simultaneously
Send message on phone, switch to web → message visible in web conversation
Group Chat Specifics:
Send message to 500-member group → all members receive within SLA
User removed from group → cannot see new messages, history behavior per spec
Admin deletes message → removed from all participants' views
@mention in group → notification only for mentioned user
Evaluate the candidate's understanding of offline-first architecture, queue management, conflict resolution, and resilience testing techniques.
Interview Answer
"Offline message sending is a critical reliability feature. Users expect their messages to be delivered once connectivity resumes, without loss or duplication. Here's how I'd approach testing it.
Clarifying questions: What's the offline queue size limit? Is there a TTL on queued messages? How does the app indicate offline status? Does it support all message types offline (text, media, reactions)?
Risk analysis: Key risks are message loss, duplicate sends on reconnection, incorrect ordering, queue overflow, and poor UX (user doesn't realize they're offline).
Only testing simple on/off scenarios — Real offline is about flapping connections and partial connectivity
Forgetting persistence across app kill — Queue must survive process termination
Ignoring timestamp handling — Offline messages need careful timestamp logic
Not testing queue limits — Unbounded queues cause memory/storage issues
Missing deduplication verification — Reconnection retries commonly cause duplicates
Follow-up Questions
"How would you test offline behavior when the queue contains mixed media types?"
"What happens if the server schema changes while messages are queued offline?"
"How do you handle offline messages to a deleted conversation?"
"How would you automate offline testing in CI/CD?"
Q4How would you validate ordering across reconnects?#
Objective
Test understanding of distributed systems concepts — causal ordering, vector clocks, sequence numbers — and how to verify correctness in chat/messaging systems.
Interview Answer
"Message ordering across reconnects is a subtle but critical problem. When a client disconnects and reconnects, it may receive a burst of messages that arrived during the offline period. The challenge is ensuring these messages appear in the correct order relative to each other and to any messages the user sent while offline.
Clarifying questions: What ordering guarantee does the system provide — causal, total, or best-effort? Are sequence numbers client-generated or server-assigned? Is ordering per-conversation or global? How are conflicts resolved?
Risk analysis: Incorrect ordering leads to confusing conversations (answers before questions), broken thread contexts, and potential data integrity issues in transactional systems.
Test design:
Basic Ordering Verification:
User A sends messages M1, M2, M3 sequentially → User B sees them in same order
User B is offline → M1, M2, M3 arrive → User B reconnects → sees M1, M2, M3 in order
User A sends M1, User B sends M2, User A sends M3 (all while User C is offline) → User C reconnects and sees M1, M2, M3 in causal order
Two users send simultaneously in a group → server determines order, all clients see same order
Verify that the ordering is consistent across all group participants (total order)
Reconnection Burst Scenarios:
Client offline for 1 hour, 500 messages accumulated → on reconnect, all arrive in correct sequence
Client reconnects and receives batch → verify no UI flicker or reordering during render
Pagination of missed messages: first batch arrives, user scrolls, second batch arrives → no reorder
Network Partition Scenarios:
Client has intermittent connectivity (connected for 2s, disconnected for 5s, repeat) → messages from multiple gaps merge correctly
Client sends M1 offline, reconnects briefly (M1 sent), disconnects, sends M2 offline, reconnects → M1, M2 in order
Split-brain: two clients believe they're sending M3 → server resolves with tie-breaking rule
Clock Skew Testing:
Set device clock 5 minutes ahead → send message → verify server uses its own timestamp for ordering
Set device clock 1 hour behind → send message → message doesn't appear at bottom of old history
Two devices with 30-second clock difference → messages still ordered correctly
Sequence Number Validation:
Inspect sequence numbers in API response → strictly monotonically increasing per conversation
Gap in sequence numbers after reconnect → client requests missing messages
Duplicate sequence number received → client deduplicates (idempotent processing)
Stress & Concurrency:
10 users sending messages simultaneously to one group → total order consistent for all
Reconnect during high-traffic burst (100 msg/sec in group) → no ordering violations
Database replication lag → verify read-your-own-writes consistency"
Framework/Diagram
Ordering Mechanisms
┌─────────────────────────────────────────────────┐
│ Server-side Total Order │
│ ┌───┐ ┌───┐ ┌───┐ ┌───┐ ┌───┐ ┌───┐ │
│ │ 1 │ │ 2 │ │ 3 │ │ 4 │ │ 5 │ │ 6 │ seq_id │
│ └───┘ └───┘ └───┘ └───┘ └───┘ └───┘ │
│ A A B A C B sender │
└─────────────────────────────────────────────────┘
Reconnection Sync:
Client last_seen_seq = 3
Server has seq 4, 5, 6
→ Sends delta [4, 5, 6] in order
→ Client appends to local store
Validation Query:
SELECT * FROM messages
WHERE conversation_id = X
ORDER BY server_seq ASC
→ Verify no gaps, no duplicates, monotonic
Worked Example
Scenario: Testing a Telegram-like app's ordering guarantees
Test Case ID
Setup
Action
Verification
ORD-001
A, B, C in group chat
A sends M1→M2→M3 while C offline
C reconnects → sees M1, M2, M3 in order
ORD-002
A online, B online
A sends "Question?", B sends "Answer!" 100ms later
Relying on client timestamps — Device clocks drift; server-assigned ordering is essential
Testing only with two users — Group scenarios expose ordering bugs that 1:1 doesn't
Ignoring pagination boundaries — Ordering can break at page boundaries during sync
Not verifying consistency across observers — All participants must see the same order
Forgetting about database replication lag — Reads from replicas may show stale order
Follow-up Questions
"How would you test ordering in an eventually consistent system?"
"What's the difference between causal ordering and total ordering, and which would you test for?"
"How would you detect ordering violations in production?"
"How would you handle ordering when messages span multiple servers/shards?"
Q5How would you test duplicate-message prevention?#
Objective
Evaluate understanding of idempotency, client-side deduplication keys, server-side uniqueness constraints, and testing strategies for exactly-once delivery semantics.
Interview Answer
"Duplicate messages are one of the most common and annoying bugs in messaging systems. They typically occur during reconnection retries, double-tap on send, or server-side processing failures. Here's my testing approach.
Clarifying questions: Does the system use client-generated idempotency keys? Is deduplication handled client-side, server-side, or both? What's the dedup window (how long are IDs tracked)? Does it apply to all message types?
Risk analysis: Duplicates erode user trust, corrupt read counts, trigger duplicate notifications, and in transactional contexts (payments, orders) can cause real financial harm.
Test design:
Client-side Deduplication:
Rapidly tap send button 5 times → only 1 message appears in conversation
Send button disables after first tap (UI-level prevention)
Verify client generates unique idempotency key (UUID) per message intent
Resend same message text → different idempotency key → treated as new message (user intent)
Network Retry Deduplication:
Send message → simulate network timeout (server received but ACK lost) → client retries → only 1 message on server
Send message → server returns 500 → client retries with same idempotency key → server deduplicates
Message edit vs. new message: editing a message should not be treated as duplicate of original
Multi-device Scenarios:
Same user sends same text from two devices simultaneously → two separate messages (different idempotency keys, different intent)
Offline queue synced from Device A, same queue somehow synced from Device B → server deduplicates by key
Automation Approach:
Intercept network at proxy level to simulate ACK loss
Inject duplicate API calls in integration tests
Monitor production for duplicate messages (alerting on same idempotency_key with multiple message_ids)"
Framework/Diagram
Deduplication Architecture
┌──────────┐ ┌──────────────┐ ┌──────────┐
│ Client │───────▶│ Server │───────▶│ Database │
│ │ │ │ │ │
│ Generate │ │ Check dedup │ │ UNIQUE │
│ idem_key │ │ cache/store │ │ constraint│
│ per send │ │ │ │ on key │
│ intent │ │ If exists: │ │ │
│ │ │ return ACK │ │ │
│ Retry │ │ If new: │ │ │
│ same key │ │ insert msg │ │ │
└──────────┘ └──────────────┘ └──────────┘
Dedup Flow:
Request 1 (key=abc123) → Insert → ACK → Client marks sent ✓
Request 2 (key=abc123) → Cache hit → ACK (no insert) → Client marks sent ✓
Result: 1 message in DB, client confident it was sent
Worked Example
Scenario: Testing deduplication in a payment confirmation messaging system
Test Case ID
Trigger Condition
Expected Behavior
Verification Method
DEDUP-001
Double-tap send button
Send button disabled after first tap, 1 message sent
UI state + API call count
DEDUP-002
Network timeout on first send, auto-retry
Same idempotency key reused, 1 message in DB
DB query + API logs
DEDUP-003
Kill app mid-send, relaunch, queue flush
Offline queue uses original idempotency key, no dup
DB count check
DEDUP-004
Inject duplicate API call via Postman
Server returns 200, no second message created
DB assertion
DEDUP-005
Race condition: 2 requests arrive within 1ms
Database UNIQUE constraint prevents both inserting
DB count = 1
DEDUP-006
Same text sent intentionally by user twice
Two different idempotency keys → 2 messages (correct)
Both visible, different IDs
Common Mistakes to Avoid
Confusing identical content with duplicate messages — Same text ≠ duplicate; the idempotency key determines identity
Testing only at UI level — Double-tap prevention is necessary but not sufficient; network retries need server-side dedup
Ignoring the dedup window — Keys can't be stored forever; test behavior after window expires
Not testing the race condition — Two requests arriving simultaneously is the hardest case
Forgetting multi-device scenarios — Same user, multiple devices is a common source of false duplicates
Follow-up Questions
"How would you test deduplication in a distributed system with multiple server nodes?"
"What's the tradeoff between dedup window size and storage cost?"
"How would you detect duplicate messages in production monitoring?"
"How does exactly-once delivery differ from at-least-once with deduplication?"
Q6How would you test read receipts across devices?#
Objective
Assess ability to test multi-device state synchronization, eventual consistency, and privacy-sensitive features with complex interaction patterns.
Interview Answer
"Read receipts are a multi-device synchronization challenge combined with privacy considerations. The feature seems simple — show when a message was read — but involves complex state propagation across devices and users.
Clarifying questions: Does the system support delivery receipts AND read receipts? Can users disable read receipts (privacy toggle)? What counts as 'read' — message visible in viewport, or conversation opened? How does it work in group chats? Is there a 'read by' list?
Risk analysis: Key risks include incorrect read state (showing read when it wasn't, or vice versa), privacy violations (showing read status when user disabled it), performance degradation in large groups, and sync lag confusing users.
Test design:
Basic Read Receipt Flow:
User A sends message to User B → shows single tick (sent)
Message delivered to B's device → double tick (delivered)
User B opens conversation and message is in viewport → blue tick (read) + timestamp
Verify read receipt timestamp matches when message actually entered viewport, not when app opened
Multi-device Read State:
User B has phone and laptop → reads message on phone → laptop also shows conversation as read
Read on laptop → phone's unread badge clears
Partial read: B opens conversation on phone, scrolls to message 5 of 10 → receipts sent for 1-5 only
B reads on offline device → reconnects → read receipts propagate to sender
Group Chat Read Receipts:
Send message to 50-person group → read receipt shows "Read by 3" → tap to see list
All 50 members read → shows "Read by all"
User leaves group after reading → still counts in read receipt? (product decision to test)
Assess knowledge of platform-specific notification systems (APNs, FCM), delivery reliability, user experience considerations, and edge cases in notification behavior.
Interview Answer
"Push notifications span the full stack — from server-side triggering through platform delivery services to client-side rendering. Each layer introduces potential failure points.
Clarifying questions: What notification types — transactional, marketing, real-time alerts? Which platforms — iOS, Android, Web Push? Are notifications actionable (quick reply, buttons)? What grouping/threading behavior? Are there quiet hours or DND?
Risk analysis: Notifications can be missed (silent failure), delayed, duplicated, shown with incorrect content, or violate user preferences. They also have platform-specific restrictions (iOS requires explicit permission, Android channels).
Test design:
Delivery Verification:
Trigger event → notification arrives on device within SLA (typically < 5 seconds)
Demonstrate ability to test a high-stakes, multi-step flow involving payments, inventory, concurrency, and regulatory compliance.
Interview Answer
"Checkout is the highest-value flow in e-commerce — any bug here directly impacts revenue. I'd approach this with extreme rigor across functional, financial, and compliance dimensions.
Clarifying questions: Single-page or multi-step checkout? What payment methods — card, wallet, BNPL, COD? Guest checkout supported? What tax/shipping calculation engines? International orders?
Risk analysis: Revenue loss from failed payments, cart abandonment from UX issues, inventory oversell from concurrency bugs, financial discrepancy from calculation errors, PCI compliance violations.
Test design:
Cart to Checkout Transition:
Add 3 items → proceed to checkout → all items, quantities, prices correct
Item goes out of stock after adding to cart → clear message at checkout, option to remove
Price changes between cart and checkout → user notified, updated price shown
Coupon/promo applied in cart → persists to checkout, discount reflected
Address & Shipping:
Valid address → shipping options displayed with accurate rates and delivery estimates
International address → correct tax/duty calculation, shipping restrictions applied
Address validation: typo in zip code → suggestion offered
Multiple shipping addresses (split shipment) → each item shows its destination
PO Box address → restrictions for carriers that don't deliver to PO Boxes
Payment Processing:
Valid card → payment succeeds → order confirmation shown
Declined card → clear error, user can retry with different method
3D Secure/SCA redirect → complete challenge → return to merchant → order placed
Payment timeout → order not placed, no charge, user informed
Insufficient funds → specific error message (not generic 500)
Only testing happy path — Payment failures, timeouts, and inventory conflicts are where real bugs live
Not verifying calculations to the penny — Rounding errors in tax/shipping are common and expensive
Ignoring concurrency — E-commerce must handle simultaneous purchases of limited inventory
Forgetting the back-button scenario — Users navigate unpredictably; the system must be resilient
Missing PCI compliance — Card data handling errors can result in fines and loss of processing ability
Follow-up Questions
"How would you test a 'Buy Now, Pay Later' integration?"
"How would you handle testing with real payment gateways vs. sandbox?"
"What's your approach to testing checkout performance during Black Friday?"
"How would you test abandoned cart recovery emails?"
Q9How would you test a payment confirmation screen?#
Objective
Evaluate ability to test the critical moment between payment processing and order confirmation — where financial accuracy, user trust, and error handling converge.
Interview Answer
"The payment confirmation screen is the receipt of the digital world. It must be accurate, trustworthy, and handle all possible outcomes from the payment gateway. I'd focus on accuracy, timing, and failure modes.
Clarifying questions: What information is displayed (order ID, amount, estimated delivery, payment method last 4 digits)? Is this screen reachable only after successful payment, or also for pending/failed states? Can users take actions from this screen (print, share, track)?
Risk analysis: Showing incorrect amounts erodes trust, showing confirmation for failed payments causes support tickets, and not showing confirmation for successful payments causes panic and duplicate orders.
Test design:
Data Accuracy:
Verify order ID matches backend record
Total charged matches exact amount displayed during checkout (to the penny)
Payment method shows correct last 4 digits and card type (Visa/MC icon)
Shipping address displayed matches what was entered
Estimated delivery date is reasonable and calculated correctly
Line items match cart (item names, quantities, individual prices)
Tax, shipping, and discount breakdowns sum to the correct total
Timing & State Management:
Payment processes in 2 seconds → confirmation shown immediately
Payment processes in 15 seconds → loading/processing indicator shown, then confirmation
Payment times out (30s) → appropriate error, NOT a false confirmation
Payment webhook delayed → optimistic confirmation with "Processing" badge
Verify double-click on "Place Order" doesn't trigger duplicate payment
Push notification (if enabled) fires with order ID
SMS confirmation for high-value orders (if configured)
Accessibility:
Screen reader announces "Order confirmed" with order number
All financial data in accessible table format (not just visual layout)
Focus management: page load puts focus on confirmation heading
Print action accessible via keyboard
Cross-platform:
Web: confirmation URL shareable, renders in any browser
iOS: confirmation deep-linkable from notification, renders in WKWebView
Android: screenshot capability, share intent works
Mobile: long order ID doesn't overflow on small screens"
Framework/Diagram
Payment Confirmation States
┌─────────────────────────────────────────────────┐
│ Payment Processing │
├────────────┬──────────────┬────────────────────┤
│ SUCCESS │ PENDING │ FAILED │
├────────────┼──────────────┼────────────────────┤
│ ✓ Show │ ⏳ Show │ ✗ Show error │
│ order ID │ "Processing"│ message │
│ ✓ Amount │ ⏳ Estimated │ ✗ Reason (if known)│
│ charged │ completion │ ✗ Retry option │
│ ✓ Email │ ⏳ "We'll │ ✗ Support link │
│ receipt │ email you" │ ✗ Cart preserved │
│ ✓ Tracking │ ⏳ Webhook │ ✗ No charge made │
│ link │ listener │ │
└────────────┴──────────────┴────────────────────┘
Worked Example
Scenario: Amazon-like order confirmation
Test Case ID
Payment Outcome
Screen Content
Verification
CONFIRM-001
Card charged $142.57
Shows "Total: $142.57", order #, delivery date
Cross-check DB order record
CONFIRM-002
3DS challenge passed
Confirmation with "Paid via Visa •••4242"
Verify card last4 matches
CONFIRM-003
Gateway timeout
"Confirming payment..." spinner → email within 5min
Webhook eventually confirms
CONFIRM-004
Card declined
Error: "Payment declined. Try another card."
No order in DB, no charge
CONFIRM-005
Page refreshed 3x
Same confirmation content each time
No duplicate orders/charges
CONFIRM-006
User B accesses User A's URL
403 Forbidden or redirect to own orders
Authorization check
Common Mistakes to Avoid
Only testing the success state — Failed and pending states need equal coverage
Not verifying financial accuracy — Amounts must match exactly between payment gateway and display
Ignoring the "network failure after payment" scenario — This is where money gets lost
Not testing the back button / refresh behavior — Users do this constantly
Forgetting about email correlation — The confirmation page and email must show identical information
Follow-up Questions
"How would you test confirmation for a subscription payment vs. one-time?"
"What happens if the confirmation page crashes — how do you ensure the user knows their payment went through?"
"How would you test multi-currency confirmation displays?"
"How would you verify no sensitive payment data is cached in the browser?"
Q10How would you test a ride-sharing booking flow?#
Objective
Demonstrate ability to test a real-time, location-dependent, multi-party flow with complex state machines, timing constraints, and safety considerations.
Interview Answer
"Ride-sharing is a real-time marketplace connecting riders and drivers. The booking flow involves geolocation, dynamic pricing, matching algorithms, and a complex state machine. I'd test end-to-end with focus on reliability and safety.
Clarifying questions: What ride types — standard, premium, shared/pool? Scheduled rides supported? What's the cancellation policy? Is there in-app navigation? Safety features (share trip, emergency button)?
Risk analysis: GPS inaccuracy leading to wrong pickup, surge pricing errors overcharging users, driver matching failures leaving riders stranded, safety features not functioning in emergencies, and payment issues after ride completion.
Test design:
Pickup Location & Destination:
Enter destination → route displayed on map, ETA shown
GPS pickup pin accuracy: verify pin drops at actual device location (±10m)
Adjust pickup pin manually → address text updates accordingly
Enter ambiguous address → suggestions list shown, correct one selectable
Airport pickup → geofence-specific pickup zones displayed
No GPS signal (indoor, tunnel) → graceful fallback, manual address entry
Pricing & Estimates:
Standard route → fare estimate range shown (e.g., $12-15)
Surge pricing active → multiplier clearly displayed, user confirms before booking
Route with tolls → toll amount included in estimate
Shared ride → per-seat pricing, total depends on route match
Promo code applied → discount reflected in estimate
Final fare within estimate range (or explanation if exceeded due to route change)
Driver Matching & Acceptance:
Request ride → matched with nearby driver within 30s
No drivers available → clear message, options (wait, try different type, schedule)
Driver accepts → ETA to pickup shown, driver info displayed (name, car, plate, rating)
Driver cancels after acceptance → auto-rematch, rider notified
Rider cancels within free window → no charge; after window → cancellation fee
Ride Lifecycle State Machine:
Requesting → Matched → Driver en route → Arrived → Trip started → Trip completed → Rating
Verify state transitions on both rider and driver apps simultaneously
Clear surge disclosure, user confirms, fare = base × 2.5
RIDE-003
Matching
Request in area with no drivers
"No drivers available" within 60s, suggest scheduled ride
RIDE-004
Cancellation
Cancel 6 minutes after driver acceptance
Cancellation fee charged (outside free window)
RIDE-005
Safety
Press emergency button during trip
911 connection + live location shared with safety team
RIDE-006
Edge case
Driver app crashes mid-trip
Ride state preserved server-side, driver reconnects, trip continues
Common Mistakes to Avoid
Testing only the happy path booking — The interesting scenarios are cancellations, no-shows, and failures
Ignoring the dual-sided nature — Both rider and driver apps must be in sync at all times
Not testing GPS edge cases — Indoor, tunnels, poor signal are common real-world conditions
Forgetting safety features — These are critical and must work under stress (panic scenarios)
Missing surge pricing transparency — Regulatory requirement in many jurisdictions
Follow-up Questions
"How would you test the driver matching algorithm's fairness?"
"How would you test ride-sharing (pool) with dynamic route optimization?"
"What's your approach to testing ride ETA accuracy?"
"How would you test the system during a major event (stadium, concert)?"
Q11How would you test a food-delivery order lifecycle?#
Objective
Test understanding of multi-party coordination (customer, restaurant, driver), time-sensitive operations, and complex state management across a distributed system.
Interview Answer
"Food delivery involves three stakeholders (customer, restaurant, driver) with time-sensitive handoffs. A bug at any stage can mean cold food, wrong orders, or lost revenue. I'd test each handoff point rigorously.
Clarifying questions: Is it marketplace (multiple restaurants) or single-brand? How is driver assignment done — zone-based, nearest, or auction? What's the SLA for delivery? Are there scheduled orders? Contactless delivery option?
Risk analysis: Wrong items delivered, excessive delivery times, pricing discrepancies between menu and checkout, driver assignment failures, and food safety concerns (time/temperature).
Test design:
Menu & Cart:
Browse restaurant → menu loads with accurate prices, images, descriptions
Item customization (no onions, extra cheese) → reflected in order summary and sent to restaurant
Out-of-stock item → marked unavailable, cannot add to cart
Restaurant closes mid-browse → cart shows "Restaurant closed" at checkout
Minimum order value not met → clear message with remaining amount needed
Add items from two restaurants → separate carts or clear warning
Order Placement:
Place order → confirmation with estimated delivery time
Payment processed → restaurant receives order on their tablet
Order ID consistent across customer app, restaurant dashboard, and driver app
Scheduled order for 7 PM → queued, sent to restaurant at appropriate prep time
Restaurant Acceptance & Preparation:
Restaurant accepts → status updates to "Preparing your order"
Assess understanding of file handling, progressive uploads, transcoding pipelines, and UX for long-running operations with various failure modes.
Interview Answer
"Video upload involves large file handling, background processing, and multiple potential failure points. It's a feature where UX during waiting, error recovery, and platform differences all matter significantly.
Clarifying questions: What's the maximum file size? Supported formats? Is there client-side compression? Resumable uploads? Background upload on mobile? What transcoding/processing happens server-side?
Risk analysis: Upload failures on poor connections with no resume, data loss from browser/app crashes mid-upload, server-side processing failures with no notification, storage cost from unmanaged uploads, and security risks from malicious files.
Test design:
Basic Upload Flow:
Select 30-second MP4 video (50MB) → upload starts, progress bar accurate
Upload completes → processing indicator shown → video playable within SLA
Evaluate ability to test relevance, performance, and UX of a search system spanning indexing, query processing, ranking, and result presentation.
Interview Answer
"Search is deceptively complex — it combines text processing, ranking algorithms, performance requirements, and nuanced UX. I'd test across the full pipeline from query input to result interaction.
Clarifying questions: What content is searchable (products, messages, documents, users)? Is there typeahead/autocomplete? Faceted search/filters? How fresh must results be (real-time vs. batch indexed)? Fuzzy matching/typo tolerance?
Risk analysis: Irrelevant results frustrate users, slow search drives abandonment, missing results mean lost sales/engagement, and search can be a vector for injection attacks.
Test design:
Query Input & Autocomplete:
Type 3 characters → autocomplete suggestions appear within 200ms
Suggestions relevant to typed prefix and user's history
Select suggestion → full search executes with that term
Clear search field → suggestions disappear, previous results clear
Special characters in query → properly escaped, no injection
Empty search submission → shows trending/popular or validation error
Relevance & Ranking:
Search for exact product name → that product is first result
Search for partial name → relevant results ranked by relevance
Misspelled query ("iphne") → shows results for "iphone" with "Did you mean?" prompt
Search for synonym ("couch" vs. "sofa") → returns both
Recent/updated content ranks higher than stale content (freshness boost)
User context influences results (previous purchases, location)
Filters & Facets:
Apply price filter ($10-$50) → only results within range shown
Demonstrate expertise in testing authentication security features including timing, delivery channels, fallback mechanisms, and resistance to common attacks.
Interview Answer
"OTP/MFA is a security-critical feature where both usability and security must be balanced. A bad implementation either frustrates users (can't log in) or provides false security (bypassable). I'd test both dimensions rigorously.
Clarifying questions: What MFA methods are supported — SMS, email, TOTP (authenticator app), push notification, hardware key (FIDO2)? Is MFA required or optional? Can users set up multiple methods? What's the OTP length and expiration? Is there a backup/recovery flow?
Evaluate understanding of security mechanism testing, including the balance between protecting against brute force and not creating denial-of-service for legitimate users.
Interview Answer
"Account lockout is a double-edged sword — it protects against brute force but can itself become a denial-of-service vector if an attacker intentionally locks out legitimate users. I'd test both the security efficacy and the usability impact.
Clarifying questions: What's the lockout threshold (attempts before lock)? What's the lockout duration (temporary vs. permanent)? Is it IP-based, account-based, or both? Is there progressive delay? What unlock mechanisms exist (time-based, admin, self-service)?
Risk analysis: Too aggressive lockout = DoS against legitimate users; too lenient = brute force succeeds; no notification = user unaware they're under attack; no unlock mechanism = support burden.
Test design:
Threshold Testing:
Enter wrong password N-1 times → account still active, warning shown ("1 attempt remaining")
Enter wrong password N times → account locked, clear message shown
Enter correct password after lock → still locked (credentials not checked during lockout)
Verify threshold is per-account, not per-session (closing browser doesn't reset counter)
Mixed case: 3 wrong attempts, 1 correct, 2 more wrong → counter behavior (reset on success?)
Assess understanding of security-sensitive workflows where usability and protection against account takeover must be balanced.
Interview Answer
"Password reset is an account recovery mechanism that, if flawed, becomes an account takeover vector. It's often the weakest link in authentication because it bypasses the password entirely. I'd test security rigorously while ensuring legitimate users can recover access.
Clarifying questions: What reset method — email link, SMS code, security questions? Token expiration time? Can reset be initiated while logged in (password change) vs. logged out (forgot password)? Are there additional verification steps for high-security accounts?
If user didn't initiate reset → "secure your account" link in notification
Rate Limiting:
Request reset 10 times for same email → rate limited after 3 (prevent email bombing)
Request reset for many different emails from same IP → blocked (credential stuffing)
Rate limiting doesn't reveal which emails exist
Edge Cases:
Request reset → change email address before clicking link → token invalidated
Request reset → account disabled by admin → token invalid
Multiple pending reset tokens → only latest should work
Reset link opened in different browser/device → should still work (token-based, not session-based)
Reset link with modified email parameter → rejected (token bound to specific email)
Password reset for OAuth-only account → "Use Google/SSO to sign in" message
Platform-specific:
iOS: Universal link opens app to reset screen (not Safari)
Android: Deep link opens app to reset screen
Email client: link renders correctly in Gmail, Outlook, Apple Mail
Mobile: reset form usable on small screen, password field with show toggle"
Framework/Diagram
Password Reset Security Checklist
┌─────────────────────────────────────────────────────┐
│ Token Properties │
│ ☐ Cryptographically random (CSPRNG) │
│ ☐ Sufficient entropy (≥128 bits) │
│ ☐ Time-limited (1h recommended) │
│ ☐ Single-use (invalidated after use) │
│ ☐ Bound to specific account │
│ ☐ Invalidated on new request │
│ ☐ Not in server logs │
│ ☐ No referrer leakage │
├─────────────────────────────────────────────────────┤
│ Flow Security │
│ ☐ No user enumeration │
│ ☐ Rate limiting per email and per IP │
│ ☐ All sessions invalidated after reset │
│ ☐ Notification email sent on change │
│ ☐ Password history check │
│ ☐ Breach database check │
├─────────────────────────────────────────────────────┤
│ UX Requirements │
│ ☐ Clear password requirements shown │
│ ☐ Real-time strength meter │
│ ☐ Accessible form (labels, errors) │
│ ☐ Works on mobile (responsive) │
│ ☐ Deep link to app (iOS/Android) │
└─────────────────────────────────────────────────────┘
Worked Example
Scenario: Testing password reset for a healthcare platform (HIPAA context)
Test Case ID
Category
Steps
Expected Result
RESET-001
Happy path
Request reset, click link, set new password
Password updated, all sessions invalidated
RESET-002
Token expiry
Click reset link after 61 minutes
"Link expired" page, option to request new
RESET-003
Single use
Click reset link twice
First: reset form. Second: "Link already used"
RESET-004
Enumeration
Request reset for non-existent email
Same response as valid email, no timing diff
RESET-005
Session kill
Reset password while logged in elsewhere
All other sessions terminated immediately
RESET-006
History
Set new password same as previous
"Cannot reuse recent passwords" error
Common Mistakes to Avoid
Not testing token security — Predictable or non-expiring tokens are critical vulnerabilities
Ignoring session invalidation — Old sessions must die after password reset
Allowing user enumeration — "Email not found" messages help attackers
Not testing the email notification — Users must be alerted to password changes they didn't initiate
Testing only the happy path — Expired tokens, reused tokens, and tampered tokens are key scenarios
Follow-up Questions
"How would you test password reset if the email provider is slow/unreliable?"
"What's the security difference between reset link and OTP-based reset?"
"How would you handle password reset for accounts with MFA enabled?"
"How would you test the account recovery flow when all methods are lost?"
Q17How would you test a mobile app on iOS and Android?#
Objective
Demonstrate comprehensive knowledge of platform differences, testing tools, and strategies for ensuring quality across both major mobile platforms.
Interview Answer
"Testing across iOS and Android requires understanding fundamental platform differences — not just screen sizes, but lifecycle management, permission models, storage, and distribution mechanisms. I'd build a testing strategy that maximizes shared coverage while addressing platform-specific risks.
Clarifying questions: Is this a native app (Swift/Kotlin), cross-platform (React Native/Flutter), or hybrid (WebView)? What minimum OS versions are supported? What devices are in the target demographic? Are there platform-exclusive features?
Risk analysis: Platform-specific crashes (lifecycle bugs), inconsistent behavior between platforms (users compare), performance differences on lower-end Android devices, and permission handling discrepancies.
Test design:
App Lifecycle (Critical Platform Difference):
iOS: App goes to background → suspended → terminated by OS → state preserved?
Android: Activity recreated on config change (rotation) → state preserved?
Both: Force-kill app mid-operation → graceful recovery on relaunch
Both: Incoming phone call during critical flow → flow state preserved after call
Testing only on latest OS/device — Real users have older phones and OS versions
Assuming identical behavior — iOS and Android handle lifecycle, back navigation, and permissions differently
Ignoring low-end Android devices — Fragmentation means 2GB RAM devices are still common
Not testing config changes — Rotation, multi-window, and font size changes break many apps
Forgetting about platform conventions — iOS swipe-back and Android system back must both work
Follow-up Questions
"How would you prioritize which devices to test on with limited budget?"
"What's your strategy for testing platform-specific accessibility features?"
"How would you handle a bug that only reproduces on specific Android OEMs?"
"How do you test app behavior during OS updates?"
Q18How would you handle device/browser fragmentation?#
Objective
Assess strategic thinking about coverage vs. cost tradeoffs in fragmented ecosystems, and practical approaches to achieving confidence without testing every combination.
Interview Answer
"With thousands of Android devices, dozens of iOS versions, and multiple browser engines, exhaustive testing is impossible. The goal is risk-based coverage that maximizes confidence per testing dollar. I'd use analytics-driven device selection, layered automation, and strategic real-device testing.
Clarifying questions: What does our analytics show for device/browser distribution? What's our market — enterprise (newer devices) or consumer (wider spread)? What budget do we have for device labs? Are there known problem devices from support tickets?
Risk analysis: Rendering differences across browsers cause visual bugs, different JS engine behaviors cause functional failures, Android OEM customizations break standard APIs, and older devices lack performance for modern features.
Test design:
Analytics-Driven Device Matrix:
Pull analytics: top 10 devices = 60% of users → these are mandatory test targets
Top 3 browsers + versions = 75% of web users → primary browser matrix
Include one device from each tier: flagship, mid-range, low-end
Include oldest supported OS version (the floor)
Include newest OS version (regression from OS updates)
Tiered Testing Strategy:
Tier 1 (Every build): Top 3 devices/browsers — full functional test
Tier 2 (Weekly): Next 7 devices/browsers — smoke test + critical paths
Tier 3 (Release): Extended set of 20+ — critical path only
Tier 4 (Quarterly): Exploratory on exotic devices (foldables, tablets, TVs)
Scenario: Managing fragmentation for a banking app with 2M users
Analytics Insight
Test Decision
Implementation
45% iOS 17, 30% iOS 16, 15% iOS 15
Support iOS 15+, test all three
Device farm configs
Samsung 35%, Xiaomi 15%, Pixel 10% of Android
Mandatory test on all three OEMs
Physical + cloud devices
Chrome 55%, Safari 25%, Samsung Internet 8%
Tier 1 browsers, Samsung in Tier 2
BrowserStack suite
5% on foldable devices
Tier 3 coverage with fold/unfold
Quarterly on Samsung Fold
3% still on Android 10
Support but Tier 3 only
Smoke test before release
40% use accessibility features
Test with VoiceOver + TalkBack
Every build on Tier 1 devices
Common Mistakes to Avoid
Testing only on developer's latest iPhone — Real users have older, cheaper devices
Treating browser resize as device testing — Touch behavior, performance, and APIs differ on real devices
Equal coverage across all devices — Analytics should drive priority, not equal time
Forgetting about in-app browsers (WebView) — Many users open links from social apps
Not updating the device matrix — Market share shifts; review quarterly
Follow-up Questions
"How would you justify device lab costs to management?"
"When a bug is reported on a device you don't have, what's your process?"
"How would you test for foldable device support?"
"What's your approach to testing on unreleased OS betas?"
Q19How would you test app upgrade and backward compatibility?#
Objective
Evaluate understanding of version migration, data persistence across upgrades, API backward compatibility, and the challenges of supporting multiple live versions simultaneously.
Interview Answer
"Unlike web apps where everyone gets the latest version instantly, mobile apps have multiple versions in production simultaneously. Users update at different times, and a forced update is a last resort. I'd test the upgrade path itself and the coexistence of versions.
Clarifying questions: How many previous versions do we support? Is there a forced update mechanism? What data migrations are needed? Are there API version changes? What about users who skip versions (v2 → v5)?
Risk analysis: Data loss during upgrade, crashes on first launch after update, API incompatibility between old client and new server, database schema migration failures, and users stuck on unrecoverable state.
Test design:
Direct Upgrade (N to N+1):
Install previous version → add data (login, create content, save preferences) → upgrade → all data intact
Verify database schema migration runs successfully (no corruption)
Verify cached data (images, files) survives or is properly invalidated
Test understanding of URI scheme handling, universal/app links, deferred deep linking, and the complex routing logic that maps URLs to in-app screens.
Interview Answer
"Deep links are the bridge between the external world (web, email, notifications, QR codes) and specific in-app content. They're critical for user acquisition, engagement campaigns, and cross-platform navigation — but they're fragile and platform-specific.
Clarifying questions: What types of deep links — custom URI scheme, Universal Links (iOS), App Links (Android), or deferred deep links? What happens if the app isn't installed? What screens are deep-linkable? Are there authentication requirements?
Risk analysis: Broken deep links damage marketing campaigns and user experience, incorrect routing shows wrong content, unauthenticated deep links expose private content, and platform verification failures cause links to open in browser instead of app.
Test design:
Basic Deep Link Routing:
Click deep link to product page → app opens to that specific product
Click deep link to user profile → app opens to that profile
Click deep link to settings page → app opens to settings
Invalid deep link path → app opens to fallback (home screen), no crash
Deep link with query parameters → parameters parsed and applied correctly
Platform-specific Verification:
iOS Universal Links: apple-app-site-association file served correctly from domain
iOS: Link tapped in Safari → opens in app (not browser)
iOS: Long-press link → shows app name in context menu (association verified)
Android App Links: assetlinks.json served correctly, intent filter configured
Android: Verified link opens app directly (no disambiguation dialog)
Android: Non-verified link shows "Open with" chooser
App Not Installed (Deferred Deep Linking):
Click deep link, app not installed → redirect to App Store / Play Store
Install app from store → first launch → routed to deep link destination (deferred)
Deferred deep link with attribution parameters → marketing source tracked
Web fallback: if user chooses not to install → web page shown with same content
Authentication States:
Deep link to authenticated content, user logged in → direct navigation
Deep link to authenticated content, user logged out → login screen, then redirect to destination
Deep link to content user doesn't have access to → appropriate error (403), not crash
Deep link preserves destination through login/signup flow
Entry Points:
From email → deep link works (different email clients: Gmail, Outlook, Apple Mail)
From SMS/iMessage → link opens app
From push notification → tap navigates to correct screen
From QR code scan → app opens to linked content
From social media (Facebook, Twitter in-app browser) → handles WebView behavior
From another app (e.g., Maps, Contacts) → link resolution works
Edge Cases:
Deep link to deleted/expired content → friendly "Content not found" screen
Deep link with extremely long URL (2000+ chars) → handled without crash
Deep link with encoded special characters → decoded correctly
Multiple rapid deep link taps → last one wins, no navigation stack corruption
Deep link during app update → behavior defined (queue or drop)
Universal Link opened in private/incognito mode → still works
Testing Approach:
Use xcrun simctl openurl for iOS simulator testing
Use adb shell am start -a android.intent.action.VIEW -d "URL" for Android
Verify AASA and assetlinks.json with Apple/Google validation tools
Test with actual messaging apps (WhatsApp, Slack) for real-world behavior"
Framework/Diagram
Deep Link Resolution Flow
┌────────────────┐
│ External Link │ (email, SMS, QR, notification)
└───────┬────────┘
│
▼
┌────────────────┐ ┌──────────────────┐
│ App Installed? │─NO─▶│ Deferred Deep │
│ │ │ Link Service │
└───────┬────────┘ │ → Store redirect │
│YES │ → Install │
▼ │ → First launch │
┌────────────────┐ │ → Route to dest │
│ Platform │ └──────────────────┘
│ Resolution │
├────────────────┤
│ iOS: AASA │
│ Android: Intent│
│ Fallback: URI │
└───────┬────────┘
│
▼
┌────────────────┐
│ Auth Check │
├────────────────┤
│ Logged in → Navigate to destination
│ Logged out → Login → Navigate
│ No access → Error page
└────────────────┘
Verification Commands:
iOS: xcrun simctl openurl booted "myapp://product/123"
Android: adb shell am start -d "https://myapp.com/product/123"
Web: curl -I https://myapp.com/.well-known/assetlinks.json
Worked Example
Scenario: Testing deep links for an e-commerce app
Test Case ID
Entry Point
Deep Link
Expected Result
DEEP-001
Email "Your order shipped"
myapp.com/orders/12345
App opens to order #12345 details
DEEP-002
SMS marketing
myapp.com/sale/summer
App opens to summer sale category
DEEP-003
QR code in store
myapp.com/product/SKU789
App opens to product page with Add to Cart
DEEP-004
App not installed
myapp.com/product/SKU789
App Store → install → opens to product
DEEP-005
Not logged in
myapp.com/account/settings
Login screen → after login → settings page
DEEP-006
Deleted product
myapp.com/product/DELETED
"Product no longer available" friendly page
Common Mistakes to Avoid
Only testing from the simulator command line — Real-world links from email/SMS apps behave differently
Forgetting the "not installed" scenario — Deferred deep linking is critical for marketing
Not testing authentication state — Deep links to protected content need login-then-redirect
Ignoring in-app browsers — Facebook/Twitter/LinkedIn open links in WebViews with restrictions
Missing AASA/assetlinks validation — Server misconfiguration silently breaks deep links
Follow-up Questions
"How would you test deep link attribution for marketing campaigns?"
"What happens when a deep link conflicts with a web route?"
"How would you test deep links during A/B tests or feature flags?"
"How would you handle deep link versioning when app navigation changes?"
Evaluate understanding of session management, token lifecycle, graceful expiration handling, and security implications of session policies.
Interview Answer
"Session expiry is a security mechanism that must be invisible when working correctly but graceful when triggered. Users should never lose work, and the transition to re-authentication must be smooth. I'd test both the security enforcement and the user experience.
Clarifying questions: What's the session duration (idle timeout vs. absolute timeout)? Is there token refresh? What triggers expiry — inactivity, absolute time, or both? What happens to in-progress work? Are there different policies for different security levels?
Risk analysis: Sessions that never expire are security vulnerabilities, abrupt expiry causes data loss, inconsistent expiry across tabs/devices confuses users, and expired tokens not properly rejected create authorization bypass.
Test design:
Idle Timeout:
Stay inactive for timeout duration → session expires, redirect to login
Activity resets the timer (click, scroll, type) → session extends
Activity in one tab → all tabs stay alive (shared session heartbeat)
Inactive for timeout-1 minute → activity → session continues normally
Warning shown 5 minutes before expiry ("Your session expires soon. Click to extend.")
Absolute Timeout:
Login → regardless of activity, session expires after absolute duration (e.g., 8 hours)
Verify absolute timeout cannot be extended by activity (security policy for sensitive apps)
Banking context: 15-minute absolute timeout regardless of clicks
Token Refresh:
Access token expires → refresh token silently obtains new access token (no user disruption)
Refresh token expires → user must re-authenticate
API call with expired access token during refresh → queued and retried after refresh
Refresh token stolen → rotation mechanism invalidates old refresh token
Graceful Expiration UX:
Session expires during form entry → work saved locally, restored after re-login
Session expires during file upload → upload paused, resumed after re-login (or lost gracefully)
Session expires with unsaved changes → prompt to save before redirect
Warning modal: "Extend session" button works, "Log out" button works
Warning modal countdown timer accurate
API-level Enforcement:
Expired session token sent to API → 401 Unauthorized (not 500 or success)
All API endpoints check session validity (no unprotected endpoints)
Expired token cannot access any resource (test multiple endpoints)
Assess ability to test authorization (not authentication), role-based access control (RBAC), attribute-based access control (ABAC), and the principle of least privilege across UI and API layers.
Interview Answer
"Permissions testing ensures users can only access what they're authorized to. I'd test both that authorized users CAN access resources and that unauthorized users CANNOT — at both UI and API levels.
Clarifying questions: What permission model — RBAC, ABAC, or custom? What roles exist (admin, manager, member, viewer)? Can permissions be customized per resource? Are permissions inherited (org → team → project)? Is there a super-admin/bypass role?
Risk analysis: Unauthorized data access (data breach), privilege escalation (user gains admin), horizontal privilege violation (user A accesses user B's data), and UI-only restrictions without API enforcement (bypassable).
Test design:
Role-Based Access (Vertical):
Admin role → can access all features (user management, billing, settings)
Member role → cannot access admin features (menu items hidden + API returns 403)
Viewer role → can read but not write/edit/delete
Each role tested against every feature → permission matrix verified
New feature added → verify it's restricted to appropriate roles by default
Horizontal Access Control:
User A accesses their own data → success
User A modifies API request to access User B's data → 403 (not 404 — debatable)
User A's list endpoint only returns their own resources (no data from other users)
Shared resource: User A shares with User B → B can access; User C cannot
UI vs. API Enforcement:
Restricted feature: button hidden in UI → also returns 403 from API
Verify you cannot bypass UI restrictions by calling the API directly
Test with curl/Postman using the user's token against restricted endpoints
Disabled buttons in UI → verify the action is also server-side rejected
Demonstrate understanding of feature flag lifecycle, testing flag states independently, gradual rollouts, and the complexity of flag-dependent interactions.
Interview Answer
"Feature flags add a dimension to testing — every feature now has multiple states, and the flag system itself needs testing. I'd approach this by testing the flag mechanism, each feature state, and the transitions between states.
Clarifying questions: What flag system is used (LaunchDarkly, Split, custom)? What targeting rules — percentage, user segment, geography? Kill switch capabilities? How are flags managed (dashboard, config file, API)? What's the flag cleanup strategy?
Risk analysis: Flag misconfiguration exposing unfinished features, flags creating inconsistent state for users, stale flags accumulating technical debt, flag-dependent code paths untested, and flag evaluation performance impact.
Test design:
Basic Flag States:
Flag ON → feature visible and functional
Flag OFF → feature hidden, no traces in UI, no API endpoints exposed
Flag default (no explicit value) → falls back to defined default (usually OFF)
Flag deleted from system → code uses hardcoded default, no crash
Targeting Rules:
Flag ON for 10% of users → verify approximately 10% see it (statistical test)
Flag ON for specific user segment (beta users) → beta users see it, others don't
Flag ON for geographic region (US only) → US users see it, EU users don't
Flag ON for specific user IDs → only those IDs affected
User moves between segments → flag state updates accordingly
Rollout Progression:
1% → verify no errors/crashes at scale
10% → monitor error rates, verify feature works
50% → load test at half capacity
100% → full rollout, final verification
At each stage: performance metrics, error rates, user feedback
Kill Switch (Emergency OFF):
Feature causing errors → toggle flag OFF → feature immediately disappears
Verify kill switch takes effect within seconds (not cached for hours)
Verify users mid-flow when flag toggles → graceful handling (not crash)
After kill switch: verify no partial state left (e.g., half-processed data)
Flag Interactions:
Flag A and Flag B both ON → test combined behavior (feature interactions)
Flag A ON, dependency Flag B OFF → verify graceful fallback
Multiple flags controlling same feature (override logic) → priority defined and tested
Flag controlling flag evaluation (meta-flags) → tested at all levels
Code Path Testing:
Verify both code paths (flag ON and OFF) have test coverage
No dead code when flag is permanently ON (cleanup verification)
Flag evaluation doesn't cause performance issues (evaluated per request? cached?)
Flag evaluation failures (service down) → fallback to safe default
Consistency:
Same user always sees same flag state within a session (sticky bucketing)
Flag state doesn't change mid-flow (e.g., start checkout with new UI, finish with new UI)
Logged out → logged in: flag state transfers correctly
Multiple devices: flag state consistent for same user
Testing Approach:
Unit tests: force flag value, test both code paths
Integration tests: test with real flag service, verify targeting
Staging environment mirrors production flag configuration
Monitor: flag evaluation metrics, error rates per flag state"
Framework/Diagram
Feature Flag Testing Matrix
┌────────────────────────────────────────────────────┐
│ Flag States to Test │
├────────────┬───────────────────────────────────────┤
│ ON │ Feature works correctly, no regression │
│ OFF │ Feature invisible, no side effects │
│ Partial │ % rollout works, targeting correct │
│ Transition │ ON→OFF and OFF→ON mid-session safe │
│ Default │ Service down → safe fallback value │
│ Interaction│ Multiple flags combined states │
└────────────┴───────────────────────────────────────┘
Rollout Testing Flow:
┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐
│ 1% │───▶│ 10% │───▶│ 50% │───▶│ 100% │───▶│Remove│
│canary│ │early │ │wide │ │full │ │flag │
└──┬───┘ └──┬───┘ └──┬───┘ └──┬───┘ └──┬───┘
│ │ │ │ │
Monitor Monitor Load test Final QA Code cleanup
errors metrics at 50% sign-off (remove flag)
Flag Lifecycle:
Created → Targeting Set → Tested → Rolled Out → Permanent → Removed
Worked Example
Scenario: Testing a "New Checkout" feature flag rollout
Test Case ID
Flag State
Steps
Expected Result
FLAG-001
ON (100%)
Complete checkout flow
New checkout UI, all functionality works
FLAG-002
OFF
Navigate to checkout
Old checkout UI, no traces of new design
FLAG-003
50% rollout
100 test users go to checkout
~50 see new, ~50 see old (±10% variance OK)
FLAG-004
Kill switch
Toggle OFF during active session
Graceful return to old UI, no data loss
FLAG-005
Targeting
Flag ON for "beta" segment only
Beta user sees new, regular user sees old
FLAG-006
Service down
Flag service unreachable
Fallback to OFF (safe default), no crash
Common Mistakes to Avoid
Only testing the "ON" state — The "OFF" state and transitions need equal coverage
Ignoring flag cleanup — Stale flags create maintenance burden and confusing test matrices
Not testing the kill switch — This is the safety net; it must work instantly
Missing flag interaction testing — Multiple flags can create unexpected combined states
Assuming flags are instant — Caching can delay flag changes; verify propagation time
Follow-up Questions
"How would you manage technical debt from accumulating feature flags?"
"How would you test a feature flag that controls a database migration?"
"What's your approach to testing flag-dependent A/B experiments?"
"How would you verify flag targeting rules are working correctly at scale?"
Evaluate understanding of theming, visual consistency, contrast requirements, dynamic switching, and platform-specific dark mode implementations.
Interview Answer
"Dark mode is more than inverting colors — it requires careful testing of contrast ratios, image handling, dynamic switching, and platform integration. A bad dark mode is worse than no dark mode at all. I'd test visual correctness, accessibility compliance, and transition behavior.
Clarifying questions: Is dark mode system-controlled, app-controlled, or both? Does it follow system preference automatically? Are all screens supported? What about emails, PDFs, and third-party components? OLED optimization (true black)?
Risk analysis: Unreadable text (white on light gray), invisible UI elements, images with transparent backgrounds looking wrong, inconsistent theming across screens, and accessibility failures (contrast below 4.5:1).
Test design:
Visual Correctness (Every Screen):
All text readable against dark background (no white-on-light-gray)
All icons visible (colored icons may disappear on dark backgrounds)
All interactive elements distinguishable (buttons, links, inputs)
Status indicators still meaningful (red/green/yellow on dark background)
Shadows and elevation still visible (different approach needed in dark mode)
Brand colors adapted (pure brand colors may need dark-mode variants)
Contrast & Accessibility:
Body text: minimum 4.5:1 contrast ratio (WCAG AA)
Large text: minimum 3:1 contrast ratio
Interactive elements: minimum 3:1 against adjacent colors
Use automated tools (axe-core, Colour Contrast Analyzer) across all screens
Disabled states still distinguishable from enabled
Focus indicators visible in dark mode (not just a light glow)
Images & Media:
Images with transparent backgrounds → verify against dark background (no invisible logos)
Demonstrate systematic approach to testing layouts across viewport sizes, understanding of breakpoints, and awareness of real-world responsive design challenges.
Interview Answer
"Responsive layout testing goes beyond resizing a browser window. I'd test at defined breakpoints, between breakpoints, with real content, and on actual devices — because responsive behavior involves touch targets, scrolling behavior, and performance differences that browser DevTools don't fully replicate.
Clarifying questions: What are the design breakpoints? What's the minimum supported width? Are there specific devices in the target market (tablets, foldables)? Is it fluid or adaptive layout? What about landscape orientation on mobile?
Risk analysis: Content overflow or truncation, overlapping elements, tiny touch targets on mobile, invisible elements pushed off-screen, and performance degradation from loading desktop assets on mobile.
Test design:
Breakpoint Testing:
Test at each defined breakpoint (e.g., 320px, 768px, 1024px, 1440px, 1920px)
Test at 1px below each breakpoint (767px) → previous layout style
Test at 1px above each breakpoint (769px) → next layout style
Verify transitions between breakpoints are smooth (no jump/flash)
Content Behavior:
Long text → wraps or truncates with ellipsis (not overflow hidden without indicator)
Long words/URLs → break-word applied (not breaking layout)
Dynamic content: card with 3 lines vs. 30 lines → layout handles both
Empty states → appropriate messaging at all sizes
Tables on mobile → horizontal scroll, or responsive restructuring
Navigation:
Desktop: full navigation bar visible
Mobile: hamburger menu, correct animation, all items accessible
Tablet: may use a different navigation pattern (sidebar + content)
Menu items with long text → handled at all widths
Navigation accessible by keyboard at all breakpoints
Touch Targets (Mobile):
All interactive elements minimum 44x44px on touch devices
Spacing between touch targets sufficient to prevent mis-taps
Hover-dependent interactions have touch alternatives
Dropdown/select elements large enough on mobile
Images & Media:
Images scale proportionally (no distortion)
High-DPI (retina) images served for appropriate screens
Large images don't block page load on mobile (lazy loading)
Videos resize proportionally, controls usable on small screens
Background images positioned correctly at all widths
Forms:
Form fields full-width on mobile (not tiny input boxes)
Labels above inputs on mobile (not inline if they don't fit)
Virtual keyboard doesn't obscure active input (scroll into view)
Form validation messages visible at all sizes
Multi-column forms collapse to single column on mobile
Orientation:
Portrait to landscape rotation → layout adapts immediately
Content doesn't disappear or overlap after rotation
Fixed elements (headers, footers) reposition correctly
Form in progress → data preserved through rotation
Assess ability to test live data systems including WebSocket connections, data freshness, visualization accuracy, and performance under high-throughput updates.
Interview Answer
"Real-time dashboards combine data accuracy, visualization correctness, WebSocket reliability, and performance under continuous updates. I'd test data integrity, update mechanisms, and behavior under stress.
Clarifying questions: What refresh mechanism — WebSocket, SSE, polling? What's the expected update frequency? What data visualizations — charts, tables, maps, gauges? How many concurrent viewers? Is there historical comparison?
Risk analysis: Stale data displayed as current (dangerous for monitoring), memory leaks from continuous updates, chart rendering lag under high throughput, WebSocket disconnection going unnoticed, and data inconsistency between dashboard and source.
Test design:
Data Accuracy:
Dashboard value matches source database/API query (cross-verify)
Aggregations (sum, average, count) are mathematically correct
Time-series data points match actual events (no missing data)
Percentages sum to 100% (or explained if they don't due to rounding)
Evaluate ability to test file handling, rendering pipelines, security concerns with user-uploaded content, and cross-platform display consistency.
Interview Answer
"Attachment previews involve rendering diverse file types securely in the browser or app. The challenge is supporting many formats while preventing security vulnerabilities from malicious files and ensuring performance with large files.
Clarifying questions: What file types are supported for preview (images, PDFs, documents, spreadsheets, videos, audio)? Is preview generated server-side or client-side? Maximum file size for preview? Is there a download fallback for unsupported types?
Risk analysis: Malicious files exploiting preview renderer, memory exhaustion from large files, incorrect rendering misleading users, missing previews for supported types, and slow generation blocking the UI.
Scenario: Testing attachment preview in a team collaboration tool (Slack-like)
Test Case ID
File Type
Test
Expected Result
ATTACH-001
JPEG (5MB)
Upload and view in chat
Inline preview, click to expand, zoom works
ATTACH-002
PDF (50 pages)
Upload and preview
First page renders < 2s, pagination available
ATTACH-003
SVG with script
Upload SVG containing <script>alert(1)</script>
Renders image, script NOT executed
ATTACH-004
200MB video
Upload and preview
Progress indicator, then video player with controls
ATTACH-005
Corrupted DOCX
Upload broken file
"Unable to preview" with download fallback
ATTACH-006
Unknown (.xyz)
Upload custom format
No preview, file icon + "Download" button
Common Mistakes to Avoid
Only testing with clean, small files — Real files are large, malformed, or potentially malicious
Ignoring SVG security — SVGs can contain JavaScript and execute in browser context
Not testing the fallback path — When preview fails, download option must work
Forgetting about EXIF orientation — Photos from phones often have rotation metadata
Missing performance testing — Preview generation for large files can block server resources
Follow-up Questions
"How would you test preview generation at scale (1000 files per minute)?"
"How would you handle preview for encrypted/DRM-protected files?"
"What's your approach to testing preview accuracy (does it look like the actual file)?"
"How would you test preview caching and invalidation?"
Q28How would you test a notification preference center?#
Objective
Test understanding of preference management, settings propagation, multi-channel coordination, and the interplay between user preferences and system behavior.
Interview Answer
"A notification preference center is the control panel for all user communications. It must accurately reflect current state, propagate changes to all delivery systems, and comply with regulatory requirements. I'd test preferences, propagation, and compliance.
Clarifying questions: What channels — push, email, SMS, in-app? What categories — marketing, transactional, security alerts? Can users set preferences per channel per category (granular matrix)? Are some notifications non-disableable (security)? Regulatory requirements (GDPR, CAN-SPAM)?
Risk analysis: Preferences not respected (user opted out but still receives), inconsistent state across channels, inability to unsubscribe (legal violation), and preferences reset on app update.
Test design:
Preference Display:
All notification categories shown with current state (on/off)
Current state matches actual backend preference (not cached stale state)
Evaluate understanding of data lifecycle management, soft vs. hard delete, retention policies, compliance requirements (GDPR right-to-erasure), and cascading deletion effects.
Interview Answer
"Deletion testing is more complex than it appears — data exists in multiple places (databases, caches, backups, search indexes, CDNs), and regulatory requirements demand different behaviors for different data types. I'd test both the user-facing deletion and the backend completeness.
Clarifying questions: Soft delete (reversible) or hard delete? What retention period before permanent deletion? Where does data exist (primary DB, replicas, search index, CDN, backups, logs)? What regulations apply (GDPR, CCPA, HIPAA)? What about shared data (messages sent to others)?
Risk analysis: Data persisting after user requests deletion (compliance violation), cascading deletes breaking related data, inability to recover from accidental deletion, and deletion not propagating to all data stores.
Test design:
User-initiated Deletion:
Delete a message → message disappears from sender's view
Delete a message → behavior for recipients (still visible? "Deleted message" placeholder?)
Delete all data (account deletion) → confirmation prompt with consequences explained
Undo period: within 30 seconds → undo successful, data restored
After undo period → data removed from view, enters retention period
Soft Delete & Recovery:
Deleted item moves to "Trash" / "Recently Deleted"
Item in trash still counts against storage? (product decision)
Recover from trash → item fully restored to original location
Trash auto-empties after retention period (e.g., 30 days)
Admin can recover items during retention period (support use case)
Hard Delete (Permanent):
After retention period → data permanently removed from primary database
Verify: direct database query returns no record (not just flagged)
Search index updated → deleted content not searchable
CDN cache purged → media files not accessible via direct URL
Backup retention: data exists in backups for X days (compliance documentation)
Cascading Effects:
Delete user → what happens to their content in shared spaces?
Delete conversation → all messages deleted? Or just membership removed?
All personal data purged within 30 days, confirmation sent
DEL-006
Cascading
Delete shared folder
All files inside deleted, collaborators notified, shares revoked
Common Mistakes to Avoid
Testing only UI-level deletion — Data often persists in databases, caches, search indexes, and backups
Ignoring shared data — When User A deletes their message, what does User B see?
Not verifying automatic retention enforcement — Scheduled deletion jobs must actually run
Forgetting about CDN and edge caches — Files can persist at edge locations after deletion
Missing the compliance angle — GDPR right-to-erasure has legal timelines and documentation requirements
Follow-up Questions
"How would you verify deletion across all microservices in a distributed system?"
"How do you handle deletion of data that's in offline backups?"
"What's your approach to testing anonymization vs. deletion?"
"How would you test the 'right to be forgotten' for data shared with third-party integrations?"
Q30How would you test an accessibility regression?#
Objective
Assess comprehensive knowledge of accessibility testing — automated scanning, manual verification with assistive technology, and building accessibility into the CI/CD pipeline to prevent regressions.
Interview Answer
"Accessibility regression testing ensures that new changes don't break existing accessible experiences. Since about 15-20% of the global population has some form of disability, and legal requirements (ADA, EAA, WCAG) apply to most commercial software, this is both a moral and business imperative. I'd combine automated scanning with manual assistive technology testing and embed it into CI.
Clarifying questions: What WCAG level are we targeting (A, AA, AAA)? What assistive technologies do our users actually use? What's the current accessibility baseline (passing or already has known issues)? Is there an accessibility design system/component library?
Risk analysis: Regressions in keyboard navigation trap users, broken screen reader announcements make features invisible, insufficient contrast makes text unreadable, and missing labels make forms unusable — all of which can trigger legal action.
Test design:
Automated Scanning (CI Integration):
axe-core / axe DevTools on every PR → fail build on new violations
Lighthouse accessibility score tracked over time → alert on regression (drop > 5 points)
Pa11y CI for page-level automated accessibility checking
Custom rules for project-specific patterns (e.g., all modals must trap focus)
Scan all page states: empty, loading, error, populated, interactive
Keyboard Navigation:
Tab through entire page → all interactive elements reachable
Tab order follows visual/logical order (no random jumps)
Focus indicator visible on every focused element (high contrast outline)
No keyboard traps (can always Tab out of any component)
Modal/dialog: focus trapped inside while open, restored on close
The CROSS Framework applies to every scenario question: Clarify scope → identify Risks → Outline test categories → Specify concrete cases → Summarize with automation strategy.
Multi-layer thinking is essential: UI testing alone is never sufficient. Every scenario requires testing at API level, database level, and across network conditions.
Platform awareness differentiates senior candidates: Understanding iOS vs. Android vs. Web differences in lifecycle, permissions, storage, and user expectations.
Security is always relevant: Whether testing a chat app or a dark mode toggle, senior engineers identify security implications (injection, access control, data exposure).
Accessibility is non-negotiable: Every user-facing feature must be keyboard navigable, screen reader compatible, and meet contrast requirements.
Performance degrades at scale: Features that work with 10 items break with 10,000. Senior engineers test at realistic scale.
Coverage Matrix by Question Category
Category
Questions
Key Skills Tested
Messaging & Real-time
2-6
State sync, offline handling, distributed systems
E-commerce & Payments
8-9
Financial accuracy, concurrency, compliance
Platform & Mobile
7, 10-12, 17-20
Platform APIs, lifecycle, fragmentation
Authentication & Security
1, 14-16, 21-22
Token management, attack prevention
Infrastructure & Config
23, 28-29
Feature flags, data lifecycle, preferences
UI & Accessibility
24-25, 27, 30
Visual testing, WCAG, assistive tech
Complex Flows
10-11, 13, 26
Multi-party coordination, real-time data
Interview Success Patterns
What distinguishes a senior answer:
Opens with clarifying questions (shows real-world experience)
Identifies 3-5 specific risk areas before diving into test cases
Provides concrete test cases with specific steps and expected results
Covers functional, security, performance, and accessibility dimensions
Mentions automation strategy and CI/CD integration
Acknowledges platform differences where relevant
Closes with what they'd monitor in production
What to avoid:
Generic answers ("I'd test positive and negative cases")
Only listing test categories without specific cases
Ignoring security or accessibility entirely
Not mentioning automation or CI/CD
Platform-agnostic answers for platform-specific questions
Not asking clarifying questions (assumes one-size-fits-all)