Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here is the link for the GitHub repository.

Please note that WebdriverIO support works with Automate and not with App-Automate right now.

Protractor

To configure your project:

...

Here is the link for the GitHub repository.

Please note that Protractor support works with Automate and not with App-Automate right now.


Following environment variables are set by this Jenkins plugin:

...

  1. Under the Build Environment section check the box next to BrowserStack Local.
  2. If the binary is externally downloaded then set the path to the binary in the config path, BrowserStack Local Path.
  3. Downloading the binary is not necessary and if this option is left empty the plugin will automatically download the binary. This is recommended especially if you are using Jenkin's in master-slave configurations, since the plugin will download the appropriate binary for the build agent OS.
  4. You can set additional options for the binary in the BrowserStack Local Options.

Embedded Test Reports

...

To have BrowserStack Automate reports show up right next to the JUnit/TestNG reports in Jenkins you must follow these steps,

...

DONE! This will ensure that once the build runs, the BrowserStack Automate report will show up right next to the stack trace of a failed unit test.

Embedded Test Reports - Using Jenkinsfile

Use the code in your Jenkinsfile

Code Block
titleJenkinsfile
junit testDataPublishers: [[$class: 'AutomateTestDataPublisher']], testResults: 'target/surefire-reports/TEST-*.xml'

This is a post build step and should be added after browserstack block in the Jenkinsfile. With this integration, you can now view the results of your Selenium Webdriver tests within Jenkins.

App Automate support

With the plugin version 1.1.0 rollout we have added support for App Automate in Jenkins plugin. In addition to all the above configurations, you will now be able to add a build step to configure and upload your app on the BrowserStack servers. Refer to the App Automate Jenkins document for details on configuring your test suite for automation app testing. Visit App Automate Get Started document for more details on getting started with the automation app testing on BrowserStack.

...