Skip to content
Testaroo
dbf761 B

DBF: dBase / xBase Table

The employee table as a dBase (DBF) file: the venerable xBase table format still emitted by GIS tools and legacy databases. For testing DBF readers and DBF→CSV conversion.

Preview: schema + first 5 rowsdbf
idint64namestringemailstringdepartmentstringactiveboolscoredoublejoineddate
1001Ada Lovelaceada.lovelace@example.comEngineeringtrue98.52021-03-01
1002Alan Turingalan.turing@example.comResearchtrue952020-06-15
1003Grace Hoppergrace.hopper@example.comEngineeringfalse91.22019-11-20
1004Katherine Johnsonkatherine.johnson@example.comOperationstrue96.82022-01-10
1005Edsger Dijkstraedsger.dijkstra@example.comResearchfalse89.42018-09-05
Decoded table: all 5 rows shown.

Specifications

Rows
5
Columns
7
Format
dBase III (DBF)
Fields
6

Testing contract

Expected to pass
Scenario
Exercise DBF: dBase / xBase Table in its binary workflow. The employee table as a dBase (DBF) file: the venerable xBase table format still emitted by GIS tools and legacy databases.
Expected result
5 rows of 107 bytes, 6 fields; fields=ID:N, NAME:C, EMAIL:C, DEPT:C, ACTIVE:L, SCORE:N; deleted rows=0. Declared feature checks: columns=7; fields=6.

What is a .dbf file?

A dBASE table (.dbf) is a legacy binary tabular format with a fixed-width header describing columns (name, type, length) followed by fixed-length records. It persists today as the attribute table of GIS shapefiles and in legacy database exchange.

How to use this file

Use an example .dbf file to test dBASE/xBase readers, shapefile attribute parsing, and DBF-to-CSV conversion.

How to use this file for testing

“DBF: dBase / xBase Table” is a deterministic Testaroo fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: 5 rows · 6 fields · 7 columns. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

Data fixtures document their exact quirks (delimiters, encodings, null handling, schema, and row counts) in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

Generated by generation/data_binary.py. Free for any use, no attribution required, license.