Check what your app did

The manifest says what your application should do with every damaged value. qadg verify compares that with what it really did.

Write down what your application did

Import the damaged file into your application and write down what it did with each row, one entry per row. A few lines at the end of your test can write it. Three entries of such a record:

response.json
{
  "spec_version": "0.2",
  "rows": [
    { "row": 134, "verdict": "accepted" },
    { "row": 135, "verdict": "accepted" },
    { "row": 432, "verdict": "rejected", "code": "INVALID_NAME" }
  ]
}

verdict is accepted or rejected. code is optional: your application’s own code for what happened, which verify repeats in its report. When you can read back what was stored, add stored, and verify can tell a value that survived from one your application quietly changed. Every field you add widens what the comparison can tell you, and the report says which questions it could not answer.

Compare

terminalexit code 4
$ qadg verify expectation-manifest.json response.json
compared 15 entries against what the application did
warning: row 135, card: accepted although it should have been rejected. The value was taken. ...
warning: row 432, last_name: rejected although it should have been accepted. The application answered INVALID_NAME
...

It ends with exit code 4. Row 135 is a card number with two digits swapped that got in, and row 432 is O’Brien, who was turned away. Your pipeline can fail on that code. Using it in CI has every exit code.

An answer marked ~ in the manifest depends on the rules of your own application, so verify reports a disagreement on it and does not fail on it.

In the window

The Check results screen opens a manifest and a record of what your application did, goes through every ordered defect, and shows where the two disagree.

The format

The record of what your application did is written down as an open specification: application response record.