browserstack-node-sdk v1.32.8
browserstack-node-sdk
Node SDK for browserstack selenium-webdriver tests
Running Jest, Mocha and Cucumber tests in multiple platforms using SDK
Add browserstack-node-sdk as a dev-dependency,
npm i -D browserstack-node-sdk
#or
yarn add --dev browserstack-node-sdk
Setup
npx setup --username userName --key accessKey
- Adds a browserstack.yml file at root of your project with your auth keys BrowserStack Username and Access Key, browserstack configs and platforms. See sample config file here
- Adds a new command for running tests on browserstack in scripts tag of package.json,
# before
"scripts": {
# Jest tests
"jest-test": "jest ...args",
# Mocha tests
"mocha-test": "mocha ...args",
# Cucumber tests
"cucumber-test": "cucumber-js ...args",
},
# after
"scripts": {
# Jest tests
"jest-test": "jest ...args",
"browserstack-jest-test": "browserstack-node-sdk jest ...args",
# Mocha tests
"mocha-test": "mocha ...args",
"browserstack-mocha-test": "browserstack-node-sdk mocha ...args",
# Cucumber tests
"cucumber-test": "cucumber-js ...args",
"browserstack-cucumber-test": "browserstack-node-sdk cucumber-js ...args"
},
Run tests on browserstack by running
npm run browserstack-jest-test
# or
npm run browserstack-mocha-test
# or
npm run browserstack-cucumber-test
Sample test scripts are available in the jest-js-browserstack, mocha-browserstack & cucumber-js-browserstack repositories.
15 days ago
19 days ago
27 days ago
29 days ago
29 days ago
29 days ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
9 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
7 months ago
7 months ago
9 months ago
6 months ago
7 months ago
7 months ago
9 months ago
10 months ago
7 months ago
9 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
10 months ago
8 months ago
9 months ago
10 months ago
7 months ago
8 months ago
7 months ago
8 months ago
8 months ago
7 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
6 months ago
6 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago