Skip to content
trawler
Use Trawler

Test accounts

A test account is a username and password on your product that a person signs in with. Add one when the product needs an account to be useful: a person with an account signs in through your product’s own sign-in form, while one without has to sign up, which not every product allows. The model playing a person never sees the password — Trawler types it.

Every person on the plan page ends with Sign-in when their row is open. It says how that person gets into the product:

  • Signs in as … — one entry per test account of the plan. Several people can share an account; they then share whatever that account holds, so their sessions can see each other’s changes.
  • Signs up as a new user — no account; the person signs up the way a new user would, if your product lets them. See Without a test account.
  • Choose a test account — shown in red, with Maya needs a test account to sign in., for a person who has to sign in but has no account yet. The person’s row says needs a test account in red. Setup marks such people: a reviewer or an administrator, say, or everyone when new people cannot create an account themselves (see From a URL to a plan).

A choice here is part of the plan and saves with it on its own.

While anyone in the saved plan still needs an account, Start run is disabled with the same message, and Run again on a finished run refuses with it too. Pick an account, or choose Signs up as a new user if that person can in fact sign up.

Choose + Add account for Maya — with the name of the person who will use it — in their open row and enter:

  • Username or email — what the account signs in with, up to 320 characters.
  • Password — 1 to 1,000 characters, kept exactly as typed; a warning appears when it starts or ends with a space, which is easy to paste by mistake. One shorter than 8 characters is typed like any other but masked only in the field it is typed into; see How a person signs in.

Choose Add account. The account is saved for the open plan straight away and chosen for that person, and the plan saves the choice on its own. It then appears in the Sign-in choice of every person of that plan, so another person can use it too. Another plan of the project does not see it: each plan has its own test accounts. A plan holds up to 20 accounts.

The row shows the chosen account’s password as a hint — password …wxyz for a password of 16 characters or more, and just password … for a shorter one. The password itself is never shown again.

The button under a chosen account, such as Remove ana@example.com from the project, removes the account from the plan and from every person of the plan who used it; those who have to sign in then need another one.

Message Why
Enter the password the account signs in with (up to 1000 characters). The password is empty or too long.
Enter the username or email the account signs in with (up to 320 characters). The username is empty or too long.
A plan can hold at most 20 test accounts. Remove one first.
Trawler has been updated since this page opened. Reload the page to add the account. / Trawler has been updated since this page opened. Reload the page to remove the account. Trawler was updated while the page was open. Nothing was added or removed.

A run first checks every test account its people use: a fresh agent opens the product, signs in once with the account, and says whether it got in. This takes a few steps and a fraction of a cent per account; the page says Checking that the test accounts can sign in. meanwhile.

Accounts that a CI job hands over are not part of this check: a person who cannot sign in with one finds out when they try.

If the product refuses an account’s username or password, the run stops there, before any person spends the budget: it is Stopped, and the headline says The product refused the username and password of problem_user: followed by what the page said, then Check that account on the plan and run again. Fix the account — remove it and add it again with the right password — and start another run. If the check cannot tell, because there is no sign-in form it can find, say, the people start anyway.

A defect can still point at signing in, when a person’s own sign-in fails later on. Its replay signs in with the same account, and if the product refuses that account, the judge answers inconclusive rather than confirming it: a refused test account is a problem with the account, not proof about the product.

When a person with an account reaches the product’s sign-in form, they point Trawler at the username and password fields, and Trawler types both in, one after the other. Both fields need to be on the page together: a sign-in that asks for the username and the password on separate screens may stop the person.

The password goes only into a real password field, and only on one of the origins the run may open. A field whose maximum length is shorter than the password and under 8 characters gets nothing typed into it. If a field keeps something other than what was typed — shortened to its maximum length, say — what it keeps is hidden too; if what it keeps is part of the password and fewer than 8 characters, Trawler tries to clear the field again and the person is told the password was not kept. The person cannot type into a password field themselves, cannot press keys other than Enter, Tab, Shift+Tab and Escape while one has focus, and cannot read what a password field holds.

Wherever a password could surface — the page the model reads, the notes and findings a person records, the report — it is replaced with •••. A password shorter than 8 characters is the exception: so few characters also turn up in ordinary text that Trawler cannot mask it reliably, so it shows wherever your product itself displays it. It is still typed without the model seeing it, it is hidden in the field it was typed into, and password fields are still painted over in screen captures.

When a defect is replayed, the fresh agent signs in with the account of the person who reported it, if that account can still be used when the replay starts; otherwise it has none, as below.

A person without a test account signs up the way a new user would, if your product lets them, with an email address and a password Trawler makes up for them. The address is at example.com, where no mail arrives, and the person types it themselves. The password goes into the password fields they point at, a field that asks for it again included, and again if they sign back in to the account they created; Trawler types it, and they never see it. A person keeps the same address and password for the whole run, so in a later turn they sign back in instead of signing up again; every run, and every replay, gets its own.

When the person types their password into a sign-up form, Trawler also notes what they typed in the other fields of that form — the username or email, up to three fields, never the password — and the page. The note appears among the person’s notes in the run as Account form filled with your own password on …. In a later turn the person is told the exact username they signed up with, to sign in with it and not sign up again, and, when the product says an invitation link was already used, to find the sign-in page and sign in. Other people are not told.

A sign-up that waits for a confirmation email stops them, because Trawler cannot receive email yet, and so does a product that refuses example.com addresses. The person is told that a refused address or a confirmation email is a limit of the address rather than a defect, and moves on.

The open row of a person set to Signs up as a new user says Signs up the way a new user would, if your product lets them, with an example.com address and a password Trawler makes up. Cannot receive email yet.

When a defect found this way is replayed, the fresh agent has no account either: wherever the steps use the address the person signed up with, it uses its own, and Trawler types a made-up password of its own for it.

Passwords are encrypted before they are stored, each bound to its workspace, project and account, so a copy moved anywhere else cannot be decrypted. They never travel to your browser.

A password is decrypted inside Trawler when a run starts, and again each time one of the run’s sessions, replays or judge calls is handed to a runner. That runner receives the passwords of the run’s accounts; a person can sign in only with their own.

When a CI job creates the test users itself, its runner can read their accounts from a file in the job instead, so that the passwords never go into the plan or to Trawler. They apply to people who have no account stored on the plan, unless the pull request is about how people get accounts, when the lead has those who would sign up do so for real. See Accounts from the CI job.

Staging behind HTTP basic auth or a secret header cannot be set up in the app yet — the people would stop at the protection. The local runner accepts both.