Test exports and downloads, from "does the file match the screen" to CSV in Excel (encoding, separators, leading zeros, formulas), PDFs, big asynchronous exports, download links and mobile, then hunt six bugs in a restaurant portal's CSV export.
35–55 min intermediate Mobile & web
Your progress
The accountant of a small restaurant chain exported last month’s orders, opened the file in Excel and sent the totals to the tax office. Three weeks later, the numbers didn’t add up. The export had included canceled orders, every name with “ć” looked like “ć”, and two catering orders over €1,000 had their amounts split across two columns, so the sum skipped them.
The export button “worked”: a file was downloaded every time. But an export is only as good as what the user can do with the file. This lesson shows what to check, from the first click to the file open in someone else’s software.
Every file inside, folder names, opening on Windows and Mac
The core check: file = what the user asked for
Compare the file with the screen, cell by cell, for a small and known set of data:
Scope. Selected rows only, the current page, or everything? With the active filters and search applied? The button label (“Export 12 orders”) must match the file.
Columns. The same columns as the screen, or a documented different set. No hidden internal fields (internal IDs, cost prices, other users’ emails).
Order. The same sort as on screen, unless the spec says otherwise.
UTF-8 is the standard encoding today. It can store every alphabet (č, ć, ß, Cyrillic, Arabic). A BOM (byte order mark) is a few invisible bytes at the very start of a file that say “this file is UTF-8”. Excel needs it; most other programs don’t care.
The separator Excel expects comes from the computer’s regional settings. Where the decimal mark is a comma (much of Europe), Excel expects semicolons between values, not commas.
You’ll also want a plain text editor (Notepad on Windows, TextEdit on Mac) next to Excel. It shows exactly what’s in the file, without any guessing.
Try the combinations below. Start with the defaults, then fix one thing at a time:
customers.csv · opened by double-click in Excel
File format
Excel’s regional settings
Separator in the file
The file in a text editor
Customer,Phone,Order ID,Total
Ana Ćirić,0641234567,202611090000001234,1240.50
Đorđe Šimić,0659876543,202611090000001235,86.00
Mila Novak,0601112223,202611090000001236,312.90
The same file in Excel
A
1
Customer,Phone,Order ID,Total
2
Ana Ćirić,0641234567,202611090000001234,1240.50
3
�orđe Šimić,0659876543,202611090000001235,86.00
4
Mila Novak,0601112223,202611090000001236,312.90
⚠ Letters like Ć, Đ and Š are garbled: Excel read the UTF-8 file in an old encoding. Adding a BOM tells it the file is UTF-8.
⚠ Everything is in one column: the file uses ",", but Excel in this region splits on ";".
The usual suspects
Problem
What the user sees
What the export should do
Encoding
“Ćirić” instead of “Ćirić”
Write UTF-8 with a BOM, so Excel knows the encoding
Separator
Everything in column A
Match the users’ region (semicolon where the decimal mark is a comma), or offer XLSX
Leading zeros
0641234567 becomes 641234567
Phone numbers, postcodes and IDs exported as text, or XLSX with text cells
Long numbers
An 18-digit order ID becomes 2.02611E+17 (Excel’s short form for a huge number) and the last digits are lost
Same: as text. Excel keeps only 15 significant digits.
Dates
03/04/2026 read as March 4 in one region and April 3 in another
An unambiguous format such as 2026-04-03, and a stated time zone
Commas, quotes, line breaks in values
“Blue Harbor, d.o.o.” splits into two columns
Quote such values: "Blue Harbor, d.o.o.", and double any quotes inside
Numbers with formatting
“1,240.00” splits into two cells or stays text
Plain numbers in the file (1240.00), formatting only in XLSX
Meta: the file name and the document title (shown in the browser tab) make sense, such as Invoice-2026-0412.pdf.
XLSX, calendar files and ZIP
XLSX: numbers are numbers (you can sum them), dates are dates, IDs are text. Sheet names are readable. Formulas, if any, work. The file opens in Excel, LibreOffice, Google Sheets and Numbers.
ZIP: every expected file is inside, file names with spaces and accents survive on Windows and Mac, and the archive isn’t empty when there’s nothing to export.
Check this part
An invoice PDF shows empty boxes instead of "ć" and "đ". What is the likely cause?
PDFs embed fonts. If the font lacks a character, it shows as a box or a question mark.
A 60-row table in a PDF continues on page 2. What should page 2 have?
Readers need the headers on every page, and rows must not be split across pages.
What to check in PDFs (letters, page breaks, totals, page size), XLSX, calendar files and ZIP archives.
It completes, or the app switches to a background job instead of timing out
Feedback
The user knows it’s being prepared, and where it will arrive
Clicking Export twice
One click, one export. No duplicate jobs or two identical emails.
Cancel and leave
Closing the page doesn’t lose a background job
Failure
A clear message and a way to retry, not an email with an empty file
Download links
The link in “Your export is ready” points to a file full of business or personal data. Test it like any access control (see Security Testing in Depth):
Open the link while logged out, or as another user. Expected: login required or access denied, unless the team decided on a secret link that expires.
Open it after it should expire. Expected: a clear “This link has expired” with a way to export again.
Meaningful:orders_2026-11-09.csv, not export.csv, download or orders_undefined.csv.
Safe characters: a name taken from user data (“Blue Harbor, d.o.o. / Novi Sad”) must not break the download or create folders. Test spaces, slashes, accented letters and very long names.
The right extension, and a file type the OS recognises, so a double-click opens the right app.
Dev note
The browser decides how to handle the response from two headers: Content-Type (for example text/csv; charset=utf-8) and Content-Disposition: attachment; filename="orders_2026-11-09.csv". Without attachment, a PDF or text file may open in the tab instead of downloading. Names with non-English letters need the filename*=UTF-8''… form. You can see both in DevTools › Network.
Phones and in-app browsers
iOS: downloads from Safari go to the Files app (Downloads). Apps often use the share sheet instead (“Save to Files”, “Mail”). Check that the file arrives and opens.
Android: files go to the Downloads folder and a notification appears. Check opening from the notification.
In-app browsers (a link opened inside Instagram, Gmail or your own app’s web view) often can’t download at all. The button must not silently do nothing: offer to open in the browser.
Slow and lost connections: a download that fails halfway should show an error, not a broken file that looks complete.
Check this part
You open an export's download link in a private window, not logged in, and the file downloads. When is that a bug?
Export files contain business or personal data. Access must be checked, or the link must be secret and short-lived by design.
A user taps Export inside your app's web view, and nothing happens. What should the app do?
In-app browsers often can't download files. The user needs a working path, not a silent failure.
Big exports that run in the background, download links and who can open them, file names, and downloading on phones and in in-app browsers.
Part ProNot started
Lab: find the bugs
This is a test build of the QuickBite Partner portal, where restaurants see and export their orders. Export the list, then use the demo’s Open in Excel and Open in a text editor views to look at the file both ways (no software needed). Compare both with the screen. Try the filters too.
Nothing downloaded yet. Press Export in the portal.
1
Hint: Filter by Refunded, then export. Read the button label and count the rows in the file.
The export ignores the status filter
The button says Export 2 orders, but the file always contains all 6. Expected: the export applies the active filter (or the button says clearly that it exports everything).
2
Hint: Compare Ana Ćirić and Đorđe Šimić in Excel and in the text editor.
Accented names are garbled in Excel
The text editor shows the names correctly, so the file is valid UTF-8. Excel shows Ćirić because the file has no BOM and Excel guesses an old encoding. Expected: UTF-8 with a BOM, or an XLSX option.
3
Hint: Look at row 6 in Excel, then at the same line in the text editor.
The €1,240 order is split across two columns
The total is written as 1,240.00 without quotes, so the comma becomes a separator: 1 lands in the Total column, 240 in Status, and "delivered" in a sixth column. A sum of the Total column is wrong by €1,239. Expected: plain numbers in the file (1240.00).
4
Hint: Compare the time of order #48204 on screen and in the file.
The order placed after midnight shows the previous day
The portal shows 2026-11-09 00:30 (Belgrade time), the file says 2026-11-08 23:30: the export uses UTC (the world reference time, one hour behind Belgrade in winter) without saying so. A daily report built from the file puts the order on the wrong day. Expected: the same time zone as the screen, or a column header that states it.
5
Hint: Look at order #48203 in Excel.
A customer name runs as a formula in Excel
The customer typed =HYPERLINK(…,"Refund form") as their name. In Excel it becomes a clickable Refund form link to an outside site. This is CSV injection. Expected: values starting with = + - @ are neutralised, for example with a leading apostrophe.
6
Hint: Read the name of the downloaded file.
The file name contains "undefined"
Every export is called orders_undefined.csv: the date part of the name is missing. Several exports overwrite or pile up as "(1)", "(2)". Expected: a meaningful name such as orders_2026-11-09.csv.
Some things are right, and worth noticing: Blue Harbor, d.o.o. is correctly quoted and stays in one cell, and the rows keep the newest-first order from the screen.
Check this part
Why compare the file in Excel and in a text editor?
If the text editor is right and Excel is wrong, the problem is how Excel reads the file, which the export can still fix (BOM, quoting, types).
The €1,240 order split into two columns. Why is that more than a cosmetic bug?
Users calculate with exported data. A shifted amount silently breaks every total.
A restaurant portal's order list with a CSV export, the file opened in Excel and in a text editor, and six bugs to find.
The rest of this lesson is in Bugwise Pro
The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.
What you need: a test account in a test environment where you can create your own records (the known edge data from the first part), Excel on Windows and, if possible, on a Mac, a plain text editor, and a second user account for TC-EXP-008.
TC-EXP-001The export matches the filtered and sorted screenpositivehigh