Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.37 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.37 KB

Performance test automation framework

This project is to automate the performance testing of the APIs

Teck Stack:

  • JavaScript
  • K6
  • Chai
  • K6-html reporter

Folder structure

  • BDD scripts are saved under tests
  • Test reports are saved under reports

Steps to run tests locally

npm install
k6 run $scriptpath
ex: k6 run tests/clientRegistration/client_registration.load.test.js

Steps to run tests in CICD

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

Steps to open report

open $reportName
ex: open reports/client_registration.stress.test.html

Logical and Security bugs

All the issues are saved in the attached google doc

Sample Report: Screenshot

Local Run Report: Screenshot

Pipeline: Screenshot