On this page
Integration testing
An integration test asks whether the parts still work together: the browser, your API, the payment provider, the identity provider. xtest checks that from the outside, through the same interface a customer uses, and the test agent can read the network and console of the page it is driving while it does.
Write the journey, not the call
A journey that crosses systems is one test case in plain English. Where it hands off to another system, say so, so the AI knows what it is waiting for:
Sign in with the test account, pay with card 4242 4242 4242 4242, and check the order confirmation shows the same total as the basket.
What the AI can see
- The page: what is on it, what moved, what the address became.
- The network: the requests the page made and what came back.
- The console: the errors your app logged while the journey ran.
That is usually enough to tell a broken integration from a broken button. A 500 from your own API shows up in the run beside the step that caused it.
Sign-ins and one-time codes
Save each system's login under Test logins. The AI signs in for itself, and an authenticator key saved with the login becomes a six-digit code at the moment it is needed. Passwords are encrypted with AES-256-GCM and never come back to your browser.
Where the line is
There is no service virtualisation, no contract testing, no message-queue harness and no database access. If a test needs a record in a particular state, give the test a test environment whose seed path sets it up before the run’s first test (see Test data under Good practice), put it there yourself before the run, or have the test create it through the interface.
[Academy courses]