Skip to content

Commit f9274ee

Browse files
Pratik Thakurfrancisf
authored andcommitted
readme updated
1 parent d628572 commit f9274ee

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
11
# node-js-playwright-browserstack
2-
Creating a sample repo for different Playwright languages and runners
2+
3+
[Playwright](https://playwright.dev/docs/intro) 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 node-js-playwright-browserstack`
10+
* Set `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` as environment variables with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
11+
* Run `npm i`
12+
13+
## Running your tests
14+
15+
- To run a single test, run `npx playwright test`
16+
17+
## Run tests on locally hosted websites
18+
* Set `browserstack.local:true` in `browserstack.config.js`
19+
* uncomment line 22,23,24 where we are triggring BrowserStackLocal language binding
20+
* Add test file inside tests directory
21+
* Run `npx playwright test`
22+
23+
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
24+
25+
## Notes
26+
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)

0 commit comments

Comments
 (0)