k6 is a growing company providing an open-source tool (k6 OSS) and SaaS product (k6 Cloud) in the performance testing space. A solution for SREs, QA testers, and Developers to test their applications’ performance and reliability.
Traditionally, QA and Performance Engineers did performance testing using complicated testing tools, and only after the application was completed. But testing has dramatically changed and is now a shared activity between several roles and carried out earlier in the development lifecycle.
In this new era, k6 has disrupted the load testing market, providing an easy-to-use and developer-oriented solution. Loved by developers and trusted by engineering teams.
Пікірлер
Hello can you please let me know how to print the total virtual users when doing a breakpoint test on websocket? Also can we make the no of users dynamic such as if we wanna increase the value of vus by 50 each hour without manually entering in stages section. Again on websocket
I tried to add vu global variable in that but it just returns the vu Id and not the count. Would love to hear from you 🙏
How to get html report?
The new load testing for a new projet is more complicated , because we only imagine what will hapen on the production
How did you export postman collection to IJ? I get blank file.
What do you mean with IJ?
Thank you guys!
Hi, in what video do you integrate k6 with Prometheus? thanks in advance
Is it possible to write k6 test script in an existing jest e2e test script to load test the complete application?
Can you please show it how we can do it in bitbucket
Hello guys! Would it be possible to show a step by step setup of faro in your application?
Can I ask, could you make a tutorial for testing web performance by using the K6 tool? And also make the generated report after completed the test. Thank you so much for all of your tutorial ❤
i am getting " ERRO[0003] Error parsing response JSON: {} source=console ERRO[0003] Empty response or response body not found source=console" while trying to run my converted collection tried to change the way i parse my api responses in many ways but could not solve this or find any documantation or issues @k6 can you asisst? js code for example : postman[Request]({ name: "GetAccountBasicDetails", id: "cdd131c4-46e0-4b64-8bfc-6dcca555eea68", method: "GET", address: "{{baseURL}}Account/GetAccountBasicDetails?UserGuid={{esgnameid}}", post(response) { // Parse the JSON response const jsonResponse = pm.response.json(); in any case you have tutorials on how to handle postman variables and script in k6 please share links thanks!
Can you share this question on the discussion board of the repo?
after creating the binary my imports are not getting recognized for k6/x/browser , can you please help?
I am struggling with to handle/click an element inside Shadow dom with xk6-browser. Please let me know how I can do it?
can you make tutorial for front end performance testing?
Hello, is there any documentation to share some best practices on setting the resource limits per k6 pod? I know this depends on the complexity of test case and etc.. But was wondering if there is any benchmark statistics I can use to understand the initial resource limits I can put in place, or some practices on capacity planning?
Thanks for such an amazing session. Wanted to ask , is port forwarding feature available in the current xk6 kubernetes version? Thanks once again
im running k6 with visual studio how can i transfer my results into a graph for clearer understanding
How and where can I play with that Browser Metric Dashboard GrafanaK6 representation?
Giving me an error for now. But I've get some Loading Performance visualizations... keep playing around :) ERROR Identifier directly after number (8:20) 6 | export const options = {"ext":{"loadimpact":{"distribution":{"amazon:ca:montreal":{"loadZone":"amazon:ca:montreal","percent":100}},"apm":[]}},"thresholds":{},"scenarios":{"01_Open_Provider_Link":{"executor":"ramping-vus","gracefulStop":"30s","stages":[{"target":1,"duration":"1m"},{"target":1,"duration":"3m30s"},{"target":0,"duration":"1m"}],"gracefulRampDown":"30s","exec":"01_Open_Provider_Link"}}}; 7 | > 8 | export function 01_Open_Provider_Link() { | ^ 9 | let response; 10 | 11 | // 01_Open Patient Link
You're awesome! Super clear, concise and informative. A pleasure to watch, so professional. Thank you so much.
I have converted a Postman collection into K6 Script but I am facing an error TypeError: Cannot read property 'set' of undefined or null pm.test("Login request", function() { pm.environment.set("Authorization", response.headers["AuthToken"]); }); Help me on this - How to do the sequencing
Can you drop this issue on the discussion board of the repo? That way we can see in the community, how to solve this.
39:41 is what you are looking for
Top
Many thanks for this video! It's really helpful
this is a golden video.! thank you Tim for sharing your knowledge!
Reprogramation factory energy
I have not been able to switch to new tab when running the k6 browser test. Though i tried the change focus command listed in k6 documentation but that doesnt work. My use case is in a page there is a button which opens up a new tab when clicking it. And i am not able to switch to new tab in script hence cant perform next actions on new tab. Hoping for some help/response.
Hi @rajjjnish, can you post a reproducible example on our community forum (community.grafana.com/c/grafana-k6/k6-browser/79) so we can help you more. Thanks!
I am using k6 0.47.0 but browser is not getting launched, could you please share installation steps
Hi there! Please check out k6.io/docs/using-k6-browser/migrating-to-k6-v0-46/ for more information. You probably need to set the environment variable K6_HEADLESS_FALSE and set it to false.
Thank you it was very intersting, At the 46th minute you show a graph with the vital browser metrics. Can you send me the link or the json of this board? Thank you very much.
Hi! k6 browser is now publicly available to Grafana Cloud. You can create a free Grafana Cloud account and run a sample browser test to access the dashboard. Thanks!
This is the kind of video you need to move people to k6 from jMeter, great job.
how to make in setup page definition and browser login? i dont seen option to define page on setup function can i make the setup function on async test function?
Hi! Currently, the browser module can only be used within the default function. Please refer to community.grafana.com/t/using-browser-in-the-setup-stage-of-a-test/101496/4 for more information. Thanks!
I like your sense of humor Paul.dirt out ..LOL
🎉Congrats with the 100th K6 Office hours episode 🎆 A great milestone to be proud off and so much good content has come out it. Congrats to whole team and looking forward for another 100 episodes 🙌
Thank you so much, Tim! We enjoyed having you with us! 💜
Hello, do you have a diagram reference on k6 Kubernetes design? Thanks.
Question. Is there a way to pass in a CLI argument to select and run 1 request and not the entire script?
Sorry for the delayed reply! Using the `--iterations 1` CLI argument will override options specified within your script. Check out grafana.com/docs/k6/latest/using-k6/k6-options/how-to/ for more information on argument precedence.
Thanks for all tips I found it very useful
we call it calibration, What' the point of measure something if you don't know your can compare this to a baseline. All results are meaningless without context and expected results IMHO
So true, Holger! Without knowing WHY you're testing, all the metrics and numbers in the world are meaningless. - Nicole
Any option to send K6 output remote write URL(cortex) with bearer token authentication
I'm using the below script to send log message("This is a test log message")to loki, my doubt is , is it possible to send our own logs to loki using xk6 extention?. if yes is this script is correct? but it is pushing auto generated logs to loki. kindly help me to resolve this issue import loki from 'k6/x/loki'; const conf = loki.Config("localhost:3100"); const client = loki.Client(conf); export default function () { const msg = "This is a test log message"; const labels = { "label_name": "label_value", "label_name_2": "label_value_2" }; client.push(msg, labels); }
I'm using the below script to send log message("This is a test log message")to loki, my doubt is , is it possible to send our own logs to loki using xk6 extention?. if yes is this script is correct? but it is pushing auto generated logs to loki. kindly help me to resolve this issue import loki from 'k6/x/loki'; const conf = loki.Config("localhost:3100"); const client = loki.Client(conf); export default function () { const msg = "This is a test log message"; const labels = { "label_name": "label_value", "label_name_2": "label_value_2" }; client.push(msg, labels); }
Hey hi, actually im using xk6 for sending logs to loki, is it possible to send our own messages to loki like " This is loki test by chandru" Message?
🎉🎉 thanks
😅... well its truly powered by GO. I hope I become a good STLC expert
Is there any step by step guide to build xk6 in windows or Linux, i tried multiple time i can't do setup, could you please help me with that
Hi there! We have some instructions on our README file on how to build xk6 github.com/grafana/xk6
This is fun to watch guys :d
We're glad you enjoyed it! :D
Amazing for the new release of the K6-browser.
possible to run the k6-browser base in Kubernetes?
Hi @qatester6425, yes, this is possible. We now have an official Docker image with Chromium installed to help you run k6 browser tests in Kubernetes. Simply use the image here hub.docker.com/r/grafana/k6/tags with the tag `master-with-browser`.
@@k6io I was how to run the k6-browser script via kubernetes after running in the docker container?
k6 Cloud seems to be moved to grafana, right?
Hi @lunyi2004! As the next phase of the Grafana Cloud k6 launch, we no longer accept new sign-ups to k6 Cloud. Existing k6 Cloud customers can continue using k6 Cloud. We plan to migrate k6 Cloud to Grafana Cloud k6 at a later date.
How to deploy this using AWS EKS?
Where did you get the xk6 browser link from @20:37
Hello Vivaswat! Sorry for the late response! That URL is provided is provided by the xk6-dashboard. We've recently migrated the xk6-dashboard to Grafana and no longer require Netlify. Check out the extension repo at github.com/grafana/xk6-dashboard or try out Paul's updated Office Hours demo at github.com/javaducky/k6-office-hours-047 .