Instrument Your Browser Tests With RUM

CI Visibility is not available in the selected site () at this time.

Overview

Test Visibility integrates with Datadog Real User Monitoring to provide you with the tools for deep analysis of your browser tests.

Compatibility

To enable RUM integration ensure that Test Visibility is set up for your tests and that the application being tested is instrumented using RUM.

RUM integration is supported for Cypress browser tests and Selenium-driven browser tests.

Cypress

  • cypress >= 6.7.0
  • dd-trace-js >= 1.7.0
  • browser-sdk >= 3.11.0

Selenium

  • selenium-js >= 4.11.0, dd-trace-js >= 5.11.0 / >= 4.35.0
  • selenium-java >= 3.141.59, dd-trace-java >= 1.34.0
  • selenium-dotnet >= 3.0.0, dd-trace-dotnet >= 2.51.0
  • selenium-ruby >= 4.0.0, datadog-ci >= 1.0.0.beta6
  • browser-sdk >= 5.15.0
From Browser SDK v5.0.0, enable the `allowUntrustedEvents` initialization parameter during the tests to correctly capture clicks.

Connect browser tests and RUM

If you use Cypress or Selenium to run your browser tests and the application being tested is instrumented using Real User Monitoring, your test results and their generated RUM browser sessions and session replays are automatically linked.

A Browser Sessions tab appears in the Test Visibility test details side panel.

Browser Session Tab in Test Detail

The RUM session has all the data that RUM normally collects so you can debug potential issues in your browser tests, such as unexpected errors.

Browser Session Tab Errors in Test Detail

Further reading

PREVIEWING: may/unit-testing