Cases 94–100 · API, data safety, and journeys
Case 94 — Call an API and capture an output
When I send a POST request to [$.environment.current.API_URL]/accounts
with the approved authorization configuration
and body from [$.testdata.account.payload]
And I save response field `id` as [$.output.account_id]
Then the response status code should be `201`
And response field `id` should be non-emptyCase 95 — Process API batches
Given I load all rows from "records.csv" in source order
And I calculate expected_batch_count as ceiling(total_rows / batch_size)
START LOOP for each batch from `1` through expected_batch_count in order
When I construct the request body only from rows in the current batch
And I send one request with the current batch number
And I store the final status and response
And I append one row to batch_summary.csv
And I mark the current batch as processed
END LOOP when every expected batch is processed
Then the final batch may contain fewer than batch_size rows
And the summary row count should equal expected_batch_count
And the sum of submitted rows should equal the source row countCase 96 — Handle an asynchronous job
When I start the "Generate Report" job
And I save the job ID as [$.output.job_id]
Repeat checking its status every `10` seconds for up to `30` attempts, until it reaches "Completed" or a terminal failure state
Then the final status should be "Completed"
And the generated report should be available for downloadCase 97 — Delete one exact record safely
Given I search for the exact record ID [$.output.record_id]
And I require exactly one row to match that ID
When I open the "Actions" menu in that row
And I click "Delete"
And I wait until the confirmation dialog shows [$.output.record_id]
And I confirm deletion
Then searching for [$.output.record_id] should return no resultsCase 98 — Write a negative permission test
Given I am signed in as [$.testdata.roles.read_only_user]
When I open record [$.testdata.record.id]
Then the record details should be visible
And the "Edit" and "Delete" actions should not be availableDo not attempt a forbidden mutation when absence of the action is the required behaviour.
Case 99 — Compare two application states
Given I record the visible panel titles and values before changing the filter
When I select "Last 30 Days" from the "Date Range" picklist
And I wait until every panel finishes refreshing
And I require the filter to show "Last 30 Days"
And I compare the refreshed panel values with the recorded baseline
And I report each changed panel by titleCase 100 — Compose a complete customer journey
Build the journey from component contracts instead of vague business steps.
Feature: Create and approve a customer request
Scenario: Authorized user submits a complete request
Given I am on the "Requests" list page
When I click the "New" button
And I wait until the "New Request" modal is ready
And I fill "Request {timestamp}" in the "Request Name" text field
And I select "High" from the "Priority" picklist
And I select "Customer Issue" in the "Request Type" radio group
And I ensure the "Notify Customer" checkbox is checked
And I fill [$.testdata.request.description] in the "Description" rich-text editor
And I upload [$.testdata.request.attachment] using the "Upload Files" control
And I set the "Due Date" to seven calendar days after the current date
And I click the "Save" button in the "New Request" modal
And I wait until the request record page opens
And I save the request ID as [$.output.request_id]
Then the request page should show "Request {timestamp}"
And Priority should show "High"
And Request Type should show "Customer Issue"
And the "Notify Customer" checkbox should be checked
And the attachment filename should appear in the "Files" sectionFinal case review
Before approving a feature, confirm:
- Every control is named by a customer-visible identity.
- Component types are explicit wherever behaviour differs.
- Selections use exact options.
- Boolean controls state the final requested state.
- Dependent fields follow their controllers.
- Rich-text content and formatting are separate.
- Table and card actions use unique business keys.
- Context boundaries are named.
- Runtime loops have a stop rule and count reconciliation.
- Repeated statements have a maximum attempt count or another finite boundary.
- Conditionals name an observable condition and clearly bound IF, ELSE, and END IF branches.
Thensteps are limited to assertions that determine the testcase result.- Operational readiness uses waits instead of intermediate assertions.
- Cross-testcase files use
[$.output.<name>]in the producer and[$.input.<name>]in the consumer. - Final assertions describe durable application state.
- No secrets, selectors, generated IDs, raw coordinates, or TestZeus internals appear.