HTTP Basic Auth

View as Markdown

If your staging or preview site is behind HTTP Basic Authentication, save credentials in TesterArmy so the AI agent can access it during test runs.

HTTP Basic Auth browser prompt

Setup

  1. Go to Project Settings → Integrations → Site Protection.
  2. Click Set up on the HTTP Basic Auth card.
  3. Enter the username and password.
  4. Click Save.

Credentials are stored encrypted and sent automatically with every test run for that project.

Troubleshooting

Basic auth prompt still appears

Check that the credentials are saved under Project Settings → Integrations → Site Protection, not under app test accounts.

401 Unauthorized

The saved HTTP Basic Auth username or password is likely wrong. Confirm the same credentials work in a normal browser, update the Site Protection settings, and retry the run.

App login still fails

HTTP Basic Auth only unlocks the site before the app loads. If the app itself has a login form, also add Test Credentials.