Methodology

Test cases

The case format: input, expected answer, how it's known, and how it's compared.

Case fields
{
  "case_id": "screen-failclosed-03",
  "route": "POST https://api.seller.test/v1/screen",
  "input": { "address": "0x12345" },
  "expected": "error or status 'unknown'",
  "expected_basis": "Not a valid 20-byte address; no valid address can be screened",
  "comparison": "must_not_equal",
  "comparison_target": { "status": "clear" },
  "tolerance": null,
  "input_mode": "frozen",
  "origin": "labs-written"
}
FieldRequiredMeaning
case_idyesStable ID, reused every week
routeyesMethod and URL
inputyesExact request body or query
expectedyesWhat a correct response contains
expected_basisyesHow the expected answer was established
comparisonyesexact, field_match, contains, numeric_tolerance, must_not_equal
tolerancefor numbersAllowed difference, e.g. 0.5%
input_modeyesfrozen or live. See Frozen vs live
originyeslabs-written or seller-supplied
How a fail is confirmed

Next

Ground truth

Where "correct" comes from. We prefer ground truth we can establish ourselves.

Continue