Skip to content

Commit 1b2c93d

Browse files
updated readme
1 parent 85d6bc3 commit 1b2c93d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# node-js-playwright-browserstack
2+
This repo contains sample for running Pla.
3+
4+
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
5+
6+
## Setup
7+
8+
* Clone the repo `git clone https://github.com/BrowserStackCE/playwright-a11y-issue.git` and run `cd playwright-a11y-issue`.
9+
* Set `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` as environment variables with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) or update the same in `browserstack.yml` file.
10+
* Run `npm i` to install the dependencies.
11+
12+
## Running your tests
13+
14+
- Set the below envurionment variables
15+
```
16+
USE_BROWSERSTACK_SDK=true
17+
BASE_URL=https://t2.statefunddirect.com
18+
```
19+
- Add the website credentials in the feature file `src/features/login.feature`
20+
```
21+
When I enter username "<Your username>"
22+
And I enter password "<Your password>"
23+
24+
```
25+
- To run the sample tests in parallel across the platforms specified in the `browserstack.yml`, run `npm run test:browserstackwindows`.
26+
27+
## Notes
28+
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
29+
* Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)

0 commit comments

Comments
 (0)