top of page
Search
Writer's pictureTuyen Nguyen

My k6-based testing framework

Updated: Jul 29

This week's post is going to be my k6-based framework - where I have spent almost a month from setting up the first step to improving its code, adding useful features, and finally made a whole complete "good" framework (imo šŸ˜„). Before getting started, I would like you to have a look at this first: https://www.automatedtestingwithtuyen.com/post/k6-load-testing-tools


What you would get from that:

  • Performance testing types.

  • Installing k6.

  • Run basic test with k6.

  • Using parameters in command line.

  • Modifying scripts for more complex scenarios.

  • Using check and threshold for defining expectations.

With all features inherited from k6 and some others added, my framework has:

  • Support many performance testing types (Load, Soak, Stress, Spike, ..).

  • Cloud execution with different load zones (Asia, EU, US, Canada, ...).

  • Multiple reports exported (JSON, HTML, XML).

  • CI integrated (CircleCI, Github Actions, GitlabCI, Bitbucket Pipelines) with set of configuration examples.

  • InfluxDB + Grafana Dashboard for result visualizing using Docker Compose.

  • Visual regression testing supported.

  • Convert Postman/JMeter to k6 tests.

  • And everything from k6.

Long story short, they are all here:


Feel free to comment down below your suggestions/questions. I will try to answer them and improve this framework day by day.

510 views2 comments

Recent Posts

See All

2 Comments


The idea is great, you did awesome job to put together as a complete end 2 end solution.

Like
Tuyen Nguyen
Tuyen Nguyen
Dec 18, 2023
Replying to

Hey, Thanks for leaving comment. Feel free to use it and provide me your feedbacks šŸ˜

Like
bottom of page