This is documentation for the next version of K6. For the latest stable release, go to the latest version.
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:
- Review the Be sure to record realistically and Consider hybrid approach for load testing websites sections on Create tests from recordings.
- Learn the basics of k6 browser tests with Running browser tests.
Note
Using the DevTools recorder doesn’t require a Grafana Cloud account.
Create a script from a recording
- Install the k6 DevTools Recorder Chrome extension.
- Record a session using the Chrome DevTools Recorder.
- Export the user flow and choose the k6 Browser option.
- 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.
- Run the test from the CLI or Grafana Cloud k6. Refer to Running k6 for more details.