Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Browsing latest articles
Browse All 196 View Live

Why do I need those sleeps

try { await page.goto(url); await page.locator('//*[@id="username-authenticator"]').click(); sleep(1) await page.locator('//input[@id="username"]').type(ssns[u]); sleep(1); await...

View Article


Unable to run k6 test using docker image

I am trying to run a k6 test using the grafana/k6 docker image. I am testing a gRPC service running locally. Here’s the command that I have tried: docker run -i -v...

View Article

Capturing Network Requests in k6 Browser Tests

I’m using k6 browser for browser-based load testing of our web application and need to capture all network requests made by the application during these tests. We need to capture and analyze all...

View Article

Passing expected checks is outside the describe in the output

Hi there, Sorry if I confused you with the title, but here is what I’m facing now after migrating to 0.52 version (actually now on 0.53). This is my test script example: await...

View Article

K6 browsers more than 1 vus

I try to run more than 1 vus, but whenrver I try to add something to commandline this show up: PS C:\dist\fido2-performance-test> where.exe chrome.exe C:\Program Files\Google\Chrome...

View Article


Multiple File Upload using setInputFiles with k6 browser

Hello Team. First of all - thank you for the amazing product. Question: I’m trying to do a bulk file upload to the following DOM and cannot make it work. <input...

View Article

Blocking sse extension

I’m using K6 and the sse extension to write some complex load tests that require a combination of http posts and SSE events. I was surprised that the “open” blocked the entire test. Someone else had...

View Article

Locator timeout

in playwright locator in python I can use timeout directly on locators: loggedin = page.locator('//h1[@class="page-title" and (text()="Your keys" or text()="Dine nøkler")]').is_visible(timeout=1000)...

View Article


Load testing Telegram bots using k6 - xk6-telegram

What is the status of the xk6-telegram extension - GitHub - Maksimall89/xk6-telegram: A k6 extension for creating telegram notifications. It has been listed on the xk6 grafana documentation as a...

View Article


Distinct metrics output using --out json

I have created a metric/Trend. When using the --out json and --iterations 4, I see my metric 4 times as expected. However, how do I correlate each with a specific iteration? 1 post - 1 participant...

View Article

Unable to upload .png image in K6

Hello Grafana Community, I hope this message finds you well. I’m reaching out for assistance regarding an issue I’ve been facing with K6 while trying to upload an image file. I have the following...

View Article

K6 runners fail on high rps

Hi all, I am able to run load test via k6 operator for smaller loads ie rps however when i try to run for larger rps and high number of parallelism i see failures in load test jobs with error Job has...

View Article

Is my below Load test script with stages is correct?

I am new to K6 Load test, below is the snippet of my load test using stages. Is it correct? I want to start from 1 vu and then increase to 200 and then to 0. Also, what would be the command to execute...

View Article


Image may be NSFW.
Clik here to view.

Locator multiple elements returned for selector query

try { await page.locator('button.bp-button').click(); // await page.locator('button.bp-button[name='Login']").click(); } catch (error) { console.log("error:" + error); exec.test.abort(); } returns...

View Article

Testing a single api with different payload

Hi Team, I need to create a test with k6 to assess the performance of an API endpoint using ten different types of payloads. Additionally, I want to establish a threshold for each payload type. How...

View Article


Image may be NSFW.
Clik here to view.

K6 Percentile Metric to Open Telemetry

Is there a way to include the http_req_duration percentile (e.g., 95pct) metric to an Open Telemetry collector using the xk6-output-opentelemetry? I’m using the otel/opentelemetry-collector-contrib...

View Article

Succesfully have a Synthetic Test

Hey, I’m investigating Grafana Synthetics and created some browser checks with the Chrome Recording and k6 DevTools. The issue I’m facing is that the script succeeded four steps of the check, which is...

View Article


Image may be NSFW.
Clik here to view.

Loop in one scenario vs loop in one scenario

Hi When I have one test in scenario, I get a lot of lock errors when browser restarts: ERRO[0084] cleaning up the user data directory: remove...

View Article

Interrupted iterations if I don't close the socket

I have a test with lot of socket connections (50K) and I intensionally want to keep the socket connection because my systeam broadcast messages and I need to test the load of that broadcast over 50k...

View Article

How to connect to URL:port/service in grpc

Hi, I got a little weird set up from developer as this URL: URL:80/serviceGrpc When I try to connect to this URL in k6 as: client.connect('lb-100-117-243-191.lbaas.jpe2c.dcnw.rakuten:80/subgrpc',...

View Article

K6 gRPC script works locally but times out on staging/production environment

import grpc from ‘k6/net/grpc’; import { check, sleep } from ‘k6’; export const options = { insecureSkipTLSVerify: true, }; const client = new grpc.Client(); client.load([‘definitions’],...

View Article


Deprecation of tlsAuth.domains

Hi, when I run k6 I get the warning message “tlsAuth.domains option could be removed in the next releases. it’s recommended to leave it empty and let k6 automatically detect from the provided...

View Article


Image may be NSFW.
Clik here to view.

Confusion about the ramping-arrival-rate executor

I am following the k6 tutorial on spike testing which uses the ramping-arrival-rate executor to increase the request rate instantaneously. Here is the test definition import http from 'k6/http';...

View Article

How to group by url for vital metric?

Hello, Im executing k6 browser test and sending metrics to a influxdb and can select and view the vitals but when i want to group by url then there is issues since the url is not a Tag in Influxdb....

View Article

WebSocket latency metric

I’m trying to benchmark a WebSocket echo server based on latency. My goal is to send as many messages as possible for 1 minute using X concurrent connections. I have written the following script:...

View Article

Browsing latest articles
Browse All 196 View Live