Running Tests
Run individual ContextQA tests or test plans, monitor live case and plan execution, stop active plans, review results, and trigger runs through MCP.
Documentation owner: Deep Barot · Last updated: November 11, 2026
Quick answer
Run one test case from its Test Cases detail page for focused feedback. To execute a suite, add it to a test plan and choose Run Now. Monitor an active plan from Runs → Live execution, where ContextQA separates running cases from queued cases; select the run summary for its report or Stop Run to interrupt the remaining work.
Key takeaways
Run one test case from its Test Cases detail page for focused feedback.
You have at least one test case created and saved.
Running a single test case is the primary feedback loop during test authoring.
What this page covers
In the portal, you can run a single test case for focused feedback or run a test plan for suite-based coverage. A test suite organizes cases, while the test plan supplies the browser or device, environment, parallelism, and other execution settings. Depending on the test type and run configuration, evidence can include screenshots, video, network logs, console logs, and root cause analysis. Executions can also be triggered from supported automation surfaces.
Prerequisites
You have at least one test case created and saved.
You have an environment configured with a valid base URL.
For test plan execution: you have a test plan configured with at least one suite and an environment selected.
Running a Single Test Case
Running a single test case is the primary feedback loop during test authoring. Use it to verify a new test case immediately after creation, or to investigate a failing step in isolation.
Steps
Open the test case from Test Cases.
In the test case editor, click the Run button (▶) in the top toolbar.
A dialog appears asking you to confirm the execution environment. Select the environment from the dropdown and click Run.
The test is queued immediately. A banner appears at the top of the editor showing the execution status.
Click View Live Execution (or the execution ID link in the banner) to open the live execution viewer.
The test case executes step by step. Each step shows a real-time pass/fail indicator as it completes.
Running a Test Suite Through a Test Plan
The Test Suite detail page does not have a direct Run Suite action. To run every case in a suite from the portal, add the suite to a test plan and run that plan. This keeps the execution target, environment, and parallelism explicit and reusable.
Steps
Open Plans → Test Plans.
Create a plan or open an existing plan that contains the required suite.
Confirm the suite is mapped to the intended browser or device and that the plan uses the correct environment.
Return to the Test Plans list and click Run in the plan's Actions column. You can also open the plan and use Run Now.
Open the plan's Runs tab. During an active run, select Live execution to review running and queued cases, or Run history to inspect earlier runs.

The plan queues the cases in its suites according to its saved execution configuration. The resulting report groups outcomes by suite and test case.
Running a Test Plan
A test plan execution is the most complete form of test execution. It runs multiple suites against configured browsers and an environment, and is the entry point for CI/CD automation and scheduled runs.
Steps
Navigate to Plans → Test Plans.
Click on the test plan name to open it.
Click Run Now in the plan header. The execution starts immediately using the plan's configured suites, browsers, and environment.
The plan begins executing. All configured suites start based on the plan's parallelism settings. Results are grouped by suite and test case in the execution report.
If the plan has no executable test cases, Run Now is disabled. Add cases to a selected suite before retrying.
Monitor a test plan in real time
The plan-level Live execution view answers a different question from the single-test viewer: it shows how work is distributed across the active plan.
Open the plan and select Runs.
Select Live execution while the plan is active.
Review RUNNING and QUEUED totals at the top.
In the executing list, confirm each case's suite and browser or device.
Review the queued list for cases waiting for an execution slot.
Select the run ID summary to open the corresponding report.
The Test Plans and Schedules page headers also show organization execution capacity: running executions, the parallel capacity limit, and queued work. Use this before starting a plan to anticipate whether it will run immediately.
To interrupt an active or queued plan, select Stop Run from the plan's run control. Completed work remains available in the run report; cases that did not finish are reflected in the final run outcome.
Monitor an individual test in real time
Open a live run from an external trigger
An Azure DevOps workflow, MCP agent, or another approved external trigger can return a ContextQA live-run link. After an authenticated user opens it, the entry page displays Connecting to your run, the test-case ID, and an elapsed timer while it looks for the execution session.
If the run is live and joinable, ContextQA opens the live execution screen.
If the run has already completed, ContextQA opens its result.
If the live session is still starting, the page continues checking for up to approximately one minute before falling back to the saved result, the most recent result, or the test case.
Do not replace this link with a raw internal session URL. Share the published ContextQA live-run link only with users authorized for the same organization and workspace.
Read the live execution viewer
When an individual test executes, clicking the execution link opens the live execution viewer. The viewer updates in real time via a WebSocket connection.
Layout:
Left panel — the full step list with real-time status icons:
✓ Green — step passed
✗ Red — step failed
▶ Blue — step currently executing
○ Grey — step not yet reached
Right panel — a live screenshot of the browser at the current step. The screenshot refreshes after each step completes.
Bottom panel — the network request log, showing each HTTP request as it is made during execution.
The live view remains open after execution completes, allowing you to scroll through screenshots and network entries without leaving the view.
Execution disruption and automatic retry
If a live execution is disrupted, ContextQA tries to recover your run automatically instead of leaving it in a failed state.
When this happens, a recovery dialog opens over the live execution view with a short countdown. The dialog identifies the recovery action available for your run and starts it when the countdown ends.
Recovery dialog controls
While the countdown runs, you can:
Rerun now / Reconnect now
Starts the recovery immediately instead of waiting for the countdown.
Cancel auto-rerun / Cancel auto-reconnect
Stops the countdown and leaves the dialog open with a manual restart button.
Back To Test Case
Closes the dialog and returns to the test case without restarting.
Closing the dialog in any way — clicking Back To Test Case or Close, pressing Esc, or clicking outside it — cancels the pending recovery, so nothing restarts unexpectedly.
If you cancel the countdown, the dialog stays open with a manual restart button. Use it to restart the run yourself whenever you are ready.
After ContextQA recovers a run for you, a banner confirms that your run has resumed. Dismiss the banner with its close button once you have read it.
The duration in the run header is re-anchored to the server-recorded execution start after a reconnect, rejoin, or temporary event gap. It therefore represents the run's total elapsed time rather than the time since you reopened the viewer.
Viewing Results After Execution
When execution completes, click View Detailed Report from the execution summary banner or from the Execution History list.
The detailed report contains:
Execution Summary
Overall status: Passed / Failed / Aborted / Stopped
Duration: total execution time
Browser and version
Environment used
Number of steps: total, passed, failed, skipped
Step-by-Step Breakdown
Each step is listed with:
Pass/fail status
Step description
Screenshot captured at that step (click to view full size)
Duration for that step
Self-healing indicator (if the step was auto-healed)
For failed steps: the AI-generated root cause analysis
Video Recording
The report includes a full WebM recording of the browser session. Use the video to see exactly what happened in context — especially useful for failures that are hard to diagnose from static screenshots alone.
Network Log
The network log is accessible from the Network tab in the report. Each request shows details such as the method, URL, status code, and response time, with request and response data where captured. Use the network log to:
Identify 4xx or 5xx responses that caused UI failures
Verify that the correct API endpoints were called with the correct payloads
Diagnose authentication token expiry
Console Log
The Console tab shows all browser console entries captured during execution, timestamped and correlated with the active step. Look for console.error entries to find JavaScript exceptions that may explain unexpected UI behavior.
Root Cause Analysis
For any failed step, the Root Cause tab shows the AI-generated analysis. The root cause analysis:
Identifies the most likely reason for the failure (element not found, assertion mismatch, network error, JavaScript exception)
Distinguishes between test-level failures (the step was wrong) and application-level failures (the app has a bug)
Suggests specific corrective actions (update the step description, fix the element reference, investigate the API error)
Parallel Execution
Parallel execution runs multiple test cases or test suites simultaneously across multiple browser instances, reducing total execution time.
Enabling Parallel Execution at the Test Plan Level
Open the test plan and click Edit.
In the plan settings step, set the Parallel Node count to control how many test cases execute simultaneously.
Enable the Run Test Suites in Parallel toggle to run all suites simultaneously, or leave it disabled to run suites one at a time.
Click Save.
Concurrent browser limits apply per workspace based on your subscription tier. If all concurrent slots are occupied, new test cases queue and start as slots become available.
Execution from MCP / API
ContextQA exposes execution capabilities through the MCP server, allowing AI coding assistants and CI/CD scripts to trigger and monitor tests programmatically.
Execute a Single Test Case
Execute a Test Plan
Polling for Execution Completion
Retrieving Step Results
Recover a queued, timed-out, or missing result
Do not start a duplicate execution merely because the client stopped receiving updates. Preserve the original run identity, establish the last confirmed state, and return an Unknown verdict when terminal evidence is unavailable.
Capture the recovery record
If the start call did not return a stable run reference, classify it separately as an ambiguous start. Do not repeat it automatically unless the current contract provides an idempotency key or a safe way to look up the original attempt.
Decide from the last confirmed state
QUEUED and within the agreed queue budget
Pending
Keep polling at the documented interval
QUEUED beyond the client’s budget
Unknown
Preserve the run reference; inspect workspace capacity and execution history
Active/running and status reads still succeed
Pending
Keep polling within the bounded execution budget
Active/running beyond the gate budget
Unknown
Stop client polling; inspect the same run rather than starting another
Documented terminal execution with result
Pass or Fail from result
Open the saved result and required evidence
Canceled, aborted, stopped, not executed, or other incomplete outcome
Unknown unless team policy is stricter
Record exact state and owner; do not report a pass
Status read fails but the run reference exists
Unknown during recovery
Retry only the safe read with bounded backoff
Run/result cannot be found
Unknown
Verify workspace/account, resource ID, and execution history; escalate with sanitized evidence
Use the exact values returned by the connected tool or public contract. Unknown values remain Unknown until the integration owner updates the state mapping.
Avoid uncontrolled duplicate runs
Before a new attempt, answer:
Does the original run still exist in Execution History?
Is it queued, active, terminal, or missing?
Can another run mutate shared data, send messages, create orders, or consume limited resources?
Does the source contract support idempotent start or correlation lookup?
Who authorized the new attempt?
If a new attempt is approved, give it a new correlation/run reference and preserve the original record. A later pass must not erase a timeout, lost result, or first failure.
Escalate with sanitized evidence
Include:
test case/plan ID and non-secret run reference;
expected workspace and environment;
start and last-status timestamps with timezone;
last confirmed state and sanitized error text;
whether the run appears in Execution History;
browser/device and application build identity;
client/server version or API contract revision; and
steps already attempted.
Remove authorization headers, tokens, cookies, credentials, private test data, and temporary signed artifact URLs.
For a release gate, test the full failure matrix in the CI integration acceptance runbook.
Re-running Failed Tests
After reviewing a failed execution, you can re-run either the full test case or only the failed steps.
Re-run full test case:
Open the execution report.
Click Re-run Test Case in the report header.
Re-run from a specific step:
Open the execution report.
Locate the first failed step.
Click the three-dot menu on that step → Re-run from This Step.
Re-running from a step is useful when the first few steps are setup steps that are known to be correct — skipping them saves time when iterating on a failing assertion.
Tips & Best Practices
Always verify a new test case with a manual run before adding it to a test plan. Running the test case once from the editor catches obvious issues before they pollute automated suite results.
Use parallel execution for independent tests. If your test cases do not share state (each one starts from a fresh browser session), parallel execution provides the fastest feedback. Sequential execution should be reserved for cases with explicit state dependencies.
Monitor network logs for intermittent failures. If a test fails sometimes and passes other times (flaky behavior), the network log often reveals an intermittent API timeout or a race condition in the application's data loading.
Set up Slack notifications for critical plan executions. In the test plan settings, configure a Slack channel to receive execution results. This ensures failures are surfaced immediately rather than discovered during the next manual review.
Use the video recording for stakeholder communication. When reporting a genuine application bug found by ContextQA, include the video recording in the bug report. Stakeholders who are not familiar with the test tool can immediately see what went wrong from the video.
Troubleshooting
Execution stays in QUEUED status for an extended period Your workspace may have exhausted its concurrent execution slots. Check the Execution History list to see how many executions are currently RUNNING. If multiple long-running test plans are occupying all slots, wait for them to complete or contact support to increase your concurrency limit.
Steps are failing due to "element not found" but the element is visible in the screenshot The screenshot captures the browser state after the step attempted to act, not before. The element may have been present before the step but changed state (disappeared, became disabled, or was replaced by a loading spinner) during the step's execution. Check the network log for a slow API call that might have caused a loading state at the critical moment.
The video recording is not playing in the report Video recordings are processed asynchronously after execution completes, so a recording may not be available the moment the run finishes. If the video is not ready when you open the report, refresh the page after a short wait. If it remains unavailable, contact support.
Parallel execution is producing intermittent failures that do not reproduce in sequential mode This typically indicates that the test cases are sharing state they should not be sharing — for example, using the same user account in multiple parallel tests. Each parallel test should use a distinct user account or dataset to avoid conflicts.
Related Pages
Headed execution and browser-dependent behavior
Review the test case's headed/headless execution setting when a workflow depends on browser presentation or printing. Validate the same mode that the release pipeline uses; a pass in one mode does not establish equivalent behavior in the other. Preserve the selected mode with the run configuration.
For a stopped plan, use the Not executed filter to identify missing work before rerunning. A partial plan with passing executed cases still leaves untested scope. See initial and after-auto-fix results.
Last updated
Was this helpful?
