8000 GitHub - cupidline/k6-framework
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cupidline/k6-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k6-LoadTestingFramework

[Building a Load Testing Framework using K6.io]

Installation:

Read through following guide to how to install k6 on your machine:

https://k6.io/docs/get-started/installation/

How To Run:

Please create report path in base directory in local to create report

 k6 run --vus 10 --iterations 20 -e configFile=DEV.json --out json=report.json main/scripts/test.js

 k6 run --vus 10 --duration 20s -e configFile=QA.json --out csv=report.csv main/scripts/test.js

Skipping setup/teardown execution:

k6 run --no-setup --no-teardown ...

Run locally with a config file, save result on cloud

k6 run --no-setup --vus 10 --iterations 10 -e configFile=DEV.json -o cloud main/scripts/test.js

Run on cloud

k6 cloud --no-setup --vus 10 --iterations 10 -e configFile=DEV.json main/scripts/test.js

where,

vus - virtual users,

iterations - number of times to run the script, shared among VUs (ex. --vus 10 --iterations 30, each vue executes 3 iterations)

duration - specifies how long the test executes for.
it will run n iterations of the script with specified VUs during the specified time (ex 10s, 10m, 2h etc)

json/csv - report output file type

-o/--out - output method (ex. cloud)

Note:

  1. --vus 10 --iterations 10 will execute a script 10 times
  2. --vus 10 --iterations 20 will execute a script 20 times

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0