Testing with playwright-browserstack in Test Runner

Playwright Integration with BrowserStack.

BrowserStack Logo

Setup

  • Clone the repo and run cd playwright-test
  • Run npm install

Running your tests

  • To run a single test, run npm test

    Run sample test on privately hosted websites

    Using Command-line Interface

    1. You have to download the BrowserStack Local binary from the links below (depending on your environment):
    2. Once you have downloaded and unzipped the file, you can initiate the binary by running the command: ./BrowserStackLocal --key YOUR_ACCESS_KEY
    3. 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.
    4. 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

Notes

Additional Resources