From e6d00d13bddf89960bda42f7f73213e0a3065c37 Mon Sep 17 00:00:00 2001 From: Kevin Colaco <94890785+kevinbstack@users.noreply.github.com> Date: Mon, 25 Apr 2022 13:18:05 +0530 Subject: [PATCH 1/2] Create README.md --- playwright-test/README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 playwright-test/README.md diff --git a/playwright-test/README.md b/playwright-test/README.md new file mode 100644 index 0000000..d8160fe --- /dev/null +++ b/playwright-test/README.md @@ -0,0 +1,35 @@ +# Testing with playwright-browserstack in Test Runner + +[Playwright](https://playwright.dev/dotnet/) Integration with BrowserStack. + +![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780) + +## 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): + * [OS X (10.7 and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-darwin-x64.zip) + * [Linux 32-bit](https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-ia32.zip) + * [Linux 64-bit](https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip) + * [Windows (XP and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-win32.zip) + 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](https://www.browserstack.com/automate/parallel-calculator?ref=github) + + +## Notes +* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate) + +## Additional Resources +* [Documentation for writing Automate test scripts with BrowserStack](https://www.browserstack.com/docs/automate/playwright) From 9a03823f29d58fbc4fa733b0aa11c8aeb8ca1571 Mon Sep 17 00:00:00 2001 From: Kevin Colaco <94890785+kevinbstack@users.noreply.github.com> Date: Mon, 25 Apr 2022 16:59:08 +0530 Subject: [PATCH 2/2] Update playwright-test/README.md Co-authored-by: Kamalpreet Kaur <38219887+kamal-kaur04@users.noreply.github.com> --- playwright-test/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright-test/README.md b/playwright-test/README.md index d8160fe..78cd6c5 100644 --- a/playwright-test/README.md +++ b/playwright-test/README.md @@ -1,6 +1,6 @@ # Testing with playwright-browserstack in Test Runner -[Playwright](https://playwright.dev/dotnet/) Integration with BrowserStack. +[Playwright](https://playwright.dev/) Integration with BrowserStack. ![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)