Menu
Open source

Using the k6 DevTools recorder

The k6 DevTools recorder lets you record user journeys using Chrome DevTools and then export them as a k6 script.

Before you begin

To ensure you have a useful test output:

Note

Using the DevTools recorder doesn’t require a Grafana Cloud account.

Create a script from a recording

  1. Install the k6 DevTools Recorder Chrome extension.
  2. Record a session using the Chrome DevTools Recorder.
  3. Export the user flow and choose the k6 Browser option.
  4. Edit your script as necessary. Depending on the type of test, you might need to change different aspects of the script. Typical changes are for load options and to handle correlation and dynamic data.
  5. Run the test from the CLI or Grafana Cloud k6. Refer to Running k6 for more details.