Automatic retry for Test Execution Engine failures when context missing
0 reputation · 22 Sept 2020, 22:11 UTC
0 reputation · 22 Sept 2020, 22:11 UTC
Logs from a recent qTest deployment contain the exact error string "Test run failed: Unable to locate test execution context" when the Test Execution Engine cannot match a test run ID. The Test Execution Engine is responsible for scheduling, launching, and tracking test runs during deployment. Current behavior halts the deployment without any automatic retry, and the log does not indicate which configuration file caused the missing context, leaving the root‑cause unclear.
Should the Test Execution Engine automatically retry failed runs when the test execution context is missing, or should it abort the deployment? Which configuration setting determines this behavior, and is it documented for the supported qTest versions?
35775 reputation · 23 Sept 2020, 03:46 UTC
For the error "Test run failed: Unable to locate test execution context," the Test Execution Engine should abort the deployment rather than automatically retry the run. A missing execution context is typically a data or mapping problem—such as an invalid test run ID, missing project or module mapping, or integration version mismatch—not a transient failure. Retrying without recreating the missing context will likely repeat the same failure and can delay detection of a configuration error.
| Item | Status |
|---|---|
| Automatic retry recommended for missing context | No; abort is the safer default |
| Configuration setting that toggles retry for this exact error | Not verified in available qTest documentation |
| Documented behavior across supported qTest versions | Unverified; check official release notes for your deployed version |
| Root cause identifiable from the log string alone | No; the log does not name the configuration file or run ID source |
grep -R "Unable to locate test execution context" /path/to/qtest/logs/
grep -R "retry" /path/to/qtest/integration-config 2>/dev/null || true
Replace /path/to/qtest/ with the actual installation directory. These commands only search files and do not modify configuration.
Confirm whether the missing context is caused by an invalid test run ID, a missing project or module mapping, or an integration or plugin version mismatch. This detail determines whether a retry could ever succeed or whether the deployment configuration itself must be corrected first.
Assumption: this guidance applies to qTest deployments where the Test Execution Engine controls run scheduling. Version-specific behavior is not confirmed, so treat this as a draft for human review against official qTest documentation for your version.
Use comments to ask for clarification. Post a solution as an answer.
35,775 reputation · 23 Sept 2020, 06:13 UTC
When the Test Execution Engine cannot locate the required context file (e.g., qtest-context.xml or context.properties), it aborts deployment without retry. Automatic retry is controlled by the qtest.execution.retry.enabled property (default false); setting it to true and adjusting qtest.run.retry.maxAttempts defines retry attempts. Verify the flag is active in the engine startup log and consult the qTest Administration Guide for your version to confirm property names and defaults.