Skip to main content

Testing

Entrust's sandbox always returns pre-determined responses, regardless of which documents or photos are actually submitted. Control the result through the applicant's first and last name:

  • Set lastName to Consider to make any report on that applicant return a consider (failed) result. Any other surname returns a clear result.
  • Set firstName to a specific breakdown combination, for example Image Integrity - Supported Document, to trigger that exact failure reason.
  • Set lastName to a supported test document type, for example CA DL 2018, to get back document fields for that document.

Full list of supported sandbox combinations: Simulating verification reports in the sandbox.

Document type and country on Testbed​

On Testbed, the document data returned is fixed. The document type is always Passport and the issuing country is always GBR, whatever the end user captures.

This affects document restrictions set at transaction creation. If allowedDocumentTypes does not include Passport, every Testbed transaction fails with DocumentTypeValidation in providerInfo.onfidoAuth.errorData.documentValidationErrors. If allowedDocumentCountries does not include GBR, it fails with DocumentCountryValidation. Include both values when testing, or leave the restrictions out on Testbed.

Testing matching on Testbed​

On Testbed, Entrust IDV does not analyse the document the end user captures. It always returns pre-determined results and pre-determined document data, as described above. This limits how much of the matching behaviour you can test.

The firstName and lastName values that control the Testbed scenarios are the same fields used for matching. Matching is still applied on Testbed. If the names or date of birth you send don't line up with the pre-determined document data, the transaction ends as failed. The failure comes from your test input, not from your integration. You can spot it by a DataComparison value in documentErrors.

Testbed document data​

Unless a test scenario says otherwise, every Testbed transaction returns the same document data in providerInfo.onfidoAuth.completionData.documentReportData:

FieldValue
firstNameunknown
lastNameunknown
dateOfBirth1990-01-01
documentTypePassport
issuingCountryGBR

Use these values to build your test cases. Sending "firstName": "unknown", "lastName": "unknown" and "dateOfBirth": "1990-01-01" gives a complete transaction. Change any one of them to get a failure with the matching DataComparison value, for example a different dateOfBirth gives DataComparisonDateOfBirth.

If you are not testing matching itself, leave out firstName, lastName and dateOfBirth. Matching is then ignored and Testbed transactions won't fail on it. This also means you can't combine a name-based test scenario with a clean matching result, since the names you send are matched.

Use Testbed to confirm that your integration creates transactions correctly and handles both complete and failed results. Don't use it to judge how strict or tolerant the fuzzy matching is. That can only be assessed in Production with real documents.