Demo
GUIDE

Collections, files, and forms

5 MIN READ

Table or grid

Find a row by a unique business key before acting.

gherkin
When I find the row whose "Invoice Number" is [$.testdata.invoice.number]
And I click "View" in that row
Then the invoice detail page should show [$.testdata.invoice.number]

Never use the first row unless position is the business requirement.

Editable grid

Name the row, column, new value, and save boundary.

gherkin
When I edit the "Quantity" cell to `3` in the row whose "Product Code" is "CAM-4K"
And I save the grid
Then that row should show Quantity `3`
And the calculated line total should update

Virtualized table

Define the scroll and stop rule:

gherkin
When I search the virtualized table for Account ID [$.testdata.account.id]
And I scroll through unprocessed rows until the account is found or no new rows load
Then exactly one matching row should be found

Pagination

gherkin
When I search each results page in order for [$.testdata.record.id]
And I continue until the record is found or the last page is reached
Then the record should be present exactly once

Tree or tree grid

gherkin
When I expand the "North America" tree node
And I expand its "United States" child node
Then the "California" node should be visible

Repeating cards or sections

Use a card title or business key:

gherkin
When I click "Edit" in the card titled "Primary Address"
Then the "Edit Primary Address" form should open

File upload

Name the file source and the upload component.

gherkin
When I upload [$.testdata.documents.contract] using the "Upload Files" control in the "Files" section
And I click "Done" in the upload dialog
Then the uploaded filename should appear in the "Files" list
And its status should be "Uploaded"

For drag-and-drop areas, still describe the named drop zone:

gherkin
When I upload [$.testdata.import.csv] using the "Drag and drop files here" upload area

File download

gherkin
When I click the "Download Report" button
And I save this file as [$.output.report_file]
Then the downloaded filename should end with `.csv`
And the file should contain the expected column headers

The Then lines are included only when filename and content are acceptance criteria of this testcase. If the testcase exists only to produce a file for a later testcase, stop after saving the output:

gherkin
When I click the "Download Report" button
And I save this file as [$.output.report_file]

In the consuming testcase, receive that testsuite output as an input variable:

gherkin
When I read data as CSV from [$.input.report_file]
Then the CSV should contain the columns "Account ID", "Status", and "Updated At"

Image

gherkin
Then the "Company Logo" image should be visible
And its accessible name should be "ACME logo"

Chart

Name the chart, series, point, and expected overlay.

gherkin
When I hover over the point for `2026-08-01` in the "Monthly Revenue" chart series "Actual"
Then the tooltip should show date `2026-08-01`
And the tooltip should show revenue [$.testdata.revenue.august_1]

Do not use guessed coordinates when the chart value or series can identify the target.

Canvas, diagram, or map

Use named landmarks and observable outcomes:

gherkin
When I select the map marker labeled "Warehouse 12"
Then the marker details panel should show warehouse ID "WH-12"

If the canvas has no semantic labels, describe the visual object, containing panel, and expected state precisely.

Slider

gherkin
When I set the "Confidence Threshold" slider to `75`
Then the slider should show `75`
And the threshold label should show `75%`

Drag and drop

Name both endpoints:

gherkin
When I drag the card "Review Contract" from the "To Do" column to the "In Progress" column
Then the card should appear in "In Progress"
And it should no longer appear in "To Do"

Keyboard action

gherkin
When I search for [$.testdata.search.term] using the global search field
And I press Enter in that field
Then the search results page should be visible

Browser confirmation, alert, or prompt

gherkin
When I click the "Reset" button
And I wait until a browser confirmation asks to reset the form
And I accept the confirmation
Then every form field should return to its default value

Clipboard

gherkin
When I click the "Copy API Key" button
Then the confirmation message should say "Copied"
And the copied value should match the masked key's full stored value without displaying it in the report

NEVER

Never print secrets into feature files or run summaries.

Forms as component systems

Independent sibling fields

Write independent fields consecutively so TestZeus can complete them efficiently:

gherkin
When I fill "Automation {timestamp}" in the "Account Name" field
And I fill "ACC-{timestamp}" in the "Account Number" field
And I select "Technology" from the "Industry" picklist
And I ensure the "Active" checkbox is checked

Controller and dependent fields

Separate them and wait for the dependent control to refresh:

gherkin
When I select "Hardware" from the "Product Family" picklist
And I wait until the "Product" picklist becomes enabled
And I select "4K Camera" from the "Product" picklist

Conditional fields

State the condition and the newly required fields:

gherkin
When I select "Other" from the "Reason" picklist
And I wait until the "Other Reason" text field becomes visible and required
And I fill "Customer request" in the "Other Reason" field

Save and validation

gherkin
When I click the "Save" button
Then no required-field error should be visible
And the form should close
And the saved record should show the filled values

For negative validation:

gherkin
When I clear the required "Account Name" field
And I click the "Save" button
Then the form should remain open
And the "Account Name" field should show "Complete this field"