Skip to content

Commit 4734bea

Browse files
kevinbstackfrancisf
authored andcommitted
Create README.md
1 parent 7797285 commit 4734bea

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

playwright-test/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Testing with playwright-browserstack in Test Runner
2+
3+
[Playwright](https://playwright.dev/dotnet/) Integration with BrowserStack.
4+
5+
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
6+
7+
## Setup
8+
9+
* Clone the repo and run `cd playwright-test`
10+
* Run `npm install`
11+
12+
## Running your tests
13+
14+
- To run a single test, run `npm test`
15+
16+
### Run sample test on privately hosted websites
17+
18+
**Using Command-line Interface**
19+
1. You have to download the BrowserStack Local binary from the links below (depending on your environment):
20+
* [OS X (10.7 and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-darwin-x64.zip)
21+
* [Linux 32-bit](https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-ia32.zip)
22+
* [Linux 64-bit](https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip)
23+
* [Windows (XP and above)](https://www.browserstack.com/browserstack-local/BrowserStackLocal-win32.zip)
24+
2. Once you have downloaded and unzipped the file, you can initiate the binary by running the command: `./BrowserStackLocal --key YOUR_ACCESS_KEY`
25+
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.
26+
4. You can then run the sample Local test using `npm run test:local`
27+
28+
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
29+
30+
31+
## Notes
32+
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
33+
34+
## Additional Resources
35+
* [Documentation for writing Automate test scripts with BrowserStack](https://www.browserstack.com/docs/automate/playwright)

0 commit comments

Comments
 (0)