A fictional loan-processing portal, run by a small NBFC in Jaipur, lets applicants upload KYC documents: identity proof, address proof, a salary slip. The feature was marked done in a day. The test case said, “Upload a PDF; it appears in the list.” It passed. Three weeks after launch, support is receiving about forty complaints a week, and no two are quite the same. Let us walk through what those complaints look like, because each one is a test idea.

The file that is not what it says it is

Ramesh uploads his Aadhaar copy, saved from WhatsApp as a JPEG, and gets “invalid file type”. His phone has named it with an uppercase extension, .JPG, and the check looks for lowercase only. Another applicant renames a Word file to end in .pdf and it is accepted, then breaks the preview.

Two lessons. Extension matching must be case-insensitive and cover real variants such as .jpeg and .jpg. And the extension is only a label: the browser’s declared content type is also just a claim made by the sender. A careful server inspects the file’s actual leading bytes to decide what it is. Test with a mismatched pair in both directions, a genuine PDF given a wrong extension and a fake given a right one, and expect a clear refusal in the second case.

Security belongs here too, in outline. An upload feature accepts content from strangers, so check that executable or script files are refused, that files are stored outside any folder the web server runs code from, and that stored names are generated by the system rather than copied directly from the user. Work with your security team on the detail; as a tester you check that the refusals happen.

Size, emptiness and the limit nobody agreed on

The portal’s limit is 2 MB, stated in the help text. A scanned salary slip at 2.1 MB gets rejected, but how? In one browser the progress bar completes and then nothing happens. The limit lives in three places: the page’s script, the application, and the web server or proxy in front of it, and nobody checked that they agree. When they disagree, the user sees a generic server error instead of a message.

Boundary tests for files are the same as for numbers: a file just under the limit, exactly at it, and just over it, plus a zero-byte file, which is a favourite way for a half-failed save on someone’s phone to appear. Also try a number of files at once, and the same file twice. Does the second replace the first, add a duplicate, or get refused?

Names with spaces, accents and scripts

Lakshmi’s file is called சம்பளம் slip (final) 2.pdf. It uploads, but the download link returns “not found”. The name contained non-Latin characters, spaces and brackets, and somewhere the encoding was handled inconsistently between saving and serving. Test names with spaces, brackets, apostrophes, a very long name of 200 or more characters, non-Latin scripts, and two dots such as report.final.pdf. Also two different users uploading a file with the same name must not overwrite each other. Indian users meet these cases daily, because phones generate names in the user’s own language and with copy numbers.

When the network misbehaves

Another applicant on a train loses signal at 80 percent. What does the portal now hold? A partial file counted as uploaded is worse than nothing, because a reviewer will open a corrupt document. Throttle the connection in browser developer tools, cut it mid-upload, and check four things: the user sees a failure, the partial data is discarded, retrying works without leaving a ghost entry, and cancelling mid-way really stops the transfer.

Large files raise timeout questions. If a 50 MB upload takes 4 minutes on a slow link and the server’s request timeout is 60 seconds, the feature works in the office and fails at home. Where big files are supported, look at whether the system uploads in chunks and resumes, and what happens when the session expires halfway through.

The download side

Downloads fail differently. The reviewer clicks a PDF and it opens in the browser tab when they wanted it saved, or the reverse. That is decided by response headers, including one that sets the disposition (inline or attachment) and the suggested file name. Check that the saved name is meaningful and not an internal ID like f83a12.pdf.

The check that matters most is authorisation. If Ramesh’s document lives at a link containing a sequence number, can another logged-in applicant change the number and read it? This is a classic access control flaw, and it appears in download features far more than testers expect. Try a document ID that belongs to another user, a link after logging out, and a link after the application is closed, and expect a refusal in each.

Verify the content as well as the click. Download the file and compare its size and checksum with what was uploaded. For generated files such as statements or Excel reports, open them and check the number formats, the date format, and that Indian grouping or long numbers such as account numbers have not been turned into scientific notation by the spreadsheet.

What happened to the forty complaints

Back at the NBFC, a tester spends one afternoon with a list built from the complaints: case variants, a zero-byte file, a 2 MB boundary, non-Latin names, a dropped connection, an ID-guessing attempt. Seven of those fail. Fixing them takes a few days of developer time. The original test case, one PDF in and one row in the list, stays in the suite as the smallest of a dozen.

Dull features deserve a checklist because they are repeated on every project, which also means the checklist can be reused.

Figures and names in the examples are illustrative.

Leave a Reply

Trending