Integration of BrowserStack with Jenkins to run cypress test cases

KailashPathak
2 min readApr 25, 2021

Pre-requisite

Please see the previous vlog before moving ahead

Step 1: Installing the BrowserStack plugin

  1. Click on Manage Jenkins > Manage Plugins.
  2. Click on the Available tab.
  3. In the search box type BrowserStack.
  4. Choose BrowserStack from the list of available plugins.

Step 2: Follow these steps to configure BrowserStack inside Jenkins

  1. Go to Manage Jenkins > Configure System.
  2. Under the BrowserStack section, click on the Add button next to BrowserStack Credentials.
  3. Enter your BrowserStack Username and Access Key

Step 3: Select BrowserStack Credential under Build Environment Tab

  1. Click on Project
  2. Click on Configure
  3. Under Build Environment Select the BrowserStack Credentials that are configured in Step #2

Step 4: Under the Build section type below command

1.npm install -g browserstack-cypress-cli

2.npm run cy:report

  • browserstack-cypress-cli is BrowserStack’s command-line interface (CLI) which allows you to run your Cypress tests on BrowserStack.
  • The second command will run the test cases

Step 5: Run the build

Run the build by clicking on “Build Now

Jenkin report attached Below

Step 6: Browser Stack Report

As we click on “Build Now” in Jenkins once all test cases are run we can see the report in Browser Stack

Browser Stack UI looks like

https://www.browserstack.com/automate

--

--

KailashPathak

|| Cypress.io Ambassador || https://qaautomationlabs.com/blogs || PMI-ACP® |ITIL® || PRINCE2® || Cypress|| Selenium| WebdriverIO |API Automation QATube®