-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Problem Statement
In Azure App Testing (Playwright Workspaces), we can create a Test Run using the Reporting/Data Plane API:
https://<region>.reporting.api.playwright.microsoft.com/playwrightworkspaces/<workspaceId>
Today, the create payload only accepts minimal metadata (e.g., displayName, provider), and the newly created Test Run is initialized with status RUNNING.
There is no documented way to update that existing Test Run to a terminal status (e.g., Server_Complete) and attach final run metadata after execution is finished.
Proposed Solution
Enable a PATCH operation on the Reporting API for Playwright Workspaces to update an existing Test Run’s status and final metadata.
Endpoint (data plane):
PATCH https://{region}.api.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/test-runs/{runId}?api-version=
Follows the same request pattern as the current “Create or Update” Test Run operation documented for Playwright Workspaces, extended to accept status and completion details or similar.. For example.
{
"displayName": "Checkout E2E - Build 2025.12.08",
"status": "Server_Complete",
"summary": {
"total": 128,
"passed": 124,
"failed": 4,
"skipped": 0,
"durationMs": 327_940
},
}