404 questions
0 votes
0 answers
31 views
k6-browser: \first_party_sets.db: The process cannot access the file because it is being used by another process
I created some web browser UI tests for k6-browser. I run a browser session with one virtual user at a time and it does what I expect. When I run 10 vu’s in parallel in non-headless mode, it also ...
-4 votes
1 answer
103 views
How to run Cypress UI tests in combination with k6 or JMeter?
I run Cypress UI tests locally and in a GitLab pipeline. I want to put them under performance measuring. I am not very experienced with that. What is the best way to do that? I tried to launch k6 from ...
1 vote
0 answers
54 views
How to run Cypress UI and API tests under k6 performance measuring control?
I want to run Cypress tests on a website and measure the performance with k6. Currently I run the Cypress tests on Windows locally and in a GitLab pipeline. I followed these video tutorials (https://...
2 votes
0 answers
46 views
CognitoIdentityProviderClient fails to construct URL from provided region
I'm trying to authenticate to AWS cognito using the @aws-sdk/client-cognito-identity-provider library // Truncated code import { AuthFlowType, CognitoIdentityProviderClient, InitiateAuthCommand,...
0 votes
0 answers
45 views
k6 reports expiry in the 18th century for all cookies
I'm a new QA, and I'm using k6 with Typescript to test a web app. I noticed that http requests that rely on cookies aren't working correctly in the test script, although they do work when using the ...
0 votes
1 answer
68 views
How to run script such that it increases users gradually and each user run only one iteration
I tried the below code but I couldn't restrict one iteration per one virtual user. import { sleep } from 'k6'; import http from 'k6/http'; export let options = { scenarios: { default: { ...
0 votes
0 answers
57 views
Cleaup test data in K6 `teardown` in UI load test
I have a UI load test written in K6. I am creating a bunch of entries on the page and keeping tab of them using openKv (https://github.com/oleiade/xk6-kv) in the code so that I can delete them after ...
1 vote
0 answers
108 views
how to find an element inside an iframe in k6/browser?
I'm trying to automate an interaction with a dynamic iframe using K6 Browser, but I'm facing difficulties when trying to click a button inside that iframe. The code I'm using is as follows: const ...
0 votes
1 answer
94 views
Azure Network Limits Impacting K6 Performance Testing
I am running K6 inside AKS to perform load testing on a website hosted in Azure App Service. However, once the test reaches 1000 virtual users (VUs), the requests start returning status 0 with a dial ...
-2 votes
2 answers
90 views
"Redis Caching in k6 Fails with Undefined Error on Azure Pipeline (Ubuntu Agent)"
I am implementing the redis caching from k6/experimental/redis and caching some values in K6 scripts to share across the virtual users (VUs). The script is running in the local windows & unix WSL ...
0 votes
1 answer
73 views
Sending 'n' concurrent http requests per sec continuously for a duration of 'd' sec in k6
I've got 12 URLs and each need to be hit with 100 (NUM_EVENTS) requests per second continuously (or with a sleep interval if needed) for 10 (RUNTIME_TOTAL_DURATION) seconds. I don't need to wait for ...
-1 votes
1 answer
373 views
k6 to track metrics for each URL
Following up on k6 to report test details for each URL, which I found the answer there not working for me. Here is my script (incorporating the answer there): import http from 'k6/http'; import { ...
0 votes
0 answers
60 views
How to change the load zone from GUI
Within k6 cloud, how to change the load zone from GUI? All of my research leads to the saying that Grafana Cloud k6 web interface allows modifying the load zones for its k6 Cloud tests without ...
-1 votes
1 answer
516 views
k6 to report test details for each URL
Not exactly as asked here: Using K6 to test page speed between two URLs K6 - breakup of results for each api request As the answers there focused on how to test different urls but my question is on ...
0 votes
0 answers
108 views
Is using class based approach in Grafana K6 test scripts a bad practice?
I’m working on performance testing with Grafana K6 and trying to structure my test scripts to avoid redundancy. So I’ve implemented a class-based approach. Here's a sample code: const metrics = new ...