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 (Github).
The Cypress tests are run on different platforms like on-prem and BrowserStack using various run configurations and test capabilities.
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 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+
- Clone this repository
- Install the dependencies using
npm install
- Run the sample script using
npm run sample-test
Run the sample Local test using npm run sample-local-test
- View your test results on the BrowserStack Automate dashboard
- Documentation for writing Automate test scripts in Cypress
- List of Browsers & mobile devices for automation testing on BrowserStack
- For testing public web applications behind IP restriction, Inbound IP Whitelisting can be enabled with the BrowserStack Enterprise offering