Skip to content

test-automation-frameworks/performance-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published