k6-custom
A custom k6 reporting html and png send to email
Requirement
Installation
Preparation
touch email.txt
touch url.txt
input email using format
echo "user1@email.com,user2@gmal.com" > email.txt
input multi url
echo -e "URL_1\nURL_2\nURL_3" >> url.txt
Parameters environment:
Update .env
file using parameter here :
Parameter | Description | Example |
---|---|---|
URL |
target website for load test | https://www.detik.com or using path https://www.detik.com/redaksi |
DURATION |
a string specifying the total duration of the test run | 5s or 1m or 1h |
CONCURRENT |
a number specifying the number to run concurrently | 10 or 100 |
SENDER |
a email sender location in FROM: |
user@mail.com |
TITLE |
Subject email | Load test using K6 |
Usage Mode Single
update file .env
define parameters
sh exec.sh
Usage Mode Multi
Input list url to file url.txt
and don't update param ENV_URL
on .env.template
. you can update DURATION
, CONCURRENT
, SENDER
and TITLE
sh multi.sh
Maintainer
fajarhide (https://github.com/fajarhide)