File tree Expand file tree Collapse file tree 4 files changed +55
-3
lines changed
Expand file tree Collapse file tree 4 files changed +55
-3
lines changed Original file line number Diff line number Diff line change 1- # jest-js-browserstack
2- https://browserstack.atlassian.net/wiki/spaces/PROD/pages/3358687296/Selenium+Frameworks+Documentation#Git-Repo-Names
1+ # JestJS BrowserStack <img src =" assets/browserstack.png " width =25 height =25 > <img src =" assets/jest.svg " width =25 height =25 >
2+
3+ JestJS integration with BrowserStack for E2E functional testing of UI using Selenium 3.
4+
5+ > To perform tests using Selenium 4, please checkout the selenium 4 branch
6+
7+ ## Setup
8+
9+ ---
10+
11+ 1 . Clone the repository
12+ 2 . Install the dependencies using ` npm install ` or ` yarn install `
13+ 3 . Set environment variables with your [ BrowserStack Username and Access Key] ( https://www.browserstack.com/accounts/settings )
14+ 4 . Set them as environment variables:
15+ - on mac
16+ ``` sh
17+ export BROWSERSTACK_USERNAME=YOUR_USERNAME
18+ export BROWSERSTACK_ACCESS_KEY=YOUR_ACCESS_KEY
19+ ```
20+ - on windows
21+ ` ` ` sh
22+ set BROWSERSTACK_USERNAME=YOUR_USERNAME
23+ set BROWSERSTACK_ACCESS_KEY=YOUR_ACCESS_KEY
24+ ` ` `
25+
26+ # # Running sample tests
27+
28+ ---
29+
30+ - To run a single test, run ` npm run single` or ` yarn run single`
31+ - To run parallel tests, run ` npm run parallel` or ` yarn run parallel`
32+ - To run tests on private websites, run ` npm run local` or ` yarn run local`
33+
34+ # # Notes
35+
36+ ---
37+
38+ - You can view your test results on the [BrowserStack Automate Dashboard](https://automate.browserstack.com)
39+ - To test on a different set of browsers, check out our [platform configurator](https://browserstack.com/automate/capabilities)
40+
41+ # # Additional Resources
42+
43+ ---
44+
45+ - [Documentation for writing Automate test scripts in JestJS](https://browserstack.com/docs/automate/selenium/getting-started/nodejs/jest-js)
46+ - [Browsers & mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms? product=automate)
47+ - [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api)
Original file line number Diff line number Diff line change 1414 },
1515 "scripts" : {
1616 "test" : " jest" ,
17- "single" : " jest src/single.test.js" ,
17+ "single" : " jest src/single.test.js" ,
1818 "parallel" : " jest src/parallel.test.js" ,
1919 "local" : " jest src/local.test.js"
2020 }
You can’t perform that action at this time.
0 commit comments