Use case

Test your login page with an AI agent

Right login, wrong password, empty form, redirect and logout, with a test account you give it.

The short answer

To test a login page with an AI agent, write a mission that names the page, gives it a test account username and password, and lists what to check: the right login, a wrong password, an empty form, the redirect after login and logout. ZeusQA drives a real browser through each and reports pass, fail or blocked with screenshots.

What a login test should cover

Six checks, in this order. The first is the one everybody tests; the rest are where login pages break.

  1. The right login. The correct username and password get you in, and the page you land on shows you are signed in.
  2. A wrong password. The page refuses, says so in plain words, and does not reveal whether the username exists.
  3. An empty form. Submitting nothing produces a message next to the field that is missing, not a blank page or a server error.
  4. The lockout message. If your app limits attempts, the message after too many failures should be clear. Only test this against a site where locking a test account is fine.
  5. The redirect after login. Open a page that needs a login, sign in, and check you end up on that page and not on a generic home screen.
  6. Logout. Signing out ends the session: the back button and a reload do not show the signed-in page again.

Every run also collects console errors, uncaught page errors and failed or 4xx/5xx requests, so a login that works on screen while a request fails underneath shows up as a finding.

How to give the agent a login

Write the username and password in the mission, in plain words. The agent types them into the form like a person would.

  • Use a test account, never a real one. Create a user that exists only for testing, with no access to real data and a password you use nowhere else.
  • Point it at staging when you can. Runs act on the real site, and a login test can trip rate limits or lockouts.
  • Anyone who can open the run can read the mission. Treat the test password as shared within your workspace and rotate it when someone leaves.

Three missions to paste

The basics
Go to the login page. Log in with the username tomsmith and the password SuperSecretPassword!. Report where you land and whether the page shows you are signed in. Then log out and report what the page shows. Check computer.diagnostics() for console errors and failed requests.
Wrong password and empty form
Go to the login page. Submit the empty form and report the message. Then enter the username tomsmith with the password not-the-password and submit. Report the exact error text, whether it says which field was wrong, and whether any sensitive detail appears in it.
Redirect and logout
Open a page that needs a login while signed out and report where you are sent. Log in with the test account qa-user@example.com and the password given here: {password}. Report whether you end up on the page you first asked for. Log out, press the browser back button, and report whether the signed-in page is still visible.

The first one runs as written against the public demo at the-internet.herokuapp.com/login, which publishes its own test login. Swap the address and the account for yours.

A real run: we gave the same demo a one-line version, "Log in with username tomsmith and password SuperSecretPassword! and check that the Secure Area page opens.", from a fresh free account with default settings. It passed in 28 seconds with 4 of 4 checks: both fields filled and Login clicked, the URL changed to /secure with the Secure Area heading, the "You logged into a secure area!" banner showed, and the page showed "Logged in as tomsmith". Unasked, the report also noted three security findings on the demo site: no Content-Security-Policy header (medium), a session cookie set without Secure (medium) and no Strict-Transport-Security header (low).

Settings that matter

  • Model — a fast model (Claude Haiku 4.5, GPT-5.6 Luna) is fine for a flow you run often. Reach for a deeper model when a run keeps getting stuck on the same step.
  • Devices — laptop is enough for a first pass. Add phone when the flow is mostly used on mobile.
  • Step budget — 30 scripts covers most flows. Raise it for long, multi-page journeys.
  • Reasoning effort — passed straight through to the model. Higher effort costs more and thinks longer before acting.

What the report gives you

  • A verdict: pass, fail or blocked.
  • Named checks, each marked passed or not, so you can see what was actually asserted.
  • Findings rated critical, high, medium, low or info, with the evidence behind each one.
  • A screenshot for every step, plus a session video on Pro and Team when you turn recording on.
  • Console errors, uncaught page errors and failed or 4xx/5xx requests, collected automatically.
  • Passive security findings from the responses the run loaded: headers, cookies, mixed content, open redirects, source maps, leaked secrets and stack traces.

What this does not cover

Worth knowing before you point it at something important.

  • No second factor. It cannot read an SMS or authenticator code, so a login behind one will usually end the run as blocked, and the report says so.
  • No inbox access, so it cannot follow a magic link or a password reset email.
  • No third-party sign-in. It will find and click a Google or GitHub button and report where it lands, but it cannot complete a consent screen on someone else's domain without real credentials.
  • A CAPTCHA will usually end the run as blocked.

Questions

Is it safe to give the agent a password?

Give it a test account that exists only for testing. The mission text is visible to anyone who can open the run, so never write a real person's password in it.

Can it test login with Google or GitHub?

It will find and click the button and report where it lands, but it cannot complete a third-party consent screen without real credentials.

What happens when the login asks for a code?

ZeusQA cannot read SMS or authenticator codes. The run ends as blocked and the report says the flow needed a second factor, which is information, not a failure.

Try it on your own site

Paste a URL, describe the flow in plain English, and watch a real browser do it. Three runs free, no card.

Also worth running