- GitLab MR Reviews (AI exploratory testing) via the GitLab integration in QA.tech.
- API-driven CI/CD test runs via the QA.tech REST API.
What GitLab MR reviews do
When enabled, QA.tech can:- detect merge request activity from your connected repository
- post an introduction or progress comment on merge requests
- run exploratory and end-to-end testing against your merge request
- publish a final results-based review comment back on the merge request
What QA.tech Writes on GitLab MRs
QA.tech posts comments and review notes on merge requests when the integration is triggered.| Operation | When | Description |
|---|---|---|
| MR comment (in progress) | When the agent starts testing | Comment with link to the QA.tech conversation and details (project, MR number, branch, event type). Lets you track progress. |
| MR review note | After tests complete | MR note with verdict (Approved, Changes Requested, or Comment), summary, test results table, and evaluation details. |
QA.tech uses your connected GitLab OAuth integration to call GitLab APIs. That
means MR comments and review updates are posted through your connected GitLab
integration identity.
Automatic MR review triggering requires native GitLab deployment and
environment signals. If your flow does not publish those signals, use the
manual or CI-assisted
@qa.tech trigger path below.Set up GitLab MR reviews
Connect GitLab in Organization Connections
Go to Settings → Organization → Connections and connect GitLab.
Choose a repository in project integrations
Open Settings → Integrations, select GitLab, then choose the repository you want QA.tech to review.
Configure MR review behavior
In the GitLab integration settings, configure:
- Review Context (optional instructions for reviews)
- Auto-run on Merge Requests
- Include Draft Merge Requests
- Post Comment on Opened MR (post an introductory QA.tech comment when an MR is opened, including waiting/progress guidance)
- Environment Mapping (map GitLab environments to QA.tech applications)
Triggering a merge request review
Option A: Automatic trigger for native GitLab deployments
If Auto-run on Merge Requests is enabled, QA.tech can auto-trigger reviews when deployment data is ready from native GitLab deployments and environments. High-level behavior:- MR is opened or updated.
- QA.tech checks if the MR commit is the latest and deployment(s) for that commit are ready.
- If deployments are ready, QA.tech starts the review flow automatically.
- If deployments are not ready, QA.tech can post a waiting comment (based on your setting) and wait for deployment readiness or a manual
@qa.techtrigger.
Option B: Manual trigger using a GitLab comment
Comment on the merge request and mention@qa.tech.
Include the preview deployment URL in the same comment. QA.tech parses URLs from MR comments and uses that URL as deployment context for the review run. In practice, this is required for reliable review targeting.
Example:
Option C: CI-assisted manual trigger
If your deployment process is custom, have CI post an MR comment that mentions@qa.tech and includes the preview URL. This gives you a consistent trigger pattern without requiring developers to comment manually each time.
GitLab MR review troubleshooting
No review starts after MR open- Verify the repository is selected in GitLab integration settings.
- Check whether Auto-run on Merge Requests is enabled.
- Confirm deployment status is successful for the latest MR commit, or manually trigger with
@qa.tech. - If you are not using native GitLab deployment/environment signals, use the manual
@qa.techtrigger with a preview URL.
- Enable Include Draft Merge Requests if you want draft MRs reviewed.
- Make sure the comment is on the merge request and includes
@qa.tech(case-insensitive). - If you expect preview-aware testing, include the preview URL in that same comment.
API-driven GitLab CI/CD (manual test plan runs)
You can trigger QA.tech test plans from GitLab CI/CD using the REST API.Prerequisites
You need two values before configuring your pipeline:- API Token - Your QA.tech API token
- Test Plan Short ID - From your test plan (e.g.
pln_abc123)
Configure CI/CD variables
Store your API token securely:- Go to Settings → CI/CD → Variables
- Add variable:
- Key:
QA_TECH_API_TOKEN - Value: Your API token
- Protected: ✅
- Masked: ✅
- Key:
API implementation patterns
Basic setup
pln_abc123 with your test plan short ID (from your test plan page).
Run test plans on merge requests
Test preview deployments via API
Pass dynamic URLs between jobs using dotenv artifacts:You can also override device presets in the same request by adding
devicePresetShortId to each application object in the applications array. For example, to test the preview deployment on a mobile device preset: "applications":[{"applicationShortId":"app_frontend","environment":{"url":"'$PREVIEW_URL'"},"devicePresetShortId":"preset_abc123"}]. See Start Run API for details.Scheduled testing
GitLab Schedules vs QA.tech Schedules
GitLab Schedules vs QA.tech Schedules
Use GitLab schedules when:
- Tests should run as part of your CI/CD pipeline
- You need GitLab context (branch, commit SHA)
- You want to gate deployments on scheduled test results
- Tests should run independently of CI/CD infrastructure
- You prefer managing schedules in QA.tech UI
- You want to avoid consuming GitLab runner minutes
API tips
For shared API concepts and platform-agnostic workflows, see CI/CD Integration and Start Run API. The examples below focus on GitLab-specific usage.Finding your test plan short ID
- Go to Test Plans
- Click on a test plan
- Check the URL:
https://app.qa.tech/.../test-plans/abc123 - Use the test plan short ID in API payloads (for example:
pln_abc123)
Building JSON payloads
For complex payloads with dynamic values, write to a file first:Custom Slack notifications
Override notification channels per-run. See Notifications for details.Blocking mode
Wait for test completion before proceeding with deployments:Related Documentation
- CI/CD Integration - Overview of integration modes
- GitHub App for PR Reviews - GitHub version of exploratory PR reviews
- API Reference - Complete API documentation
- Test Plans - Create and organize test plans
- Preview Environments - Dynamic preview testing