https://github.com/browserstack/codecept-js-browserstack
https://github.com/browserstack/codecept-js-browserstack
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/browserstack/codecept-js-browserstack
- Owner: browserstack
- Created: 2022-02-11T04:47:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T13:07:18.000Z (about 1 year ago)
- Last Synced: 2025-04-22T21:06:23.586Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 10
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# CodeceptJS-Browserstack
# Integrating CodeceptJS
with BrowserStack
## Prerequisite
* [Node.js](https://nodejs.org/en/download/) version 12 or higher is installed on your machine.
## Setup
* Clone the repo
* Install dependencies `npm install`
* Update `.env` file with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).
## Running your tests
* To run tests, run `npm run sample-test`
* To run local tests, run `npm run sample-local-test`
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
## Notes
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
* You can export the environment variables for the Username and Access Key of your BrowserStack account.
```
export BROWSERSTACK_USERNAME= &&
export BROWSERSTACK_ACCESS_KEY=
```
## Addtional Resources
* [Documentation for writing Automate test scripts in CodeceptJS](https://codecept.io/helpers/WebDriver/#webdriver)
* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities)
* [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)