Mailbox, phone number and endpoints
Give a run its own email address or phone number, or let it call into your own system, for sign-ups, codes and test data.
Its own mailbox#
Give this test a mailbox: the run gets its own email address to sign up with, and reads the activation link or code your site sends. Included on every plan, the free trial too.
Write it into the test as you would for a person: "Sign up with the test's email address, open the activation email and follow the link."
The address looks like run-…@inbox-test-engine.testsy.dev. If your sign-up form limits email domains, allow this one. Adding +something before the @ reaches the same mailbox, for when a test needs more than one address. Messages over 2 MB are refused.
The tester can also send an email from the run's address, for example a reply to your support inbox; replies come back to the run. A run sends at most 5 emails to other addresses. Mail to a run's address, this run's or another's, never leaves Testsy and does not count toward the 5.
Its own phone number#
Give this test a phone number: the run gets its own number; it reads the SMS code your site sends and can take a call, pressing keypad digits during it. On paid plans.
Checking messages afterwards#
Everything the run received or sent is kept with its result: open the run and the Messages tab (see Proof, replay and video). The run's address and number stop taking messages when the run ends. Messages are visible to workspace members only; share links leave them out.
Endpoints into your system#
An endpoint is a call into your own system the tester may make during a run, such as "create a voucher" or "look up an order". The tester sees the endpoint's name and description and, after a call, the method, address, status and response. It never sees the headers, so put tokens in a header, not in the address. Calls time out after 60 seconds and do not follow redirects. Without a body template, the tester's values are sent as JSON. Requests come with the user agent testsy-qa-run.
Add endpoints to a project (Endpoints tab, or add_endpoint):
| Field | |
|---|---|
| Name | Up to 40 characters: lower-case letters, digits, - and _, starting with a letter; for example create_voucher |
| Description | What it does and when to use it, up to 600 characters. This is what the tester reads. |
| Method and address | POST (default), GET, PUT, PATCH or DELETE, and an https address |
| Headers | Up to 20, for example Authorization. Encrypted, never shown again. |
| Body | Optional, with {{param}} placeholders the tester fills in |
Then allow them in the test: Allow endpoint calls. Endpoint calls are on paid plans.
Turning them on#
In a test's options (see Test options), or over the API with options.services: email, sms and call (the phone number), http (endpoints). When the assistant's plan needs one, it is switched on for you, except paid ones on the free trial. A run that asks for a paid one on the free trial is not started. A run can make up to 40 mailbox, phone and endpoint calls.