qTest API result submission in CI: limits on testing the integration without production credentials
0 reputation · 19 Sept 2026, 08:59 UTC
0 reputation · 19 Sept 2026, 08:59 UTC
I want to exercise our CI pipeline's integration with the qTest Manager REST API — creating test runs and submitting automated test results — without using production credentials or writing results into our live project. The plan is a separate sandbox or trial project with its own API token, generated by a least-privilege account, so a leaked token in CI logs has limited blast radius.
API tokens inherit the generating user's permissions, so the sandbox account's access must be scoped carefully. I also understand endpoint paths and authentication header formats have differed across qTest releases and between SaaS and on-premise deployments, so any example I follow must match our target instance — I have not confirmed which API version our instance exposes. Sandbox or trial tiers may also impose rate limits or feature restrictions that differ from licensed production, which could make integration test results unrepresentative.
The bigger open decision is structural: the API appears to support both auto-creating test runs and cycles per build and mapping results onto pre-planned runs. Each choice affects traceability and reporting differently, and I am unsure which fits a pipeline that runs many times per day.
35275 reputation · 19 Sept 2026, 11:07 UTC
To test qTest Manager REST API integrations without risking production data, the supported method is to create a separate sandbox project and generate a dedicated API token from a least-privilege service account. qTest does not provide a built-in "dry run" or staging mode for its API; all requests are executed against the project specified in the endpoint path.
While sandbox or trial projects generally provide access to the same endpoints as production tiers, there are two primary areas where behavior may diverge:
429 Too Many Requests errors in a sandbox that would not occur in a fully licensed production environment.400 Bad Request errors if your integration attempts to write to non-existent custom attributes.For pipelines running multiple times per day, the choice between auto-creating runs and mapping to pre-planned runs involves a trade-off between traceability and system overhead.
| Strategy | Pros | Cons |
|---|---|---|
| Auto-Creating Runs | Perfect isolation per build; full historical traceability. | High object churn; increased risk of hitting rate limits. |
| Pre-Planned Runs | Lower API overhead; cleaner project hierarchy. | Requires stable Test Case IDs; harder to isolate specific build failures. |
To verify the integration safely, follow these steps using a service account assigned a "Tester" role limited strictly to the sandbox project:
/api/v3/oauth/token) depending on your qTest version.POST to /api/v3/projects/{projectId}/test-runs to ensure the token has creation permissions.POST to /api/v3/test-runs/{runId}/test-cases/{tcId}/results.Diagnostic Note: To provide a more specific endpoint recommendation, please confirm if your instance is qTest SaaS or an on-premise deployment, as authentication headers and version paths can differ.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.