This project is to automate the performance testing of the APIs
- JavaScript
- K6
- Chai
- K6-html reporter
- BDD scripts are saved under
tests
- Test reports are saved under
reports
npm install
k6 run $scriptpath
ex: k6 run tests/clientRegistration/client_registration.load.test.js
I configured this workflow for manual triggering, as performance testing is generally targeted at specific endpoints. This approach ensures tests can be run individually, focusing on the specific endpoint of interest. Additionally, running multiple performance tests in parallel is avoided to prevent inaccurate results caused by resource contention or overlapping loads.
Open actions
Select workflow ~ Run k6 Test
Enter the path of the test which you want to run
Trigger the pipeline
open $reportName
ex: open reports/client_registration.stress.test.html
All the issues are saved in the attached google doc