Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timmywil/qunit-browserstack
Selenium examples for QUnit and BrowserStack Automate
https://github.com/timmywil/qunit-browserstack
Last synced: 21 days ago
JSON representation
Selenium examples for QUnit and BrowserStack Automate
- Host: GitHub
- URL: https://github.com/timmywil/qunit-browserstack
- Owner: timmywil
- Created: 2023-09-05T15:31:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-05T15:36:22.000Z (over 1 year ago)
- Last Synced: 2024-10-16T00:44:58.591Z (2 months ago)
- Language: JavaScript
- Size: 83 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QUnit BrowserStack
QUnit integration with BrowserStack for E2E functional testing of UI using Selenium and [browserstack-node-sdk](https://www.npmjs.com/package/browserstack-node-sdk).
## Run sample build
---
- Clone the repository
- Install dependencies using, npm install or yarn install
- Set your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) in [browserstack.yml](browserstack.yml) `npx setup --username userName --key accessKey`
- To run sample test, run `npm run sample-test` or `yarn run sample-test`
- To run tests on private websites,
- set browserstackLocal: true at [browserstack.yml](browserstack.yml)
- run `npm run sample-local-test` or `yarn run sample-local-test`## Integrate your test suite
---
1. Install browserstack-node-sdk as a dev-dependency
```
npm i -D browserstack-node-sdk
or
yarn add --dev browserstack-node-sdk
```
2. Setup
```
npx setup --username userName --key accessKey
```
* Adds a browserstack.yml file at root of your mocha project with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).
* Adds a new command for running tests on browserstack in scripts tag of package.json,
```
"scripts": {
"test": "qunit ...args",
"browserstack-test": "browserstack-node-sdk qunit ...args"
},
```## Notes
---
- You can view your test results on the [BrowserStack Automate Dashboard](https://automate.browserstack.com)
- To test on a different set of browsers, check out our [platform configurator](https://browserstack.com/automate/capabilities)## Additional Resources
---
- [Browsers & mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate)
- [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api)