Playwright Integration with BrowserStack.
- Clone the repo and run
cd playwright-test
- Run
npm install
-
To run a single test, run
npm test
Using Command-line Interface
- You have to download the BrowserStack Local binary from the links below (depending on your environment):
- Once you have downloaded and unzipped the file, you can initiate the binary by running the command:
./BrowserStackLocal --key YOUR_ACCESS_KEY
- Once you see the terminal say "[SUCCESS]" You can now access your local server(s) in our remote browser”, your local testing connection is considered established.
- You can then run the sample Local test using
npm run test:local
Understand how many parallel sessions you need by using our Parallel Test Calculator
- You can view your test results on the BrowserStack Automate dashboard