Author and run tests
k6 emphasizes a code-based approach to testing, which makes it easier to modularize scripts, track changes, and automate tests. This code-based approach carries over to cloud execution, which has a few extra scripting capabilities and tags. In the following topics, read about how to author and run tests in Grafana k6:
However, along with the scripting API, the Grafana Cloud k6 ecosystem provides some supportive tools to speed up test creation and facilitate collaboration across different roles.
Tools to prototype tests
To author tests quickly, you can use the following tools:
- The Test builder is a graphical test builder.
- The Script editor is a web-based editor in k6 cloud.
- The Browser recorder is a browser extension that generates a k6 script from a browser session.
- The HAR converter turns a HAR file into a k6 test script.
All these tools make portable scripts, which you can later modify in your code editor.