Dotcom-Monitor supports importing Playwright for .NET tests into a Playwright monitoring device. After importing a test, review and update the script in the built-in editor, configure monitoring settings, and execute the test from Dotcom-Monitor monitoring locations.

Use imported Playwright tests to monitor browser-based user transactions, such as signing in, navigating between pages, searching, and completing checkout workflows.

Only Playwright for .NET tests are supported.

Supported .NET test frameworks include:

  • MSTest
  • NUnit
  • xUnit

How Playwright Monitoring Works

The Playwright monitoring device executes your imported test according to the configured monitoring schedule. It records execution results, response times, and failures, and generates alerts when the test does not complete successfully.

Because the device runs your existing Playwright test, you can use the same browser automation for both functional testing and synthetic monitoring without maintaining a separate monitoring script.

Import a Playwright Test

Before importing a Playwright test, verify that it is written using Playwright for .NET and runs successfully in your local development environment.

To import a Playwright test into Dotcom-Monitor:

  1. Create a new Playwright monitoring device. For instructions, see Creating a Monitoring Device.
  2. Import your Playwright test.
  3. Review the imported script in the built-in script editor and update environment-specific values, such as URLs, credentials, variables, or validations, if necessary.
  4. Set the Script Timeout value. This timeout, measured in seconds, defines how long the system waits for the Playwright test to complete before ending the monitoring session and reporting an error.
  5. Configure monitoring options, including monitoring locations, execution frequency, schedules, and alert groups.
  6. Save the device.

After the device is saved, monitoring starts immediately. Active executions are available on the Session Log page, and subsequent executions follow the configured monitoring schedule.