Troubleshooting
Run suite is disabled
Confirm that:
- A suite is selected.
- The suite contains at least one test case.
- An environment is selected.
- For Background D365 cases, the connection or selected execution persona has a reusable session.
- For Power Pages cases, the connection has discovered site metadata. Background Log in to portal steps need a connected portal persona; a portal-only suite does not require a connected Dataverse session.
- For Browser, the selected connection has an organisation or app URL and the Testgrity Recorder extension is installed, enabled, and detected in desktop Chrome or Edge.
- The suite does not require Background-only actions or D365 execution personas when you choose Browser.
Reconnect the relevant environment or persona if its saved session has expired. You can start multiple suites; capacity limits queue additional cases.
Connection shows Disconnected in red
Disconnected means the reusable sign-in is missing or has expired. The status text and status badges turn red to indicate that reconnection is needed. The Unattended badge also turns red, while Interactive remains blue. A connection can still be marked Selected while disconnected: selection identifies which environment your tests use.
The header badge distinguishes Expired from Disconnected and shows Expires soon within 24 hours of a known expiry. Open the connection selector for the expiry date and time. The manager continues to label expired sign-ins Disconnected.
Select the cog beside Connection, then the pencil icon for the required environment in Manage connections. Select Connect and complete authentication. A ready saved session changes the status to Connected. Browser execution uses the D365 session in your current browser profile, so confirm that you are signed in there as well.
Unattended Reconnect does not finish
Unattended connections require a dedicated account that can sign in using a username and password. Rejected credentials and recognised MFA screens return an error promptly. Other unattended browser-authentication waits share a 90-second budget. Check the account's access to the organisation; use Interactive browser sign-in when Microsoft requires MFA, passwordless sign-in, or another user step.
Browser execution is unavailable
The Browser option appears only when browser-extension execution is enabled for the deployment. If it appears disabled:
- Install or update the Testgrity Recorder extension using the instructions in Recording tests.
- Confirm that the extension is enabled in the same Chrome or Edge profile as Testgrity.
- Refresh Testgrity so it can detect the extension.
- Confirm that the active environment has a Dynamics 365 organisation or app URL.
- For Power Pages runs, use Recorder 0.4.11 or later. For D365 execution-persona, access-check, or custom-page cases, choose Background execution.
Contact the administrator if the option does not appear at all.
If the notice near the connection controls shows Browser automation needs Chrome or Edge, open Testgrity in desktop Chrome or Edge for recording, interactive sign-in, session capture, and Browser execution. Editing and Background execution remain available in the current browser with the required saved sessions.
A browser run does not start or stops early
- After installing, updating, or reloading Testgrity Recorder, refresh the Testgrity portal page before running again. Refreshing Dynamics 365 alone does not reconnect an old portal tab. Browser execution checks the extension again before creating a run.
- Allow the extension to open the D365 or Power Pages test tab, and keep it open until the run finishes.
- If video recording is enabled, use Recorder 0.4.15 or later and keep DevTools closed on the test tab. Recording starts automatically using the extension's debugger permission; it does not require a sharing popup.
- Confirm that D365 is signed in within the same browser profile.
- For Power Pages, sign in as the selected portal persona in the managed tab. Browser mode verifies that identity; it does not restore the saved persona's session or switch away from a different signed-in user.
- Do not close or navigate away from the test tab while the suite is running.
- If a step reports that an action is not supported by Browser execution, run the suite with Background execution instead.
- Browser runs produce browser diagnostic bundles instead of genuine Playwright traces. Use Background execution when a Playwright Trace Viewer artifact is required.
Docker still uses an older automation behavior
Local Docker execution uses a separately built image. After changing automation
code, rebuild it from the repository root with
docker build -t d365-test-automation-portal ., then start a new run. If
LOCAL_RUNNER_DOCKER_IMAGE is configured, rebuild that image tag instead.
Updating Testgrity Recorder affects Browser execution; Docker uses its image's
compiled automation code.
Form fields can finish loading before the Dynamics command bar. Docker execution waits for the actual Save/Save and Close control, its Save menu, or the record's More commands button, then waits for menu items to appear. It ignores hidden duplicates and unrelated Timeline menus. If the command bar still does not become available, inspect the report screenshot and trace for application-loading or connection errors. Extra fixed-delay steps are not required for normal command bar loading. Rebuild the local image to pick up command-readiness fixes.
The suite stays queued
Queued runs may be waiting for scheduled dispatch or an available execution worker. If the status does not change, contact the administrator and provide the suite name, environment name, and approximate queue time.
The test browser session closed before execution finished
This means the test page, browser context, or browser closed before the action completed. It does not establish that a table name or other action target is incorrect. The suite log and full report show the same summary. Open Report and expand Technical details to inspect the original error. Retry the run and, if it repeats, ask the administrator to check the runner logs for that run.
D365 asks for sign-in during a run
Reconnect the active environment in the browser to renew its saved session before starting another Background run. Some tenants require MFA or Conditional Access interaction during reconnection.
Power Pages sites or portal users are missing
Open Manage connections, select the connection's globe icon, and select Refresh. Sites and URLs come from Dataverse metadata; the portal URL is read-only. If no usable URL is shown, correct the site configuration in Power Pages, then refresh again. Sites must use public HTTPS URLs.
Reconnect the Dataverse connection and check its access to website tables if discovery reports a warning. Contact search also needs access to Dataverse contacts and the portal identity tables. If detection cannot read a contact's provider, enter the persona details and choose the provider manually.
A portal persona will not authenticate
- For Local account, confirm that local sign-in is enabled on the site and supply the portal username and password. The password is not saved; re-enter it when reconnecting.
- For external providers, complete sign-in in the portal tab before selecting Save captured session. Keep the persona manager open on Power Pages users; switching tabs or closing it cancels capture.
- Check Expected signed-in identity and Identity verification page. The
current persona form uses the
#emailaddress1field on/profile/by default. Ask an administrator for help if the site's identity field differs. - If Testgrity reports an expired session or cannot verify the portal identity, authenticate that persona again under Manage personas → Power Pages users. Refreshing the D365 connection alone does not renew a portal session.
A case shows Review required or cannot be saved
Legacy cases with both D365 and Power Pages steps stay visible as Mixed platforms · Review required. Choose a platform and move the other platform's steps into a separate case before saving. Saved cases keep their platform; create a new case to target the other platform. Both cases can remain in the same suite.
Suite deletion asks what to do with cases
Choose Move cases to another suite and a destination in the same project, or Delete the linked cases to permanently remove them with the suite. No choice is selected automatically. If moving is disabled, create another suite in the project first. The default suite cannot be deleted.
Metadata is unavailable or outdated
- Select the cog beside Connection.
- Reconnect the intended environment if needed.
- Select its database icon to open Manage metadata.
- Select Retrieve entity list or Refresh model, then confirm the needed entity is included.
Metadata reflects the selected environment. Published D365 customisations may need time to become available.
If refreshing continues to return a stale or unusable model, select the trash button beside Refresh model, confirm removal, and then select Retrieve entity list. Removing the cache temporarily switches supported steps to text fallback but does not delete saved tests or the environment connection.
Start Recording is disabled
Confirm that an environment is selected. If the recorder workspace asks for an extension, install it and select Reload & check in Testgrity. In hosted deployments, recording also requires the browser extension or a configured remote recorder.
Recording produces no events
- Confirm the recorder reports Recording before interacting with D365.
- With the extension, use the D365 tab in the same browser profile as Testgrity.
- Refresh the D365 page after installing or updating the extension.
- Stop and reset the session, then begin a new recording.
The last field value is missing from a recording
- Install or reload the latest Testgrity Recorder extension, then refresh both Testgrity and the D365 page.
- After typing, move to another control, select Pause, or select Stop in the recorder sidebar. These actions flush a pending field change before the recording state changes.
- Wait for the pending item in the sidebar to become a generated step before closing the D365 tab manually.
- If the value is still missing, use Review in Designer and add or correct the field step before saving.
A recorded grid click has the wrong action
The recorder distinguishes record links in grid cells from buttons elsewhere on the page. Update or reload the browser extension and record the interaction again. If the generated step is still incorrect, choose Review in Designer and replace it with Open record, Select record row, or Click button, as appropriate.
An action cannot find a target
- Check spelling if the step uses typed text.
- Refresh metadata and reselect the target.
- Confirm the correct app and area are open before table or command actions.
- Add Wait for form ready or Wait for grid load after navigation.
- Use the report screenshot, video, or trace to see the UI state at failure time.
A negative test fails unexpectedly
Open the full case report and inspect each step's Expected and Actual values. A step set to expected failure fails the test if the action succeeds. It also may fail for the wrong reason, so verify that the reported error represents the business rule being tested rather than a missing target, timeout, or authentication problem.
An artifact is unavailable
Screenshots, video, diagnostic traces, and detailed execution reports depend on workspace settings, retention policy, deployment configuration, and the runner that executed the test. If screenshot capture, video recording, or trace generation was switched off before the run, the related button is not shown in the report. A report can still contain step status and error information even when an artifact was not produced or has expired.
Browser runs can create extension-recorded WebM videos after tab-capture authorisation and browser-diagnostics ZIPs when trace generation is enabled. Genuine Playwright traces require Background execution.
Account deletion is unavailable or fails
- Cancel or wait for all queued and running tests in affected workspaces to finish.
- If prompted, sign out and sign in again before retrying.
- Confirm with your administrator that Microsoft Entra account deletion is configured for the deployment.
- Remember that restoring a deleted Microsoft Entra identity does not restore deleted Testgrity projects, tests, environments, results, or artifacts.
Report or feedback is unavailable
Report a bug and Feedback appear only when reporting is enabled for the deployment and you are authenticated. If either form says the service is unavailable, contact your workspace administrator. If a submission fails, try again after a few minutes and make sure screenshots are PNG, JPEG, or WebP files no larger than 5 MB each and 10 MB in total.
When escalating a problem, include the project, suite, case, environment, run date, result status, and the relevant error text. Do not send passwords or saved authentication files.