Files, imports and exports
Data often leaves and enters an app as a file. Test the round trip, the awkward characters and the bad lines, not just a tidy sample file.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: packing a box to send abroad. The contents must fit the customs form. When the box arrives, the unpacked goods must match what you packed.
Daily List is a to-do list app. Lily wants to take her lists to another app. She presses Export and gets a file. Later she presses Import to bring it back. Tom, the tester, follows the whole trip.
An export saves data from the software to a file. An import brings data into the software from a file. The file is often a comma-separated values (), a text format with comma-separated fields and logical records. A quoted field can contain a line break, so one record may span several physical lines.
Tom exports his lists, opens the file, edits one line and imports it again. Then he checks that nothing was lost, nothing was doubled and the edit arrived.
The picture has a limit. A customs form is checked once at the border. A file may be edited by anyone on the way, so the app must cope with whatever comes back.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- unpacked
- opened out so the parts can be seen
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Making sure data survives the trip into and out of a file.
- Pack with an export
- Send the file
- Unpack with an import
- Compare the goods
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Packing a box | Export |
| Unpacking the box | Import |
| Customs form | The file rules, such as quoted commas |
| Checking the goods match | Round trip check |
WHERE THIS PICTURE STOPS
- A customs form is checked once. A file can be edited on the way.
- Text representation can change through encoding or approved normalization; compare against the declared semantic mapping.
- A box is unpacked by a person. An import is read by a program.
HOOK
Pack, send, unpack, compare.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
After the round trip, check three things: nothing lost, nothing doubled, the edit arrived.
| In the trick | What it stands for |
|---|---|
| nothing lost | Tom checks that nothing was lost |
| nothing doubled | Nothing was doubled after he imports it again |
| the edit arrived | The edit arrived |
TELL A FRIEND
Packing a box for abroad and checking the goods match when it is unpacked. Export, import, compare.
OFTEN MIXED UP WITH Designing test data. The lesson says how to choose values. This lesson uses them in files.
PRACTISE AND KEEP
Sources for this topic — 13 sources
- Market practice
Common Format and Multipurpose Internet Mail Extensions (MIME) Type for Comma-Separated Values (CSV) Files (Request for Comments 4180) ↗ — IETF · CSV has an optional header line, records separated by line breaks, quoted fields for commas and line breaks, and doubled quotes; there is no single master specification, so programs differ (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Request for Comments (RFC) 4180, October 2005. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Defect 41434: CSV import fails for quoted fields containing line breaks (Redmine issue tracker) ↗ — Redmine project · A real defect report: an import failed when a quoted field held a line break and the file used Windows line endings (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Open Worldwide Application Security Project cheat sheet series: input validation ↗ — Open Worldwide Application Security Project (OWASP) · Input from users, including uploaded content, should be validated on the server (registry entry)
Search excerpt, page not opened: returned by WebSearch on 2026-10-18. The excerpts did not use the phrase as early as possible in the data flow, so this site does not quote it. It is guidance for software in general, not for payments.
V34 review, 6 November 2026: Read complete official repository sheet. Syntax, semantic business rules, server checks and safe handling of legitimate Unicode/punctuation have distinct roles.
- Market practice
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Test data and boundary ideas used to pick file cases (confirmed against the syllabus, read in full text from a mirror copy of the publisher PDF, v4.0.1, 15 September 2024)
v4.0.1 is dated 15 September 2024 and is a list of corrections to v4.0 (21 April 2023) that reworded six learning objectives — not a cosmetic reissue. 78 pages.
Two traps this entry exists to stop. v4.0.2 is the German edition (1 March 2025, 94 pages), so sorting by version number reaches the wrong document. And the widely-repeated per-chapter question allocation "8 / 5 / 4 / 11 / 9 / 3" is wrong: it is 8 / 6 / 4 / 11 / 9 / 2, derived from three official sample-exam answer keys and confirmed against the Exam Structure Tables.
The single most consequential detail for a question bank: white-box coverage — statement and branch — is K2 "Explain", not K3 "Apply" (FL-4.3.1, FL-4.3.2, FL-4.3.3), and MC/DC, path and condition coverage are declared out of scope in §4.3. A question asking a candidate to compute branch coverage is testing something this syllabus does not.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read from two independent PDF-to-markdown conversions mirrored on raw.githubusercontent.com. They are treated as faithful because they were produced by unrelated parties with different tooling, agree on the full 64-item objective set including wording, and reproduce the same internal inconsistency present in the source PDF. Chapter 1 reads "testware that supports" where Appendix B reads "that support". A conversion artefact does not replicate across two toolchains.
The licence permits attributed non-commercial extracts and use as the basis for articles. Whether a site that sells a pass may rely on that is an owner's decision, not this entry's.
7 November 2026 review: actual publisher PDF 4.0.1, 15 September 2024, 78 pages, front matter/copyright and relevant numbered operative sections 0.5–0.10 and chapters 1–6 compared with CTFLpractice lessons. Earlier mirror/search descriptions are historical access records. TheK2 white-box objectives require explanation; the source does not justify a categorical ban on small numeric illustrations that support explanation. Later Exam Rules 1.2§4.1.4 usesK2 for keyword definitions, while syllabus§0.5 usesK1; keep dated scopes distinct. No copied questions or figure assets.
- Market practice
Character encodings for beginners (World Wide Web Consortium Internationalization) ↗ — World Wide Web Consortium (W3C) · Peter Hilton 'CSV and Excel' and Splashtop leading-zeros article (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Article, updated April 2015. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
CSV and Excel (Peter Hilton) ↗ — Peter Hilton · Peter Hilton 'CSV and Excel' and Splashtop leading-zeros article (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
How to preserve leading zeros when opening CSV files in Excel (Splashtop) ↗ — Splashtop · Peter Hilton 'CSV and Excel' and Splashtop leading-zeros article (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Import or export text (.txt or .csv) files (Microsoft Support) ↗ — Microsoft · Peter Hilton 'CSV and Excel' and Splashtop leading-zeros article (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Keeping leading zeros and large numbers (Microsoft Support) ↗ — Microsoft · Peter Hilton 'CSV and Excel' and Splashtop leading-zeros article (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Import or export text (.txt or .csv) files (Microsoft Support) ↗ — Microsoft · Official text import options in Excel (search excerpt, page not opened)
Found through a web search; the page was not opened (pending verification: official page not opened and not searched (web-search limit reached before the check); URL is the publisher's known address). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Common Format and Multipurpose Internet Mail Extensions (MIME) Type for Comma-Separated Values (CSV) Files (Request for Comments 4180) ↗ — IETF · RFC4180 InformationalOctober2005 complete1/2/3/5 and current update metadata read7November2026: optional header, logical records, quoted embedded commas/newlines and doubled quotes. One common format, not every dialect.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Request for Comments (RFC) 4180, October 2005. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Combining Queries: UNION, INTERSECT, EXCEPT (PostgreSQL documentation) ↗ — PostgreSQL Global Development Group · Complete PostgreSQL18 section7.4 CombiningQueries read7November2026 at /docs/current/queries-union.html served18: ordinary EXCEPT removes duplicates; EXCEPT ALL/multiplicity checks differ. No PostgreSQL runtime certified here.
PostgreSQL18 publisher documentation opened on6November2026: §7.4 UNION/INTERSECT/EXCEPT and ALL. No execution on PostgreSQL is claimed; engine-specific examples remain scoped to18.
- Market practice
RFC7111 — text/csv media registration update ↗ — RFC Editor, independent submission · RFC7111 InformationalJanuary2014 front/1/1.1/5/5.1/6 and complete current IANA text/csv registration read7November2026. Updated registration recommends explicit charset, UTF8 assumption when absent; no confidentiality/integrity or all-spreadsheet guarantee. Fragment syntax2–4 not read.
Informational memo, not Internet Standards Track. Current complete IANA https://www.iana.org/assignments/media-types/text/csv corroborates registration. Only named units read under V72 gate01d542c62; no figure rights or current Excel certification.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.