Questions tagged [k6]

k6 is a backend infrastructure load testing tool written in Go which runs load tests written in JavaScript.

k6 is an open source performance analysis tool for testing backend infrastructure load.

k6 itself is written in Go and runs load test scripts implemented in JavaScript with support for at least ES5.1. Some newer features are also supported through Babel. k6, formerly loadimpact, is owned by Grafana Labs.

k6 supports a variety of common load testing requirements:

  • Scenarios
  • Open and closed workload models
  • (Custom) metrics
  • Thresholds
  • Different protocols, including HTTP, WebSocket, and gRPC
325 questions
0
votes
1 answer

Websites load testing using k6 from multiple IP addresses

I am planning to do a load testing of an e-commerce website, where request I want to simulate from 100 IP addresses. New to k6 any input will help. Even input for jmeter will also help. Thanks.
0
votes
1 answer

does xk6-file support to delete a row from csv file?

I am using the xk6-file read and write for csv files in my k6. I want to know that does this xk6-file can use for delete a row from csv? Reference: https://github.com/avitalique/xk6-file
VSR
  • 33
  • 1
  • 6
0
votes
1 answer

K6 javascript how to pass xml parameter

Below is the code of K6 that parse the XML SOAP request... so I want to pass parameters into XML data, how to do that from CSV or defined variable. import http from 'k6/http'; import { check, sleep } from 'k6'; const soapReqBody =…
VSR
  • 33
  • 1
  • 6
0
votes
1 answer

How to store a response json body to local storage in k6 load test scripts?

Want to use response body item in different post issue in my script. Is there any way holding response body item anywhere and getting that item in another post issue? Searched for k6 load test scripts but didn't find anything.Searching for…
0
votes
0 answers

socket.setInterval doesn't loop on k6 websocket test

I'm trying to test a websocket on k6 and socket.setInterval doesn't loop. Notice how I print "principal" in every loop. The server I'm using has been tested and it doesn't have any problem. The fact that Socket.setInterval just stops looping it's…
0
votes
1 answer

Changing number VUs doesn't affect number of actual number of http requests sent in k6 load test

So, I started from 1 VU, and ended with 199, after that value of VUs number of checks doesn't grow up anymore. So, I tried this import http from "k6/http"; import { check } from "k6"; export const options = { scenarios: { default: { executor:…
Areso
  • 67
  • 1
  • 2
  • 11
0
votes
2 answers

Load/stress test in a SPA with Hasura Cloud Graphql as a backend and subscriptions

I'm trying to do a performance test on a SPA with a Frontend in React, deployed with Netlify As a backend we're using Hasura Cloud Graphql (std version) https://hasura.io/, where everything from the client goes directly through Hasura to the…
0
votes
1 answer

Mocking external dependencies during load testing

I have a backend written in node.js that uses external APIs on some endpoints. I want to do load test without testing those external dependencies. Is it possible to mock them and how? I don't really care about the time it takes to reach the APIs and…
fraktus
  • 73
  • 1
  • 4
0
votes
1 answer

Can any of existing report portal agent be reused for k6?

We are using k6 in our project for load testing. As other teams uses report portal for pushing results. We also wanted to try the same. It’ll be easier for Management to see from single UI. There is no agent for K6 as of now. But there are many…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

How to add release number from pipeline into K6-InfluxDB-Grafana stack so that in grafana we can filter results based on Release Number as well

I have K6- InfluxDB - Grafana stack which was integrated into the Azure release pipeline. In Grafana, I can filter results based on timelines since Influxdb is a time-series database. But I would like to have the flexibility to filter results based…
Jay
  • 339
  • 1
  • 7
  • 23
0
votes
0 answers

How to run a K6 script locally and send data to remote InfluxDB instance (No Docker)

I'm extremely new at k6 + influxdb + grafana, and I was given a task related to execute certain K6 Scripts locally but save/pass the data over a remote InfluxDB instance. As of now I'm having issues given that I'm not sure what I'm missing regarding…
Esepee
  • 87
  • 1
  • 7
0
votes
1 answer

How to pass content of json file as url param

I am trying to learn data parameterization. I have a json file with 2 entries: [ { "accountreference": "4157804914681" }, { "accountreference": "4157804925075" } ] and I manage to print them into…
fatkobra
  • 3
  • 2
0
votes
0 answers

K6 response body check

I'm using k6 to test a token generator. I want to add a check to filter the success response with status code 200 and token must exist. My current script is check(response, { "status equals 200": response => response.status.toString() ===…
JerryH
  • 1
  • 1
0
votes
1 answer

K6 - parallel test in docker container

I have a conceptual question regarding the K6 parallel test. I want to run multiple test scripts in parallel. If I choose to run them using docker compose file like following, can we say that its a parallel in real sense? As I understand, each k6…
Jay
  • 339
  • 1
  • 7
  • 23
0
votes
0 answers

In K6 can we connect to a GRPC service without specifying port number?

We have our GRPC services behind a gateway server, when I connect using BloomRPC I specify the hostname(without port) and enable TLS(Server Certificate option). In K6 when I try to create a connection, client.connect('', { …