- Clone the repository:
git clone https://github.com/LambdaTest/k6-browser-tests-sample.git - Install k6. Refer the installation guide here: https://k6.io/docs/get-started/installation/
- Set the LambdaTest user and access key in environment.
Windows
set LT_USERNAME = "YOUR_LAMBDATEST_USERNAME"
set LT_ACCESS_KEY = "YOUR_LAMBDATEST_ACCESS_KEY"macOS/Linux
export LT_USERNAME = "YOUR_LAMBDATEST_USERNAME"
export LT_ACCESS_KEY = "YOUR_LAMBDATEST_ACCESS_KEY"Run the test with the following command:
K6_BROWSER_ENABLED=true k6 run k6_sample.jsNavigate to the LambdaTest dashboard to view the running test.