Quantcast
Browsing latest articles
Browse All 321 View Live

How to stop k6 websocket test

import http from 'k6/http'; import { check, sleep } from 'k6'; import ws from 'k6/ws'; import { MessageEncoderDecoder } from './messageEncoderDecoder.js'; import { WebSocket } from...

View Article


K6 - Azure integration repository is archived

Seems that the example repository has been archived. https://github.com/grafana/k6-example-azure-pipelines But there is nothing on the readme in regards of possible alternative? Or way to do a setup...

View Article


Browser mode does not work

I am using the latest version 0.57. I aim to use K6 browser mode but the browser does not open. I am adding console logs and see that the URL is constantly null. I am using the script from K6’s...

View Article

Data Parameterization - Retrieving unique data

Hi Team, Referring Docs - Retrieving unique data, scenario.iterationInTest My test data is stored in testData.json file In my request URL I want to pass random unique set of test data in variable...

View Article

Sending individual scenario threshold metrics to Datadog

Hello, Is there a recommended way to send threshold metrics to Datadog with a setup that looks like this: Thresholds per scenario: "thresholds": { "http_req_duration{scenario:1}": ["p(95)<400"],...

View Article


AB Testing in K6 Browser

Hello k6 Community! I’ve been doing a spike into K6 Browser for my organisation, and got a little confused with the custom metrics. I am looking to model an AB Test, which in the protocol-level API I...

View Article

Xk6 go installation not working on macOS with go 1.24, command not found: xk6

I am trying to install xk6 on local machine (arm 64), but binary xk6 not getting added to bin folder. Getting error command not found. ➜ ~ go version go version go1.24.1 darwin/arm64 ➜ ~ go install -v...

View Article

Achieve the require TPS query

Hi Team, I want to perform 30min ramp up for 500 users and then 1 hour it should be continuously targeting 30 TPS and then ramp down all the users in 10min. which executor and how can i achieve this....

View Article


Image may be NSFW.
Clik here to view.

Make the Node.js ecosystem available for k6 tests

xk6-plugin v0.1.0 is here ! Create k6 plugins using JavaScript and Node.js The xk6-plugin k6 extension makes the Node.js runtime available to k6 tests using k6 plugins. Plugins are executed by a...

View Article


How to allow automatic download files - k6/browser

Hi! Is it possible to set an option in k6/browser to automatically download files in the browser? Has anyone tried doing this before? I’m trying to write a test where I download multiple files. After...

View Article

Unable to record traffic in K6 Studio - no requests are captured

I am trying to record a simple script using the example documented here. After entering “test-api.k6.io” and selecting “Start recording”, the Chrome browser pops up with the k6 webpage as expected,...

View Article

Help with k6 Ramping-Arrival-Rate Executor

Hi all, I’m currently working on performance testing using k6 and facing an issue with request rates and failures. I have a k6 script using the ramping-arrival-rate executor with the following stages:...

View Article

K6 Failed to push trace samples to the cloud

I am attempting to enable traces in our k6 cloud run tests following the documentation here: Correlate results with Grafana Cloud Traces | Grafana Cloud documentation The service endpoint I am calling...

View Article


Unable to convert har file into test generator/js file

Hello Team, We are using k6 studio for browser recording. But in our company, many teams are using different tools and especially chrome web developer for recording the UI functionality. It would be...

View Article

Planning to contribute into xk6-amqp extension

Hi Team, We are planning to contribute into xk6-amqp extension, but it is archived. Any plan to unarchive it, so we can contribute on same. Otherwise, shall i fork it and contribute. Please suggest....

View Article


External scripts not completing validation in k6 Studio

I was trying different script examples from the Grafana k6 docs pages in k6 Studio. For whatever reason, these two scripts do not complete the Validator process. Steps to reproduce (using k6 Studio...

View Article

Clarifying dropped iterations definition

Hi, all. I have been trying to do a large load testing by k6 browser. So, I was trying to do that with constant-arrival-rate executor. My goal is to hit the 50k transactions per hour, but I got the...

View Article


Not able to run a k6 script through an executor with blazemeter

Hello, this is my script: import { browser } from 'k6/browser'; import { check } from 'https://jslib.k6.io/k6-utils/1.5.0/index.js'; import { Trend } from 'k6/metrics'; const transactionDuration = new...

View Article

Xk6 result for each web page individually

Currently group() function is not supported with async function. In my angular based web app, value typing and button submission does not work without async/await. so I cannot use group() function. I...

View Article

OTP code generation in k6 UI Performance testing

Hi all, I’m just starting with UI Performance testing with k6 and I want to integrate MFA/OTP in one of my tests I have a secret key, which I can use to generate the OTP code and use it in my tests I...

View Article

Image may be NSFW.
Clik here to view.

[Feedback wanted] Grafana PR process analysis**

Hi grafana community, I’ve been studying collaboration patterns in successful open source projects and included grafana in my research. I’d be grateful if you could check if our analysis matches your...

View Article


Run K6 tests in jenkins using docker image

I’m working on a Jenkins pipeline using the grafana/k6:0.57.0 Docker image, but I’m encountering an issue where commands within the container (e.g., ls, k6 version, etc.) are not executing when using...

View Article


Error when running basic script with k6 browser

Hi, I’ve experimented with k6 scripts and I was getting these errors : ERRO[0063] cleaning up the user data directory: remove my-computer\AppData\Local\Temp\k6browser-data-1697464291\lockfile: The...

View Article

Error msg="process with PID 68 unexpectedly ended: signal: killed"...

Hello, I am trying to run front end load test with 100 users but it is encountering the following errors level=error msg=“Uncaught (in promise) waiting for navigation: timed out after 1m0s”...

View Article

Http_req_failed high on output.json but succed on console output

Hi Team, I just run loadtest k6 using this script import http from 'k6/http'; import { check, sleep } from 'k6'; // Accept these status codes as successful // http.setResponseCallback( //...

View Article

Browsing latest articles
Browse All 321 View Live