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.

Credentials are stored encrypted and sent automatically with every test run for that project.
Check that the credentials are saved under Project Settings → Integrations → Site Protection, not under app test accounts.
401 UnauthorizedThe 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.
HTTP Basic Auth only unlocks the site before the app loads. If the app itself has a login form, also add Test Credentials.