Instrument Your Browser Tests With RUM
CI Visibility is not available in the selected site () at this time.
Overview
Test Optimization 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 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
cypress
>= 6.7.0dd-trace-js
>= 1.7.0browser-sdk
>= 3.11.0
Selenium
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
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 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.
Further reading
Additional helpful documentation, links, and articles: