Record k6 scripts right from the browser with the ability to automatically upload them to Grafana Cloud.
Grafana k6 Browser Recorder Extension
The extension records all of the HTTP(S) requests that your browser makes, creates a test script, and allows you to upload the test to your Grafana Cloud account, where a load test can be executed.
Once uploaded to your Grafana Cloud account, you can edit the test script using the powerful high-level language JavaScript. The script editor has syntax highlighting and a linter is run on save to help you avoid syntax errors and other common scripting mistakes.
Read more
Once uploaded to your Grafana Cloud account, you can edit the test script using the powerful high-level language JavaScript. The script editor has syntax highlighting and a linter is run on save to help you avoid syntax errors and other common scripting mistakes.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Grafana k6 Browser Recorder", "version": "1.0.6", "manifest_version": 3, "description": "Record k6 scripts right from the browser with the ability to automatically upload them to Grafana Cloud.", "homepage_url": "https://grafana.com/products/cloud/k6/", "author": "Grafana Labs", "minimum_chrome_version": "109", "permissions": [ "debugger", "browsingData", "storage", "tabs", "unlimitedStorage", "webRequest", "webNavigation", "downloads", "offscreen", "scripting", "activeTab" ], "host_permissions": [ "*://*/*" ], "icons": { "32": "images/[email protected]", "48": "images/[email protected]", "64": "images/[email protected]", "128": "images/[email protected]" }, "action": { "default_icon": { "32": "images/[email protected]", "48": "images/[email protected]" }, "default_title": "Grafana k6 Browser Recorder", "default_popup": "popup.html" }, "commands": { "toggle-recording": { "suggested_key": { "default": "Ctrl+E" }, "description": "Toggle start stop recording", "global": true } }, "externally_connectable": { "matches": [ "*://*.grafana.net/*", "*://localhost/*" ] }, "content_scripts": [ { "matches": [ "*://*.grafana.net/*", "*://localhost/*" ], "js": [ "inject-extension-meta.js" ], "run_at": "document_end" }, { "matches": [ "https://grafana.com/orgs/*" ], "js": [ "extension-config-alert.js" ], "run_at": "document_end" } ], "options_ui": { "page": "options.html", "open_in_tab": true }, "background": { "service_worker": "background.js", "type": "module" }}
Read more