Skip to content

browserstack/cucumber-js-browserstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cucumber-js-browserstack

Cucumber-JS Integration with BrowserStack for E2E functional testing of UI using Selenium and browserstack-node-sdk.

BrowserStack Logo

Run sample build


  • Clone the repo
  • Install dependencies npm install
  • Set your BrowserStack Username and Access Key in 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
    • run npm run sample-local-test or yarn run sample-local-test

Understand how many parallel sessions you need by using our Parallel Test Calculator

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
  1. 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.
  • Adds a new command for running tests on browserstack in scripts tag of package.json,
"scripts": {
  "test": "cucumber-js [args]",
  "browserstack-test": "browserstack-node-sdk cucumber-js [args]"
},

Notes


Additional Resources


About

Selenium examples for Cucumber-JS and BrowserStack Automate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 21

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy