https://github.com/browserstack/cucumber-js-cypress-browserstack
Creating a sample repo for Cypress - Cucumber
https://github.com/browserstack/cucumber-js-cypress-browserstack
Last synced: 11 months ago
JSON representation
Creating a sample repo for Cypress - Cucumber
- Host: GitHub
- URL: https://github.com/browserstack/cucumber-js-cypress-browserstack
- Owner: browserstack
- Created: 2023-02-09T10:01:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T07:00:49.000Z (about 1 year ago)
- Last Synced: 2025-04-22T21:12:41.186Z (11 months ago)
- Language: JavaScript
- Size: 725 KB
- Stars: 3
- Watchers: 11
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# cucumber-js-cypress-browserstack
## Introduction
Cypress is a next generation front end testing tool built for the modern web. Cucumber is a software tool that supports behavior-driven development (BDD).
This BrowserStack Example repository demonstrates a Cypress framework with parallel testing capabilities. The Cypress test scripts are written for the open source [BrowserStack Demo web application](https://bstackdemo.com) ([Github](https://github.com/browserstack/browserstack-demo-app)).
The Cypress tests are run on different platforms like on-prem and BrowserStack using various run configurations and test capabilities.
## Pre-requisites
You need BrowserStack credentials to be able to run Cypress tests. You have to replace `YOUR_USERNAME` and `YOUR_ACCESS_KEY` in the sample scripts in this repository with your BrowserStack credentials which can be found in your [Account Settings](https://www.browserstack.com/accounts/settings) page.
**Alternatively, you can set the environment variables `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` with your credentials and all the scripts in this repository should work fine**
NOTE: **Supported on Node v14+**
## Run Cypress test on BrowserStack
1. Clone this repository
2. Install the dependencies using `npm install`
3. Run the sample script using `npm run sample-test`
## Run sample test on privately hosted websites
Run the sample Local test using `npm run sample-local-test`
## Additional Resources
- View your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
- Documentation for writing [Automate test scripts in Cypress](https://www.browserstack.com/docs/automate/cypress)
- [List of Browsers & mobile devices](https://www.browserstack.com/list-of-browsers-and-platforms/cypress_testing) for automation testing on BrowserStack
- For testing public web applications behind IP restriction, [Inbound IP Whitelisting](https://www.browserstack.com/local-testing/inbound-ip-whitelisting) can be enabled with the [BrowserStack Enterprise](https://www.browserstack.com/enterprise) offering