Running tests and reviewing reports
Run a suite
- Select Run in the header.
- Select a suite from Suites. Its badge shows the total case count; the app and globe icons underneath show the D365 and Power Pages counts. The bottom-right date shows its latest execution in run history; hover for the full date and time.
- Confirm the connection name and environment URL in the Run suite card. In Manage connections, it is marked Selected.
- Choose Background (shown as Local during local development), Docker when enabled, or Browser from the execution selector.
- For Background or Docker execution, confirm that the required D365 connection or execution-persona sessions are ready. Power Pages cases use their own portal sessions, as described below. For Browser, select a Dataverse connection and confirm that Testgrity Recorder is installed and detected in desktop Chrome or Edge.
- Select Run suite to start immediately.

Hover over or select the information icon beside Run suite to review how the execution session and identity are used. Keyboard users can focus the icon and dismiss the popup with Escape.
The portal starts the suite with the selected runner, queuing Background runs for an execution worker. You can start multiple suites. If execution capacity is in use, additional test cases remain queued and start automatically when capacity becomes available.
Run Power Pages cases
A suite can contain separate D365 and Power Pages cases and uses one execution mode for the run. Power Pages actions support Background and Browser execution.
- Background opens each portal anonymously and restores the selected portal persona only at Log in to portal. Portal sessions are separate from D365. A portal-only suite can run using cached site metadata without a connected Dataverse session; authenticated steps still need a valid portal persona.
- Browser requires Recorder 0.4.11 or later and uses the portal login in the current browser profile. Log in to portal verifies the selected persona's identity. It does not restore saved cookies, sign out the current user, or clear browser storage. Complete any prompted sign-in in the managed tab. A different signed-in identity fails verification.
For reliable anonymous testing, use Background execution or a browser profile signed out of the portal. In a mixed-platform suite, D365 cases still need their own connection or persona authentication and supported actions for the selected runner. D365 execution-persona, access-check, and custom-page cases require Background execution. See Testing Power Pages for setup.
Schedule a suite
Select an unattended execution mode (Background, Local, or Docker), then select Schedule run to open the scheduling form. The button is hidden for Browser execution because Browser runs require an open user tab. Scheduled runs support one-time, daily, and weekly recurrence in an IANA time zone. Choose an environment with the sessions needed by the suite, select the local date or weekday and time, and optionally add failure-notification recipients. Use Add schedule to configure more than one schedule for the same suite.
A suite containing only Power Pages cases can be scheduled with cached site metadata even if the Dataverse connection is disconnected. Any Log in to portal steps still require valid saved portal sessions when the schedule runs.
Scheduled execution is Background-only because Browser runs require an open user tab and extension. Each schedule creates its next occurrence in Run history as Scheduled. Future scheduled occurrences do not consume the user's active-run slot. Once due, an occurrence shows Queued while it waits for dispatch and capacity; recurring schedules then add their next scheduled occurrence. Use Turn off schedule to cancel the selected schedule's future occurrence.

Run in Browser
Browser sends the suite to the Testgrity Recorder extension and runs it sequentially in the current Chrome or Edge profile. This mode uses the D365 or portal session in your browser instead of Testgrity's saved automation session, making it useful for MFA, interactive debugging, and environments that cannot use stored automation credentials.
D365 cases with an execution persona use that persona's encrypted session rather than the connection's default session. A suite may contain cases assigned to different personas; each case receives a fresh browser context for its selected identity. Run these suites with Background execution. Browser execution cannot enforce a case persona because it uses the current browser profile.
When the run starts, Testgrity opens a managed test tab for D365 or the selected Power Pages site. Keep that tab open until every case finishes. The extension displays the final passed or failed result, starts a 7-second countdown, and then closes the test tab automatically.
With Recorder 0.4.15 or later, Browser video starts automatically when a run begins. There is no sharing popup, extension-button approval, or extra recording tab. The extension uses its existing debugger permission to record only the managed test tab while it is on the selected Dynamics 365 environment or configured Power Pages sites. Each case receives a separate silent WebM video, sampled at up to 10 frames per second and scaled to fit 1600 × 900. Chrome or Edge may show its normal debugging banner. Keep DevTools closed on the test tab; canceling the debugging connection stops the run. If video encoding cannot start, the test continues without video and shows a warning. Debugger access is required for native keyboard input and Save confirmation. Ordinary steps can continue without video if recording cannot start.
Recorder 0.4.20 or later waits for each action result and its page, grid, form, or dialog readiness checks, then waits for visible loading/saving indicators to clear. Ordinary steps never wait for all background requests to finish. A usable application document is checked directly even if the browser tab still reports loading because of a child frame or background resource; visible Saving dialogs and unconfirmed writes still block progression. Save separately observes only writes started during that Save and requires a confirmed write response or an explicit already-saved form state; Save and Close also waits for the form to close. Validation errors, rejected writes (including errors inside a batch), and unconfirmed saves stop progression. Save monitoring is released after the step, so old requests cannot block later actions. Timeouts include the condition that is still blocking progress, and an attempted step that times out is recorded as failed before the run stops. Only readiness checks are retried; executed actions are not replayed when their response is lost. Add a verification step for later background business-process results.
Recorder 0.4.21 opens metadata-selected apps directly using their saved app ID or URL and waits for the committed destination and visible app header. It does not depend on the app tiles rendering; label-only steps still use tile selection. A duplicate-record dialog blocks Save and is reported as duplicate detection. Use unique names or resolve existing test records when rerunning creation tests.
Recorder 0.4.22 recognizes a new Saved status in the main form header, including a leading dash. That new status can confirm Save while unrelated background writes or Timeline loading continue. An existing Saved label cannot confirm a later Save on its own, and a visible Saving status, validation error, rejected write, or failed save batch still blocks progression. Timeline loading is handled by Timeline-specific actions rather than blocking other form steps.
Recorder 0.4.23 retries Save confirmation once if its first confirmation check times out. The managed tab shows a rechecking message, and the runner gives the original save up to one additional confirmation window. It does not click Save again, refresh the page, or repeat the write. Duplicate/validation errors, rejected writes, debugger cancellation, and run cancellation do not trigger this retry. If the second check still cannot confirm completion, the Save step is recorded as failed and the run stops.
Recorder 0.4.24 scopes Select record row and Open record to exact matches in visible grid rows. Search input values and unrelated page links cannot match a record. Selection is confirmed before the next step, and opening waits for navigation and the record form. Multiple matching rows fail with a message asking for a unique record name or a narrower search.
Recorder 0.4.25 allows up to 60 seconds for each form/grid loading check, grid filter refresh, and navigation check in Browser execution. Each Save confirmation check also allows 60 seconds; the single confirmation retry gives Save up to 120 seconds total. Confirmed errors still fail immediately. These are maximum waits, and successful checks advance as soon as readiness is confirmed.
Background and Docker Save actions also check visible duplicate-record dialogs, form validation, failed save requests, and rejected operations inside batches. They require positive save confirmation rather than accepting an existing-record Save after a fixed delay. Save and Close waits for the form to close. Confirmation allows 60 seconds and one additional 60-second check; the Save command is never replayed. Duplicate warnings are reported as failures without clicking Ignore and save. Rebuild the local Docker image after updating automation code.
Background and Docker also inspect rejected response bodies to recognize duplicate detection before its dialog appears, including failed operations inside a batch. Confirmed duplicates receive the same report message as Browser execution. An HTTP 412 response without duplicate evidence keeps the broader duplicate-detection or record-concurrency explanation.
Browser execution currently supports common recorded actions, including opening apps and navigation targets; opening records, tabs, command buttons, and Save; setting and clearing fields; keyword filtering; key presses; waits; and text or field-value checks. If a case contains an unsupported action, that step fails with a message identifying the unsupported action. It does not fall back to another runner.
Press key setup: install or update Testgrity Recorder to version 0.4.2 or later, accept its new debugger permission if prompted, and reload existing Dynamics 365 tabs. An unpacked development extension must be reloaded from the browser's extensions page. The extension uses browser-level keyboard input, attaches to the managed run tab in the selected environment, and shares the debugging connection with any configured video and Save confirmation; without video, each keyboard or Save connection is released after that step. Chrome or Edge may display a debugging banner. Close DevTools on the test tab if attachment fails. If your organisation blocks debugger access, use Background execution instead; Browser execution reports a failure rather than pretending the key worked.
Key presses act on the currently focused control, and shortcuts vary by control and app. A successful Press key step means the browser accepted the keyboard input, not that a record was saved or another business outcome occurred. Focus the intended control first, then add a suitable wait and verification step to confirm the result.
Browser runs create screenshots and videos according to workspace settings. When trace generation is enabled, Browser mode creates a Testgrity browser-diagnostics ZIP containing the step timeline, page URLs, results, errors, and artifact links. It is intentionally distinct from a Playwright trace because the extension does not run inside a Playwright browser context. Browser results also receive HTML and JSON summaries generated by the Playwright reporters after the extension finishes each case. Background execution remains the recommended mode for unattended and parallel runs and genuine Playwright traces. Browser execution remains sequential in the current browser profile.
Interactive connections can also run in the background while their encrypted MFA-authenticated session remains valid. If Microsoft redirects a worker to sign-in, MFA, or Conditional Access, Testgrity stops the run, marks the connection as expired, and asks you to reconnect it in the browser before trying again.
Trigger a suite from CI/CD
The Run view can export a managed-run trigger for GitHub Actions or Azure
DevOps. Expand Trigger from CI/CD, select a suite and connection, choose the CI provider, and preview, copy,
or download the generated YAML. CI/CD always runs the saved suite in the
background on Testgrity, one test case at a time, regardless of the manual
execution mode selected. The pipeline waits for the result and fails when a case fails,
execution fails, or the run is cancelled. Existing CI scripts continue receiving the
outcome-based passed/failed status from the run-status endpoint. CI clients can
request ?statusFormat=lifecycle to receive the new lifecycle status and check
failedCases separately. Interactive connections must have a saved background session;
reconnect the connection if prompted before exporting.
A workspace owner or administrator must create the pipeline credential:
- Open the profile menu and select API tokens.
- Enter a descriptive name, choose an expiry, and select Create.
- Copy the full token immediately. It is shown only once.
- In GitHub, save it as an Actions repository secret named
TESTGRITY_API_TOKEN. In Azure DevOps, use a secret pipeline variable with that same name.
The token can run suites and read their status only in the workspace where it was created. Return to API tokens to see when it was last used or revoke it immediately. API tokens are shared workspace credentials: every workspace owner and administrator can view and revoke them, while members cannot open API-token management. The list shows who created each token for attribution. Revoking a token stops every pipeline that still uses it.
Connect issue trackers and create defects
Workspace owners and administrators can open Integrations from the profile menu and add a GitHub, Azure DevOps, or Jira Cloud connection. During setup, select one or more Testgrity projects that should use the connection. Each project can use one issue-tracker connection; projects can share a destination or use different providers and destinations. Assigning a project to a new connection moves it from its previous connection.
Use Edit → Verify connection to test the currently entered destination and credential without saving changes. Use Disconnect to stop a connection while retaining its settings and project assignments, then use Connect to verify and re-enable it. Use Delete to permanently remove its saved credential and assignments. Deleting a connection does not delete bugs already created in the external provider.

Select Create bugs automatically to create a defect when a test result ends
in failed. Testgrity creates one defect per stable failure fingerprint. A later
run with the same failure adds a comment to the existing defect instead of
creating a duplicate. The run report displays the external defect link and its
occurrence count.
If automatic creation is disabled, a failed run report displays Create bug when its project has a connected destination. Review or edit the generated title and description, then create the bug manually. The same fingerprint rules prevent duplicate bugs and link repeat failures to the existing defect.
Generated defects include failure context, reproduction steps, and links to available evidence. Recorded step values are excluded by default. Review test names, comments, targets, and error messages to ensure they do not contain credentials or confidential customer data.

Monitor or cancel a run
Suite runs show these states:
- Scheduled — waiting for its planned time.
- Queued — ready and waiting for dispatch or a worker.
- Running — cases are executing or waiting for their turn.
- Completed — all cases finished, including cases with failed outcomes.
- Failed — an identified execution problem, such as a worker failure, timeout, browser crash, or expired session, prevented normal completion.
- Cancelled — cancellation was requested before completion.
Scheduled is a display distinction; the underlying run status remains queued until execution begins.
Case results continue to show Passed, Failed, or Cancelled separately. An ordinary failed step is a case failure; not all step errors can be reliably classified as infrastructure errors. Cleanup has its own status and does not change the suite outcome. PostgreSQL converts older outcome-based Passed and Failed runs to Completed; JSON storage converts Passed runs and retains Failed statuses. Their case outcomes remain available, but historical technical failures cannot be distinguished reliably. Scheduled-run occurrences continue to show Passed or Failed for the overall case outcome, and failure notifications still include completed suites with failed cases.
The suite name remains visible above Run history, with its case count and report scheduling and insights actions. Each run uses a status badge and a colour accent. Its compact summary shows case totals, passed and failed cases, and the pass percentage. Active counts appear while a run is queued or running. The execution method is Background, Local, Docker, or Browser; older runs without a recorded method show Unknown. A readable run ID, such as RUN-00029, appears beside each run's action menu.
Timestamps follow the run state: Scheduled, Queued, Started, or Finished. Live case and step progress remains visible even when Test case reports is collapsed. Click anywhere on that disclosure row to review the individual cases. Each case shows its name, case ID, platform icon, and status; failed cases include a short failure summary. Open a case's details to review its start and finish times, Run as identity, expected result, and any access evidence. The environment is shown once on the parent run. Technical error details are available in the full report. The Report action becomes available after a case reaches a final status.
Active runs receive live progress events and fall back to periodic status refreshes if the event connection is interrupted. No manual refresh is normally required.
Run history is loaded 10 runs per page. Search by run ID or environment, select a status, and select the funnel icon (Filters) to show the From and To date range. Select Apply to search or Clear to reset. Filters run on the server and cover older pages as well as the currently visible runs. Use the previous and next buttons to page through matches.
Open the three-dot menu on an active run and select Cancel run to request cancellation. An action already in progress may take a short time to stop.
Open the three-dot menu beside a run ID to access its actions. Completed runs provide:
- Export CSV — one row per case result for spreadsheet analysis.
- Export JSON — complete versioned suite and case result data, including step details.
- Evidence ZIP — CSV and JSON reports, an evidence manifest, screenshots, videos, traces, and native Playwright report files that are still retained. The manifest records any expected artifact that could not be included.
- Print summary — a concise executive view suitable for printing or saving as PDF.
- Delete run — permanently removes the completed run, all case reports, and every related attachment.
Active runs provide Cancel run instead and must be cancelled or allowed to finish before deletion.

Review suite insights
Select Insights beside the selected suite name to analyse its latest 10 completed runs without pushing the run history farther down the page. The dialog includes:
- Pass-rate trend — the success rate for each sampled run, oldest to newest.
- Run composition — the total Passed, Failed, and Cancelled case outcomes across the sample.
- Recurring failures — cases that failed more than once, including their failure rate, recurring step, and latest failure.
Cancelled outcomes remain visible in the composition and are not counted as failed cases. Close the dialog to return to run history.

Schedule report emails
Select Schedule reports beside the suite name to send the latest completed run on a daily or weekly schedule.
- Choose Daily or Weekly. Choose Off to stop scheduled delivery.
- Enter up to 20 recipient email addresses, separated by commas or new lines.
- For a weekly schedule, choose the delivery day.
- Choose the local delivery time. Testgrity displays the time zone used for the schedule.
- Select Save.
The email contains the run status, key totals, cases requiring attention, and a sign-in-protected link to the printable summary. Evidence files are not attached to email; recipients open Testgrity to access them. If the suite has no completed run when delivery is due, that delivery is skipped and the next occurrence remains scheduled. The dialog shows the next delivery and the outcome of the previous delivery when available.

Configure run evidence
Open the profile menu and select Settings to choose which evidence is created for future runs.
- Screenshot capture turns screenshots on or off.
- Screenshot mode controls whether screenshots are captured for every step, failed steps only, the final result only, or not at all.
- Video recording turns run videos on or off.
- Generate trace creates a Playwright trace for Background runs and a browser-diagnostics ZIP for Browser runs.
- Run log retention controls how long completed run logs and all of their attached evidence are kept.
Saving a shorter retention period immediately removes expired suite logs, case reports, screenshots, videos, traces, and native reports from the workspace. Capture settings apply to future runs. Run logs and their attachments are retained and removed as one unit.

Open a case report
- Expand Test Case Reports beneath a suite log.
- Expand a case for its start and finish times, Run as identity, and Expected result. Failed cases show the readable error once, with the failing step when known.
- Select Report for the full run report.

Read the full report
The compact report header shows the test name, case ID, app type, and status. Back, Create bug (when available), and Export stay visible while you scroll. The execution summary labels the start and finish times, duration, Connection / Execution, recorded Run as identity, and expected result. Connection and execution share one field, such as D365 test · Local runner, preserving the two-row desktop summary. Execution uses the saved suite run's mode; older results without a recorded mode show Not recorded. Run as shows Default when no named identity is present.
Failed reports show the failing step and a readable explanation at the top. Expand Technical details for the underlying error, or select Jump to failed step to open and focus its step entry.
Run history, report timestamps, and date-range filters use the Time zone saved in your user profile. Times remain stored in UTC, and CSV/JSON exports retain the original UTC timestamps. Scheduled runs and report emails keep their independently selected schedule time zones.
Use Export CSV to download one row per recorded step, or Export JSON to download the complete versioned case result and step data.
In CSV exports, only failed rows have error fields: error contains the readable explanation and observedError contains the original technical message. Passed steps do not inherit the case's overall error. JSON exports retain the complete recorded errors and observed outcomes.
The Step log shows the recorded-step counts and compact rows containing the step name, duration, status, and available screenshot. Failed steps are expanded initially; select any step row to expand or collapse its details. Expanded steps retain targets, configured values, field values, observed results, and access-policy evidence. Expected-failure steps are labelled explicitly. Each step's Technical details contains its action ID, timestamps, expected result, and recorded errors.

Available evidence may include:
- A screenshot for an individual step.
- A run video.
- A diagnostic trace for timeline, network, console, and page inspection.
- Detailed HTML and JSON execution reports.
Artifacts prioritises screenshots and video. Expand Diagnostic downloads for available traces, browser diagnostics, and Playwright HTML or JSON reports. An empty state explains when no downloads were recorded. Availability depends on workspace settings, retention policy, deployment configuration, and the runner that executed the test. Use Back to return to the same suite and run context. Cookie preferences, Report a bug, and Feedback are in the utility footer below the scrolling report.
Investigate a failure with AI
A workspace owner or administrator can open Settings and select Enable AI investigation. This setting saves immediately. PostgreSQL, migration 061, and a configured Azure AI Foundry deployment are required. Disabling investigation prevents new provider requests; previously saved analysis remains readable while its source evidence is current.
Open a failed case report, expand AI failure investigation, then select Analyse failure. The panel starts collapsed, like the Designer's AI description panel. Select its heading again to close it; reopening preserves the analysis, including an analysis that finishes while the panel is closed. The panel leads with What went wrong, an AI explanation based on the screenshot and recorded error, and Recommended resolution. AI reads visible validation messages, dialogs, and page state alongside the error rather than repeating the failed step. For example, if the screenshot shows an empty required field while the error reports a Save timeout, the explanation can identify the visible validation problem and recommend completing that field. If the inputs do not establish a cause, the explanation says so.
The panel shows the issue and recommended resolution. Evidence links below them open the supporting report or step. The message and resolution are the model's interpretation of the actual inputs, not fixed step templates or a confirmed root cause. Existing analyses made with the previous format need Refresh analysis. Analysis never changes recorded pass/fail, edits a test, reruns it, changes permissions, or submits a defect.
When the screenshot/error indicates a test-definition problem, Suggested test-case changes identifies steps to add before or after a numbered step, or an existing step to modify. Each recommendation names the supported action, describes the edit in sentences, and explains why it addresses the failure. For example, it can recommend adding Set field value for a missing required Account Name before Click Save, or correcting an existing field-entry step. It uses the snapshot tested in this run, so review the current case in Designer before editing. Suggestions never change or save the case automatically. Connection and runner failures should be fixed in their configuration rather than by adding steps. No case-change section appears when no edit is justified.
On Analyse failure, the server sends the current failed step's PNG screenshot (or the report's failure screenshot if the step image is unavailable), up to three bounded recorded error messages, and structured run context to the configured Azure AI deployment. The deployment must support image input. Images are supplied directly as image data, without public screenshot URLs. Screenshots can contain visible business information and are not automatically redacted; obvious credentials are redacted from error text. Full logs, videos, traces, browser storage and authentication state are excluded.
The model also receives a bounded portion of the tested step definition, including step numbers, action labels, field names and whether values were provided. Entered step values, comments and custom scripts are excluded. Recommendations must use supported actions and step numbers from the supplied snapshot. Missing or truncated definitions limit the edits that can be recommended.
Screenshots must belong to this report and be no larger than 5 MB or 40 million pixels. The report shows which inputs were available. If a screenshot has expired, is unsupported or cannot be read, AI uses error text only and this is disclosed. If neither an image nor an error is available, generation is disabled rather than charging for a generic explanation. Screenshot content and error changes invalidate saved analysis. Durations include waits and evidence capture and are not performance benchmarks.
The comparison uses up to three compatible previous reports from the latest 50 retained reports for the same case and connection. Suite, execution mode, recorded identity, explicit platform, and expected outcome must match. Missing snapshots, identity evidence, or execution mode prevents comparison. Each bundle includes only a bounded window around the failed step; older or unmatched history is not used. The panel explains when compatible history or failed-step detail is absent.
Saved analysis includes provider/model, prompt version, evidence version, and timestamp. Reopening a report reuses it without charging another request. Select Refresh analysis to make a new request, including after evidence/history changes. Stale analysis is hidden so removed evidence cannot remain linked. Analysis is removed with the source report under the existing retention policy; CSV/JSON/evidence exports continue to contain recorded execution evidence.
Requests share the workspace AI limit of 30 attempts per hour, including failures and explicit refreshes. Provider quota also applies. Timeouts, unavailable providers, and rate limits leave the report usable. A failed refresh keeps the last saved analysis. Interrupted requests are not retried automatically: retry explicitly, allowing up to four minutes for an interrupted request's lease to expire. A run-only CI token cannot use investigation or change its settings.
Print an executive summary
Open the three-dot menu on a completed suite run and select Print summary. The summary leads with the suite name, status, and outcome totals. Execution context includes Connection, Execution, timestamps, duration, and the retained Evidence count. A single Case results table shows each case once, in run order, with Status, Run as, and Detail. Failed and cancelled cases have readable explanations; other cases show a dash in Detail. On mobile, the same information appears as one card per case. Select a case name for its detailed report, or Back to run history to return to the same suite and run. Active-run summaries distinguish running and pending cases from recorded cancellations. Select Print or save PDF to print the page or create a PDF. Navigation and action controls are hidden in print, table headers repeat across pages, and individual rows stay together where they fit on a page.

Interpret positive and negative tests
- A Positive test expects every step to succeed.
- A Negative test contains at least one step expected to fail.
- The report passes when observed step outcomes match those expectations.
For example, a validation step marked as expected failure is successful when the application rejects the invalid operation. The report distinguishes the expected failure from an unexpected automation error.
Variable values in reports
Case variables start fresh for each execution. Step details show resolved input values and Variable: name entries when a Set variable or output capture changes a value. JSON exports retain those changes and the saved case snapshot. A missing or type-invalid variable fails the run; an output conversion failure stops the case before the next action. Browser execution requires Recorder 0.4.31 or later. Variables alone do not enable cleanup; use the separate case setting below.
Automatic Dataverse cleanup
In a D365 case, expand Details, enable Clean up created Dataverse records, and save. Run the case or its suite in Browser or Background mode. The setting is off by default and requires PostgreSQL with durable workers enabled. Browser mode requires Recorder 0.4.32 or later and a saved connection session using the same identity as the current Dynamics tab. Reconnect the connection if that saved session is missing or expired. Persona cases still require Background.
Cleanup tracks explicit Create Dataverse record actions and recognised root Create requests from explicit Save steps on model-driven record forms. Supported form transports are direct JSON Web API POSTs and multipart batches containing one root Create. Existing record updates are not adopted for cleanup. The intent is recorded before a Create is sent. Browser form Saves are armed before clicking Save, so interruption before request capture remains visible as an uncertain outcome. Existing client-generated form GUIDs are accepted only after an exact absence check. Interrupted Create and Save requests are never replayed. API requests explicitly rejected with HTTP 429 can retry with the same reserved identity after the server's cooldown.
Phone Call, Task, Appointment, and Email form Saves can include up to 100 activity participants bound to existing records. Cleanup reserves and stores each link's exact ID before Save, verifies its activity, participant and role before deletion, and confirms that the links disappear with the activity. Referenced contacts and users are preserved. Apply database migration 074 before deploying this support.
Autosave, keyboard shortcuts, custom buttons, offline synchronization, deep inserts other than these tracked activity participants, bulk creates, and records created by flows or plugins are outside this scope. Unsupported recognised Create payloads are blocked before dispatch; unrecognised Save outcomes remain uncertain instead of being assumed clean.
After completion, failure, timeout, or cancellation, the worker processes a separate durable cleanup queue. It restores the original connection/persona and checks its Dataverse identity, the record creator, creation time, and current record version. Records are processed in reverse creation order. Browser leases are renewed while the case runs; another worker or the periodic dispatcher recovers expired leases, including after a closed tab or extension restart. Standard, nonvirtual Dataverse tables are supported.
Cleanup waits while Background tests are running in the same saved environment,
and while its suite still has queued cases there, to reduce competing API traffic.
The Dataverse client reuses metadata within each cleanup attempt. On HTTP 429 it
honors Retry-After, checks cancellation while waiting, and makes bounded retries.
Longer cooldowns are preserved in the durable cleanup queue. Keep parallel test
execution low when a Sandbox is throttling; other automation using the same
Dataverse identity also contributes to its service protection limits. See
Microsoft's service protection guidance.
The case report's Dataverse cleanup panel shows tracked IDs, form Save sources, per-record outcomes, attempts, and errors. Cleanup preserves the original functional result. There are up to three automatic attempts with delayed retries. An interrupted Create has a short reconciliation delay. An unconfirmed ID that remains invisible is reported as uncertain rather than assumed safe.
If cleanup needs attention, reconnect the original identity or resolve the reported permission, record version, or relationship problem, then select Retry cleanup. This queues another bounded set of attempts without rerunning the case. JSON case/suite exports include the ownership manifest. Reports with unresolved cleanup are retained and cannot be manually deleted.
Account and Contact records can have native embedded CustomerAddress rows. Cleanup records their exact IDs, address slots, creator, creation time, and parent ownership before allowing their native cascade. It also checks those addresses' relationships and verifies that they are absent after the parent is deleted. Their IDs are available under tracked embedded address records in the report. Additional addresses or other related records outside the manifest still block deletion. A disabled SharePoint document projection is treated as absent only for its exact integration-disabled error and after checking that this record has no physical document locations. Permission errors continue to block cleanup. See Microsoft's customer table documentation.
Cleanup does not undo external side effects of plugins or flows. Concurrent relationship changes are outside the parent record version check. Use a dedicated test environment. The manifest is limited to 500 intents per case, with at most three native embedded addresses per customer record. Relationship checks are bounded to 200 relationships and fail closed on incomplete metadata.