GitLab test management, in Jira
Send every GitLab CI/CD pipeline to AgileTest. Start pipelines from Jira. Trace results to requirements.
| Test Execution ⇅ | Source ⇅ | Framework ⇅ | Status ⇅ | Creator ⇅ | Created at ⇅ | Completed at ⇅ |
|---|---|---|---|---|---|---|
| SHOP-131 | Import | JUnit | Success | ECEmma Clark | 2 minutes ago | 1 minute ago |
| SHOP-129 | Import | TestNG | Success | ASAna Silva | 1 hour ago | 1 hour ago |
| SHOP-127 | Import | Robot Framework | Success | ECEmma Clark | 3 hours ago | 3 hours ago |
| Import | Cucumber | Fail | LMLucas Meyer | 5 hours ago | 5 hours ago | |
| SHOP-126 | Import | Cucumber | Success | LMLucas Meyer | 5 hours ago | 5 hours ago |
| SHOP-124 | Import | JUnit | Success | ECEmma Clark | Yesterday | Yesterday |
| SHOP-122 | Import | NUnit | Success | ASAna Silva | Yesterday | Yesterday |
| SHOP-119 | Import | Behave | Success | LMLucas Meyer | 2 days ago | 2 days ago |
| SHOP-117 | Import | xUnit | Success | ASAna Silva | 2 days ago | 2 days ago |
Every pipeline reports to Jira
Your pipeline already knows what passed. Now Jira does too, after every run.
Run the pipeline from the Test Execution
No switching to GitLab to start a regression run.
- 1Set up onceAdd a GitLab configuration in Settings › Automated Test: project ID, branch and trigger token. Optionally set the test plan, environment, fix version and milestone.
- 2Click RunFrom the AgileTest panel on any Test Execution. Nothing else to fill in.
- 3Follow the runThe pipeline status posts back to Recent runs.
See what your pipeline actually covers
Link automated test cases to requirements, next to your manual tests.
| Key | Summary | Type | Latest status | |
|---|---|---|---|---|
| SHOP-214 | Apply discount code as guest | Manual | Fail | Re-run |
| SHOP-215 | Pay by card | Manual | Pass | Re-run |
| SHOP-218 | Checkout API returns order ID | Generic | Pass | Automated |
| SHOP-217 | Order email is sent | Manual | To Do | Run |
stages:
- test
tests:
stage: test
image: mcr.microsoft.com/playwright:v1.42.1-jammy
script:
- npm ci
- npm run test
# 1. Get a temporary token
- export token=$(curl -X POST "$BASE_AUTH_URL/api/apikeys/authenticate"
-H 'Content-Type:application/json'
--data '{"clientId":"'"$CLIENT_ID"'","clientSecret":"'"$CLIENT_SECRET"'"}' | tr -d '"')
# 2. Send the JUnit report
- curl -X POST "$BASE_URL/ds/test-executions/junit?projectKey=$PROJECT_KEY"
-H "Content-Type:application/xml" -H "Authorization:JWT $token"
--data @"./playwright-report/results.xml"stages:
- test
- upload-report
tests:
stage: test
image: mcr.microsoft.com/playwright:v1.42.1-jammy
script:
- npm ci
- npm run test
artifacts:
name: test_result
paths:
- playwright-report/results.xml
upload-report:
stage: upload-report
image:
name: ghcr.io/agiletestapp/agiletest-cli:latest
entrypoint: [""]
script:
- |
agiletest --base-auth-url $BASE_AUTH_URL --base-url $BASE_URL \
--client-id $CLIENT_ID --client-secret $CLIENT_SECRET \
test-execution import \
--framework-type junit --project-key $PROJECT_KEY \
playwright-report/results.xml# Data Center: DC_TOKEN = Jira personal access token
upload-report:
stage: upload-report
image:
name: ghcr.io/agiletestapp/agiletest-cli:latest
entrypoint: [""]
script:
- |
agiletest --base-url $BASE_URL \
--data-center-token $DC_TOKEN \
test-execution import \
--framework-type junit --project-key $PROJECT_KEY \
playwright-report/results.xmlA few lines in .gitlab-ci.yml
Send the report with curl in your test job, or with the AgileTest CLI in a small follow-up job.
Set up with the official guides
Questions, answered
Does AgileTest run my automated tests?
No. GitLab CI/CD keeps building and running your tests. AgileTest imports the results into Jira, and can start a configured pipeline from a Test Execution.
Should I use the AgileTest CLI or the REST API?
Either works. The CLI runs as a Docker image (ghcr.io/agiletestapp/agiletest-cli) in an upload-report job. The REST API uses two curl calls: one for a token, one to send the report.
Which report formats are supported?
JUnit, NUnit, TestNG, xUnit and Robot Framework (XML), plus Cucumber and Behave (JSON). Tools that export JUnit XML, such as Playwright, Cypress and pytest, work too.
Can I start a GitLab pipeline from Jira?
Yes. Add a GitLab configuration in AgileTest (GitLab base URL, project ID, branch and a pipeline trigger token), then click Run on a Test Execution.
Does it work with self-managed GitLab?
Yes. For GitLab.com use https://gitlab.com as the base URL. For a self-managed instance, enter your own GitLab URL.
Does it work on Jira Cloud and Data Center?
Yes. Cloud uses an AgileTest Client ID and Client Secret. Data Center uses a Jira personal access token.
Bring your GitLab test results into Jira
Questions? Contact us · Visit the 24/7 Support Desk