Test Data Sets
What a Set is
Section titled “What a Set is”A Test Data Set is the unified shape that holds every kind of test data OttoTester cares about: seed users for a registration test, the values an assertion checks against, files for an upload fixture, a bank of credentials a load test claims one row at a time.
It’s a flat matrix:
- Columns describe the data shape — name + type (
string,number,boolean,date,file). Each column has an optional default and an optionalsensitiveflag. - Rows are the data. Cells are editable in place; the matrix grows with
+ Add rowat the bottom. $CONSUMEDis the first column on every Set — system-managed, locked against rename / retype / delete. Per-row boolean that tracks whether a row has been claimed by a single-use binding.
Why one shape
Section titled “Why one shape”Earlier, OttoTester carried several different shapes of test data with overlapping responsibilities — operators had to pick which shape at create time, before knowing which one they actually wanted. The Test Data Set drops that choice: every Set is the same matrix; how the test reads from it is configured on the binding, not the Set.
The catalog
Section titled “The catalog”Test Data → opens a flat catalog of every Set in the workspace. Search filters by Set name OR any column name; sort by name, row count, or last modified. + New Set creates an empty matrix with a name prompt and lands you in the editor.
Import from another variant
Section titled “Import from another variant”When you set up a second variant of an app, such as hosted dev next to your laptop, you don’t have to build its Test Data again. On the new variant’s Test Data page, click Import from another variant and pick the variant to copy from. The list shows only this app’s other variants, each with its address.
The import copies:
- The other variant’s own Sets, with their columns, rows and uploaded files. A single-use Set’s copy starts with every row unused. Sets that belong to no variant aren’t copied, because any variant’s tests can already use them.
- Its credentials, for any role this variant doesn’t have yet. A credential with several roles brings only the roles that are missing. Passwords stay encrypted. A sign-in page under the other variant’s address moves to the same page under this one’s. A sign-in page on another site, such as an outside sign-in provider, stays as it is.
Then change what differs, such as a password on hosted dev. A copied Set shows Copied from and the variant’s name under its own name.
You can import again at any time. Nothing is copied twice. A column the other variant’s Set has gained since is added, with its values, and any value you changed here is kept. If an import stops partway, what finished stays, and importing again copies the rest.
Importing from a production variant copies its passwords to a variant more people use, so you type the production variant’s name first. Only people who can change Test Data can import, and credentials come along only for people who can change credentials. Each import is recorded in the audit log.
If this variant already has its own Set for a form (see the next section), an import or a copy of tests uses that Set instead of making a second one. It adds only the columns that Set lacks, and keeps this variant’s values.
Make a Set from a form schema
Section titled “Make a Set from a form schema”Many teams define long forms in JSON Schema files, the format a form library builds each form from. If yours does, you can turn each form’s schema into a Set in one step instead of copying its fields by hand.
On the Data Sets tab, click Import form schema and drop one or more JSON Schema files. OttoTester reads standard JSON Schema (draft 2020-12 or draft-07, and a file that names no draft is read as 2020-12). A file can also hold one schema inside it, such as a form saved from an app’s API. Nothing is saved until you click Make Sets. Before that, each file shows:
- a name for its Set, which you can change. It starts as the schema’s title, else a name beside it in the file, else the file’s name;
- the form’s version, when the file gives one;
- how many fields, always-required fields and example rows it has, and how many values OttoTester will make up;
- whether it makes a new Set or updates one.
Columns. Each field a person fills in becomes a column, named by its path in the schema joined with --, such as contact_person--first_name. A list’s first item gets columns, written [0], and the others don’t. A field marked read-only gets none. A column’s type follows the field: text, a number, yes/no, a date, or a file. A field with no type gets a text column, and the preview lists those fields.
Rows. Each whole-form example in the schema (its examples) becomes a row. A cell an example leaves empty takes the field’s default, else its own example. A field that is always required and still empty gets a value OttoTester makes up to fit its rules, and its column is marked Please confirm. An optional field, or one required only after certain answers, stays blank. File fields and ids the app assigns (format uuid, such as an uploaded attachment’s) stay blank too, so a test uploads its own file.
How the page names each field. If your form’s fields carry an id or test id made from the schema, pick the pattern, such as the path joined with -- or root_ and the path joined with _. A Create Tests run that uses the Set then fills each field by that id instead of matching labels, which can repeat on a long form. With Let OttoTester find each field, it finds each field by its label, as it does for any other Set. A Set keeps the choice it was made with.
On the Set’s page, each column from the form shows the field’s label and a Required tag when the field is always required. Hover over the header to see the field’s id on the page and its rules, such as a length limit or a list of allowed values.
A new version of the form. Click Update from form schema on the Set’s page and drop the newer file. Or drop it on the Data Sets tab: a file is matched to its Set by an id in the file (the schema’s $id, or an id such as form_id beside it), never by its name. A file with no id always makes a new Set from the Data Sets tab, so update it from its Set’s page. Before saving, the update lists the new fields, the fields no longer in the form, and the fields whose rules changed. Then:
- new fields become columns, filled the same way as a new Set’s;
- a field no longer in the form keeps its column, marked Not in the form, so tests that read it keep working until you delete it;
- every value you edited is kept, even in a column you renamed.
Nothing is saved if a field’s type changed and some of its values no longer fit, or if the Set changed after you opened the preview. The message says what to do.
A file is left out, never half imported, when OttoTester can’t read all of it: it isn’t JSON or holds no form, it is over 2 MB, it and the files it uses come to over 4 MB together, a reference in it points nowhere or back to itself, a field can be two different kinds of value, it nests more than 10 levels deep or has more than 500 fields, or two fields would get the same column name. The other files still import. References are followed only between the files you add; OttoTester never fetches a schema from the internet.
Only people who can change Test Data can import or update a form schema. Each one is recorded in the audit log, with the form, its version and the Set.
Fields that appear after an answer. Many forms ask for more only after certain answers: a state and zip code once the country is the United States, or a “specify” box once you pick Other. When the schema says so plainly, the column’s tooltip names the answer. If a row’s own answers open such a field, that row gets a value for it too, marked Please confirm.
Create Tests with a Set made from a form schema
Section titled “Create Tests with a Set made from a form schema”Pick the Set on the Create Tests template, as with any Set. The run then sees the whole form: every field in order, with its label, its field id on the page, whether it is always required or only after an answer, and its allowed values and limits.
Besides the main path, which uses the Set’s first row, the run plans one extra test for each answer that opens more required fields, such as “when Country is USA”. Each extra test gives that answer and fills the fields it opens. Because the Set’s first row gives the main path’s answer, each extra test gets its own Set, named after the test, made from the first row’s values with that answer. Edit its values there: later edits to the form’s Set, and new versions of the form, don’t reach it.
A run plans at most five extra tests per Set (MAX_FORM_PATH_TESTS, if you run your own copy). The answers that open the most fields come first. An answer is skipped, and named in the run’s log, when there are more than the limit, when the schema’s condition isn’t one answer OttoTester can give (such as “anything but X”), or when its fields don’t all fit in what the run is shown of a very long form.
Rows the form should refuse
Section titled “Rows the form should refuse”A form’s schema also says what the form must refuse: a required field left empty, a value that isn’t on a field’s list, a value over a field’s length limit, or an email address or date of the wrong shape. Select Also make a Set of rows the form should refuse when you import or update a form schema, and OttoTester makes a second Set, named after the first with “: should be refused” added, such as “SF-424: should be refused”.
It has one row per rule. Each row starts from the first row of the form’s Set, which must meet every rule, and breaks exactly one of them. The row’s label names the field and the rule, such as “First Name (contact_person–first_name) left empty”. On the Set’s page, the cell the row breaks is marked in red. A field required only after an answer gets its answer first, and the fields that answer opens get values that fit. Those cells are marked too.
Some rules get no row, and the dialog says which and why:
- a field required only after an answer the schema doesn’t give plainly;
- a rule that can’t be broken alone, such as a value one character too long for a field that also has a list.
If the first row breaks a rule, no rows are made, and the dialog names the cell to fix. Every row would otherwise fail for the wrong reason. OttoTester doesn’t fix the cell for you, since any fix would be a guess. An update to the form itself is still saved.
Pick it in Create Tests like any Set. The run plans one test that fills the form with a row, submits it, and checks that the form refuses it with an error at the field that row breaks. Run it on every row, and each row checks its own field. A row you add yourself is expected to be refused too; the test checks only that the form doesn’t accept it.
A new version of the form. Update the form’s Set with Also make a Set of rows the form should refuse selected (it starts selected when the Set already has one). The rows are made again from the new rules. A row whose rule is still in the form keeps your edits to its other cells and any label you gave it. A row whose rule is gone is removed, and rows you added yourself stay. Clear the checkbox to leave that Set as it is.
A Set of rows to refuse gets at most 200 rows (MAX_REFUSED_ROWS, if you run your own copy). Always-required fields come first, and the dialog says how many rules got none.
The matrix editor
Section titled “The matrix editor”Click a Set from the catalog to land in the editor.
- Click any cell to edit. The change saves on blur.
- Click a column header (except
$CONSUMED) to rename, retype, set the default, or delete the column. - + Add column opens a tiny modal — name + type + optional default + the sensitive toggle.
- Upload CSV opens the import modal (see below).
- Export CSV downloads the Set as CSV with the
$CONSUMEDcolumn included.
Columns OttoTester adds for you
Section titled “Columns OttoTester adds for you”A test should type every value from its Test Data, so it works on any environment once you fill the Set in for that environment. Sometimes a test needs a value its plan didn’t name, such as an employee to pick from a list or a date range to filter by. When OttoTester writes or fixes the test, it adds that value to the test’s own Set as a new column, and the test reads it from there instead of keeping it in its code.
- The new column holds the value the test used, as the column’s default, so every row has it. Rows you already edited keep your values.
- The test’s plan lists the new field too, so you can see every value the test enters.
- On another environment, change the column’s value to one that exists there.
OttoTester adds these columns without asking only to a Set it made. When a Create Tests run writes a test that reads a Set you picked, the column is added to that Set and marked Please confirm (see Use a Set you made in Create Tests). Otherwise, for a Set you made, the new field shows up as a pending change instead, for you to add or map.
Input variations
Section titled “Input variations”When you turn on Add input variations on the Test Authoring Template, OttoTester fills the Set with more than the usual one row. For each field a test types into, it adds a row for every distinct kind of value the field accepts — each option in a dropdown, the smallest and largest allowed number, common formats — so one test can be checked against many inputs.
You’ll see two things in the editor:
- A Covers column that names what each row is for (“Shipping method: express”, “Quantity: largest (999)”). It’s just a label — rename it or delete the row like any other. Your test’s own columns stay unchanged.
- A Please confirm badge on any row whose value OttoTester had to guess (a value it couldn’t read straight from the page or your uploaded docs). Check the value, fix it if needed, and click the badge to clear it.
These extra rows are added, not run automatically. To try them all in one go, run the test with the Test data setting on All rows (on the run’s template) — the test then runs once per row. Each row keeps its own result: a row that fails shows its error on the Runs page, and Detailed test results has a Data row picker that opens each row’s own report, with its screenshots, video and trace. A banner in the editor reminds you when a Set has variation rows.
Only valid values are added here — values the feature should accept. Testing that the app rejects bad input is a separate kind of test.
Use a Set you made in Create Tests
Section titled “Use a Set you made in Create Tests”A Set you made by hand, or uploaded from a spreadsheet file, can give a Create Tests run the real values a form needs, such as an organization name, an award number or a file to upload.
On the Create Tests template, under Test data, pick one or more of the variant’s Sets in Test Data Sets to use (optional). The list groups them into Made by you and Made by OttoTester, and shows each Set’s rows, columns and how many tests use it. A picked Set moves above the list. Select its × to stop using it. To say which test uses which Set, name the Sets in the Agent Prompt. Leave the field empty and OttoTester makes a Set for each test that uses data instead. A test that types in nothing and checks no value that can change gets none.
When the run starts:
- While OttoTester explores the app, it fills fields with the values in the Set’s first row.
- Each new test keeps reading its Set every time it runs. The Test data setting decides how: One row runs the test with the first row, and All rows runs it once for every row.
- Exploring never uses up a row, so the run right after still has the first row. A column set to get a new value each run gets a fresh one while exploring too. Each new test reuses rows freely at first; to use each row once, change that on the test’s Test Data page.
- If a test needs a field the Set doesn’t have, OttoTester adds a column with that name, fills every row with the value it used, and marks the column’s header Please confirm. Check the values, fix them if needed, and select the badge to clear it.
- A value in a sensitive (secret) column is never shown to the AI. The AI points at the field, and OttoTester types the value in.
- The run’s log names the Set each test reads, and the column each of the test’s fields reads.
Keep a Set’s rows on the same path through the form. OttoTester explores with the first row, so a row that opens different fields, such as a different applicant type, can make the test fail.
If a picked Set is deleted later, the template shows it as Deleted. Runs carry on without it and say so in their log. Select its × to remove it from the template.
Sensitive columns
Section titled “Sensitive columns”Mark a column as sensitive to mask its cells in the editor. Every cell renders ***** until clicked; the reveal action is recorded in the audit log so a security review can see who looked at what.
sensitive is the minimum-responsible bar for moderate secrets — the value is stored in cleartext at rest. For real secrets (API keys, OAuth credentials) use the workspace’s credentials system instead.
The $CONSUMED system column
Section titled “The $CONSUMED system column”$CONSUMED is the per-row single-use claim marker. Names starting with $ are reserved for system columns: auto-created by the runtime, locked against rename / retype / delete, visually distinguished by the dark header and lock icon. Operator-defined columns starting with $ are rejected at create time.
When a single-use binding picks a row, the runtime atomically sets $CONSUMED = true on that row. Consumed rows are skipped by future single-use picks. Operators can:
- Toggle individual checkboxes to flip a row’s state back (the cell value is editable even though the column shape is not).
- Click Reset $CONSUMED in the toolbar to clear every row in one action.
CSV upload
Section titled “CSV upload”The Upload CSV modal supports three behaviors:
- Append (default) — add the CSV’s rows to the existing rows. Existing rows untouched, including their
$CONSUMEDstate. - Replace all — drop every existing row, then load the CSV. The modal warns when consumed rows exist so you can pick Merge instead if you didn’t intend to lose state.
- Merge by key column — pick a column whose values uniquely identify a row (typically
EmailorSKU). Matching rows update in place; non-matching keys append.
Conflict handling, common across the three behaviors:
- Unknown headers reject the upload — the response lists the headers in the CSV that aren’t on the Set.
- Type coercion failures (e.g.
abcin a number column) skip the row with a per-row detail in the import summary. - Blank keys (merge behavior) skip with a warning.
- Duplicate keys in the CSV (merge behavior) reject the whole upload.
$CONSUMEDin CSV — optional. Append/Replace: new rows take the CSV value or default tofalse. Merge: matching rows preserve their existing$CONSUMEDunless the CSV explicitly carries the column.
Bindings — how a test reads from a Set
Section titled “Bindings — how a test reads from a Set”Each test that needs values from a Set carries a binding that links the test to the Set. The binding owns four things:
- The mapper. For every fillable field in the test script, the binding records which Set column drives that field. Same-name matches are auto-wired; you override any mapping by picking a different column from the dropdown on the binding’s detail page.
- Iteration shape. Rows per run (a positive integer, or “use all rows”), the order in which rows are picked (Sequential or Random), and — for sequential — a start from row position. When rows-per-run is more than one, the dispatcher fans out into one child run per row.
- Row consumption. Reusable (every run picks freely, no claim) or Single-use (shared across bindings on this Set) — the binding flips
$CONSUMED = trueon each picked row, and the pool is shared across every single-use binding on the same Set. - Lifecycle. Renaming a Set column auto-updates the binding’s mapper. Deleting the Set orphans the binding (its mapping work is preserved; the UI surfaces “originally bound to <deleted Set>” until re-bound).
The Bound Tests tab on a Set’s view lists every binding that references the Set, with the iteration shape, consumption flag, and a click-through to the per-binding detail page where the mapper and configuration live side by side.
The v1 release limits each test to one binding (one Set per test). Multi-source bindings — a test that reads from more than one Set — are a future enhancement.
Values from a prerequisite test
Section titled “Values from a prerequisite test”Some tests need what another test made first. “Terminate an employee” needs the employee “Create an employee” just made. OttoTester passes those values from the prerequisite test to the tests that need it on every run:
- A value the prerequisite test types in, such as a name that is new each run, is the same in both tests.
- A value the app makes up, such as a new employee’s id, is read off the page by the prerequisite test and passed on.
A value that comes from a prerequisite test has no column of its own in the test that uses it: change it in the prerequisite test’s Set instead. A test whose values all come from prerequisite tests has no Set at all. A value can only be passed on from a prerequisite test whose rows are reusable. With single-use rows, a second read would claim a different row, so the run stops with a message saying so.
A test with its own copy
Section titled “A test with its own copy”By default, every test that needs an active employee shares one. A test that uses its data up, such as “Terminate an employee”, or one that needs special details, such as an employee born in 1970 who lives in Houston, gets its own copy instead: OttoTester runs “Create an employee” again just for that test, with those details, and the test reads only its copy’s values. The planner decides which tests need a copy.
The run still shows one row per test. When a prerequisite test passed in one copy and failed in another, its row reads as failed, and its error names the copy that failed. In the Playwright report, a copy’s runs are named after the test they were made for, such as “Provides employee:active (copy for Terminate an employee)”.
Related
Section titled “Related”- Concept → Variants, Tests
- How-to → Fixtures and test data (the prior surface, soft-deprecated)

