Prerequisites
- Create and manually run the tests you want to automate.
- Add them to a test group.
- Enable the group’s signed webhook and copy its URL.
- Add the URL to GitLab CI/CD variables as a masked variable named
TESTERARMY_WEBHOOK_URL.
TESTERARMY_ENVIRONMENT_ID. For temporary review apps, send the deployment URL as targetUrl.
Stable staging environment
Trigger the group after the staging deployment succeeds:GitLab review app
When the deployment job exposes a temporary review URL, pass it directly:Results and pipeline behavior
The webhook returns the queued TesterArmy run IDs. A successful HTTP response means the runs were accepted, not that every test passed.- Full steps, screenshots, videos, and issues appear in TesterArmy.
- This webhook does not update a GitLab commit status or merge request comment.
- For a merge request test report or a TestRail import, download the batch as JUnit XML from
GET /api/v1/batches/{batchId}/junitand declare the file underartifacts: reports: junit:. See Export to TestRail. commitShais retained as run metadata. It only enables a GitHub Check Run when the TesterArmy project is separately connected to a GitHub repository containing that commit.
Troubleshooting
401 Unauthorized
The secret-bearing webhook URL is incorrect. The plaintext secret cannot be recovered, but you can use Regenerate URL in the group’s webhook menu on the Tests tab and replace the GitLab CI/CD variable. The previous URL stops working immediately.
403 Forbidden
The group webhook is disabled. Switch it back On from the group’s Webhook menu on the Tests tab.
Tests use the wrong URL or account
UseprojectEnvironmentId to select a saved environment and its credential overrides. The environment field only labels the result; it does not select a saved environment.