K6 browser set allow-scripts permission
We ran some tests using k6 browser and we got the following error multiple times: ERRO[0009] Blocked script execution in ‘about:blank’ because the document’s frame is sandboxed and the ‘allow-scripts’...
View ArticleHow to mak as complete the k6 pod even with not satisfied thresholds
When I run a K6 resource, it creates the corresponding jobs, but the last job does not ends correctly because the tests are not passing the thresholds. I would like to know if there is an option where...
View ArticleHttp_req_failed for any non 200 status?
I have a api that gives 409 conflict which is what we consider a success. Does this mean I can not use http_req_failed? Is http_req_failed for any non 200 status? 2 posts - 2 participants Read full...
View ArticleAre arrow functions ok to use? Why doesn't doc examples show them with it's...
I have been using arrow functions instead of named functions such as const foo = () > {}; export { foo }. I have not had any issues. Just to confirm, please… this is ok and I am not working off of...
View ArticleHow to use thresholds in a custom scenario?
I am attempting to make a scenario for a specific test based on the K6_ENV env variable. However, I am having issues with the thresholds. Any ideas, please, on how to use the thresholds in this...
View ArticleK6 Docker Initialization failed while running in Azure Pipeline
Hi, While running using k6 docker container in Azure Pipeline - getting error Following in my docker file FROM joined-docker.artifactory.abcdefgg.net/grafana/k6:0.50.0 RUN apt-get update COPY . /app...
View ArticleDismiss browser alert window when script is running in headed mode
I have a script where opening URL redirects to login screen. However, before login screen, it displays blank page with alert window (like on screenshot). If I run script in headless mode...
View ArticleK6 docker HTML output in Azure Pipeline
Hi, My question is how to generate an output html report using k6 docker image within Azure pipeline JSON files are generated but not html reports: I tried using "import { htmlReport } from “K6 Load...
View ArticleK6 Docker Container initialization failed in Azure pipeline
Hi, While running using k6 docker container in Azure Pipeline - getting error Following in my docker file FROM joined-docker.artifactory.abcdefgg.net/grafana/k6:0.50.0 RUN apt-get update COPY . /app...
View ArticleOpen websocket connections on setup method
I’m trying to implement a load test in K6 for a distributed application that consists of a bunch of nodes sending messages to each other. In the setup method, I’m gathering the list of nodes available...
View ArticleIs there a single teardown to clean up after all test files have run?
Is there a single teardown that can run after all test files have ran? I mean when the whole test suite is complete. To clean up after all tests have run. Like Mocha’s after hook. 1 post - 1...
View ArticleHow to open websocket connection only once per VU
Hi, I need to establish websocket connection once per VU and in each iteration rest request will be made and listen to the websocket message. I tried initializing WS connection in setup() and passing...
View ArticleHas anyone got k6 browser tests running successfully via circleCI?
I’ve created some related threads attempting to debug issues with our setup e.g. example However, over time, I have become more convinced there’s some inherent issue with either what circleCI is...
View ArticleEncrypted tls certificate support in k6
Hello, I am new to k6, and trying to create load test, which would use encrypted tls (pkcs12 or pkcs8)certificate. Currently I am receiving different error messages and after reading through this...
View ArticleK6 web dashboard is not being possible bind it with my localhost
Hi guys, could you help me with this please? I’m trying to get the web dashboard of my k6 scenario and i’m getting this error ERRO[0000] listen tcp 127.0.0.1:5665 bind address already in use and I...
View ArticleIs it possible to turn off have different options for the setup phase?
I am looking to make http requests during the setup phase to generate API Keys to use for tests. So I need the discardResponseBodies set to false. However, after the setup phase I want to set that to...
View ArticleDoes anyone know how to generate custom csv output files in k6?
Hi guys, do you have any idea on generating a csv output file in k6, like below. id, result, version // this is the column name test case 1,passed,media1 test case 2,failed,media1 test case...
View ArticleXk6-browser script: panic error in headless mode
Hello Team, I see panic error when i execute my k6-browser script. When i ran the script with headless=false it worked perfect. But in headless mode it’s throwing panic error (panic: GoError:...
View ArticleERRO[0001] could not initialize '.\Basic_xxxx_POSTTLS.js': could not load JS...
Hi , Trying to hit an API that needs encrypted TLS certificate which is in pfx format. Is there any way to do it. Thanks for any help My code import http from ‘k6/http’; import { check, sleep } from...
View ArticleCompatibility of Old version of k6 Docker images for running k6
Currently I am using loadimpact/k6:0.30.0 as the docker image to run k6 using docker. Is loadimpact not supported now? Anyway I am currently using the above and did not face much issues with that....
View Article