Testing
All commands on this page talk to a deployment and accept the
common options (-e, -a, -c, -v).
Each prints a PASS/FAIL table and exits 1 if any check fails.
test-view
Section titled “test-view”Read-only. For each object: load its metadata, run its grid query, and load its form/view values.
GenieClient test-view [view-dir] [-o <objects>] [--fail-fast]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
[view-dir] (positional) |
path | no | — | Folder of *.view.xml files. Every view found becomes an object to test, and the SQL parameters each view needs are read from its XML. |
-o, --objects |
list of object names | no | — | Test only these objects. Overrides discovery from view-dir. |
--fail-fast |
flag | no | off | Stop at the first object that fails. |
Give view-dir, -o, or both.
GenieClient test-view ./models/viewsGenieClient test-view -o Site,WorkOrderGenieClient test-view ./models/views --fail-fast -c 2test-crud
Section titled “test-crud”Writes data. For one object: add a record with generated fake data, list and verify it, update
it, verify again, delete it, and verify it is gone. Lookup fields get real existing values so
foreign keys hold; key, hidden, disabled, attachment and sequence fields are left alone. Every
created row is recorded in a run journal so cleanup can remove it if a step fails.
GenieClient test-crud <object> [-n <count>] [--keep]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
<object> (positional) |
object name | yes | — | The object to exercise. |
-n, --count |
integer ≥ 1 | no | 1 |
How many full add → update → delete cycles to run. |
--keep |
flag | no | off | Skip the delete step and leave the created rows so you can inspect them. They stay in the run journal for cleanup. |
GenieClient test-crud WorkOrderGenieClient test-crud WorkOrder -n 5GenieClient test-crud WorkOrder --keep # inspect the rows, then run cleanuptest-relations
Section titled “test-relations”Check one object’s relations: its lookups resolve, its sub-views load under a parent record, and — when given the view folder — which other views reference it.
GenieClient test-relations <object> [--view-dir <path>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
<object> (positional) |
object name | yes | — | The object whose relations to check. |
--view-dir |
path | no | — | Folder of *.view.xml files, searched to find views that reference this object. Without it, the reverse-reference check is skipped. |
GenieClient test-relations SiteGenieClient test-relations Site --view-dir ./models/viewssnapshot
Section titled “snapshot”Record golden snapshots — metadata, a grid page, form/view values and lookup datasets — as
<object>.snapshot.json files, so later runs can be compared against them with
verify-snapshot. Values that change on every run (timestamps and the like) are
masked automatically.
GenieClient snapshot [object] [-b <dir>] [--view-dir <path>] [--volatile <columns>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
[object] (positional) |
object name | no | — | The object to snapshot. Leave it out to snapshot every object found under --view-dir. |
-b, --baseline |
path | no | ./snapshots |
Folder where the snapshot files are written. |
--view-dir |
path | no | — | Folder of *.view.xml files. Used to discover objects (when [object] is omitted) and to supply the SQL parameters each view needs. |
--volatile |
list of column names | no | — | Extra columns whose values are masked, because they legitimately change between runs — e.g. Id for a cart child view whose rows are re-inserted on every edit. |
GenieClient snapshot --view-dir ./models/viewsGenieClient snapshot Site --view-dir ./models/views -b ./tests/baselineGenieClient snapshot PurchaseOrderLines --volatile Idverify-snapshot
Section titled “verify-snapshot”Capture the same data again and diff it against the recorded baseline. Reports which section (metadata, grid, values, lookups) and which fields or rows changed. This is the regression check.
GenieClient verify-snapshot [object] [-b <dir>] [--view-dir <path>] [--volatile <columns>] [--limit <n>] [--report <format> --out <file>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
[object] (positional) |
object name | no | — | The object to verify. Leave it out to verify every object under --view-dir. |
-b, --baseline |
path | no | ./snapshots |
Folder holding the recorded snapshot files. |
--view-dir |
path | no | — | As for snapshot. |
--volatile |
list of column names | no | — | As for snapshot; use the same value you recorded with. |
--limit |
integer | no | 100 |
Most differences listed per section. The total count is always reported. |
--report |
choice: junit, json |
no | none | Also write a machine-readable report in this format. |
--out |
path | no | — | File to write the --report to. |
GenieClient verify-snapshot --view-dir ./models/viewsGenieClient verify-snapshot Site -b ./tests/baseline --limit 20GenieClient verify-snapshot --view-dir ./models/views --report junit --out snapshots.xmlRun a suite manifest: an XML file listing objects and the checks to run on each, so a whole regression pass is one command (handy in CI).
GenieClient run <manifest> [--tag <tags>] [--view-dir <path>] [-b <dir>] [--parallel <n>] [--fail-fast] [--report <format> --out <file>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
<manifest> (positional) |
path | yes | — | The suite manifest XML file (format below). |
--tag |
list of tags | no | — | Run only objects that carry at least one of these tags. |
--view-dir |
path | no | manifest’s ViewDir |
Override the manifest’s view folder. |
-b, --baseline |
path | no | manifest’s Baseline |
Override the manifest’s snapshot folder. |
--parallel |
integer ≥ 1 | no | 1 |
How many read-only objects to check at once. Objects with a crud check always run one at a time. |
--fail-fast |
flag | no | off | Stop after the first object with a failing check. |
--report |
choice: junit, json |
no | none | Also write a machine-readable report in this format. |
--out |
path | no | — | File to write the --report to. |
Suite manifest format
Section titled “Suite manifest format”<Suite Name="inventory" ViewDir="../models/views" Baseline="./baseline"> <Object Name="Products" Run="view,snapshot,relations" Tags="core" /> <Object Name="PurchaseOrders" Run="view,snapshot,crud" Tags="documents" Count="2" /> <Object Name="PurchaseOrderLines" Run="snapshot" Volatile="Id" Tags="documents" /></Suite>| Element / attribute | Type | Required | Description |
|---|---|---|---|
<Suite Name> |
text | no | Suite name shown in reports (default suite). |
<Suite ViewDir> |
path | no | View folder; relative paths are resolved from the manifest’s own folder. |
<Suite Baseline> |
path | no | Snapshot folder; resolved like ViewDir. |
<Object Name> |
object name | yes | The object to check. |
<Object Run> |
list of view, snapshot, crud, relations |
yes | Checks to run — the same as test-view, verify-snapshot, test-crud and test-relations. |
<Object Tags> |
list | no | Labels used by --tag. |
<Object Volatile> |
list of column names | no | Extra masked columns for the snapshot check. |
<Object Count> |
integer ≥ 1 | no | CRUD cycles (default 1). |
<Object Keep> |
true / false |
no | Leave CRUD rows behind for inspection (default false). |
GenieClient run ./tests/smoke.suite.xmlGenieClient run ./tests/full.suite.xml --tag core,documents --parallel 4GenieClient run ./tests/full.suite.xml --fail-fast --report junit --out results.xmlcleanup
Section titled “cleanup”Delete rows that earlier runs left behind — from test-crud --keep, or from runs that failed before
their own delete step. Each run is identified by a run id like 20261020-091512-a3f0.
GenieClient cleanup [--list] [-r <run-id> | --all] [--dry-run]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--list |
flag | no | off | Show recorded runs and how many rows each still has, without deleting anything. Does not need sign-in. |
-r, --run |
text (run id) | one of -r / --all |
— | Clean this run only. |
--all |
flag | one of -r / --all |
off | Clean every recorded run for this endpoint. |
--dry-run |
flag | no | off | Show what would be deleted without calling the server. |
Rows that cannot be deleted stay in the journal so you can retry.
GenieClient cleanup --listGenieClient cleanup -r 20261020-091512-a3f0GenieClient cleanup --all --dry-runGenieClient cleanup --allCopyright © 2026 Orbyn Technologies. All rights reserved.