Instrument Your Browser Tests With RUM
CI Visibility is not available in the selected site (US1) at this time.
Test Optimization integrates with Datadog Real User Monitoring to provide you with the tools for deep analysis of your browser tests.
To enable RUM integration ensure that Test Optimization 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
>= 6.7.0dd-trace-js
>= 1.7.0browser-sdk
>= 3.11.0
selenium-js
>= 4.11.0, dd-trace-js
>= 5.11.0 / >= 4.35.0selenium-java
>= 3.141.59, dd-trace-java
>= 1.34.0selenium-dotnet
>= 3.0.0, dd-trace-dotnet
>= 2.51.0selenium-ruby
>= 4.0.0, datadog-ci
>= 1.0.0.beta6browser-sdk
>= 5.15.0
playwright
>= 1.38.0dd-trace-js
>= 5.46.0browser-sdk
>= 5.15.0
From Browser SDK v5.0.0, enable the `allowUntrustedEvents` initialization parameter during the tests to correctly capture clicks.
If you use Cypress, Selenium, or Playwright 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 Optimization test details side panel.
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.
Additional helpful documentation, links, and articles: