Clone the repo https://github.com/Anshita-Bhasin/PerformanceTesting-K6.git
1) Install K6
MAC OS => brew install k6
Windows => winget install k6
2) Run the test case using the below command
K6_BROWSER_ENABLED=true k6 run browserTest.js
K6_BROWSER_ENABLED=true k6 run apiTest.js
K6_BROWSER_ENABLED=true k6 run LtTest.js
3) Run test on LT Platform
Pass the username and access key in your script
3) Sample Reports
![image](https://private-user-images.githubusercontent.com/10338077/241837690-9573c5a4-8aee-46d5-ae24-d60f7e7f8516.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzMDM0MTAsIm5iZiI6MTcyNDMwMzExMCwicGF0aCI6Ii8xMDMzODA3Ny8yNDE4Mzc2OTAtOTU3M2M1YTQtOGFlZS00NmQ1LWFlMjQtZDYwZjdlN2Y4NTE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDA1MDUxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzYzJkMjIxZGIwYTMyOGIzMTk3Mzc3M2IyZjg4NDRhMmUwMmY3YTFlNGE2NzYxMDhkMDY5YmY1YjYyYWIwM2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VCEWwkKEeLDgRGHEJpmvDdmigRRZVaATgaSesTkecH8)
![image](https://private-user-images.githubusercontent.com/10338077/241837757-77e2a2fc-436b-4d83-aaa6-5ed4728b0bbc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI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1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDA1MDUxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4NTFmOTNhMTI3YTdmYjA5MjBkNjU0ZWEyMDkyNzI5ZDViYWI0NjM2YTYyZmIzMTBkNjNjZTJkMmM3YzZmMjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.R03U-F3z9T2S4uVgygvCjp7AaK6XnD_4uCZqrwM0PB0)
4) Lambda Test Dashboard
![image](https://private-user-images.githubusercontent.com/10338077/241837893-16b6d155-fc2a-4eab-8aa0-b2a34148300f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzMDM0MTAsIm5iZiI6MTcyNDMwMzExMCwicGF0aCI6Ii8xMDMzODA3Ny8yNDE4Mzc4OTMtMTZiNmQxNTUtZmMyYS00ZWFiLThhYTAtYjJhMzQxNDgzMDBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDA1MDUxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0ODViNzk5OWJiMDhhM2EwOTIwMzRkY2NiMTI1MjJlMDExNWM1MTgwZTA3YWNhZmI4ZWFiNzA5Yzc3ZDU1NWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7iD2EXFdBanTC2BQoPCRo29o-n1PAOxWs77VXm6ygG4)
5)Screenshots from Test