Manage Your Browser Tests Programmatically

Overview

Monitoring your application end-to-end is crucial to understanding your users’ experience. The Datadog test recorder allows you to simplify configuration for these complex testing workflows. However, you may want to manage your Synthetics resources programmatically and define browser tests with the API.

Manage your browser tests with the API

Datadog recommends creating your browser tests in the Datadog UI first and retrieving your tests configurations with the API.

  1. Create a browser test and save a recording.
  2. Use the Get the list of all tests endpoint to retrieve the list of all Synthetics tests.
  3. Filter on type: browser and retrieve the public_ids of the browser tests you want to manage with the API.
  4. Use the Get a browser test endpoint to retrieve the configuration files of every browser test.

You can store the browser test configuration files for later usage or use them to duplicate, update, and delete your browser tests programmatically.

Further Reading