What would you automate for a file upload during a thirty-minute interview exercise, and what would you leave manual?
Answer
Before automating, begin by asking a few high-value questions, stating assumptions and building a compact risk model aloud. Cover filename, size and declared versus detected type; empty and malformed content; authorization; malware scanning; interrupted or resumed transfer; storage failure; duplicate submission; progress and cleanup. Time-box clarification and modelling, demonstrate the highest-risk happy path plus representative boundaries, misuse and recovery, and explain what the remaining time would cover next. Use user goals, invariants, comparable behavior and observable state changes as the oracle, control data and dependencies enough to reproduce failures, and finish with observed evidence, residual risk and the next most valuable check.
Strong answer includes
- covers content validation, security and interrupted transfer
- adapts evidence to the constraint: during a thirty-minute interview exercise
- states assumptions and questions
- prioritizes before listing cases
- measurable evidence and residual-risk statement
Practical example
In a time-boxed exercise, the candidate automated the straightforward cases, valid file accepted, oversized file rejected, and left manual testing for the trickier interrupted-upload-and-resume case, since reliably simulating a mid-upload network drop wasn't worth the setup time in thirty minutes.