Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/testing/k6/author-run.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/testing/k6/author-run/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
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.
- k6 Script Authoring mode generates production-ready k6 scripts from descriptions, observability data, or existing scripts using AI.
- 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.
Was this page helpful?
Related resources from Grafana Labs


