Giter VIP home page Giter VIP logo

demomochasdk's Introduction

BrowserStack MochaJS CE demo

BrowserStack CE demo repo using browserstack-node-sdk.

BrowserStack Logo

Install repo


  • Clone the repo
  • Install dependencies npm install
  • Set your BrowserStack Username and Access Key. Preferably, you should set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY as environmental variables. Alternatively, you can also set them in all of the browserstack.yml files and the shell scipts for xcui and espresso.
  • This repo was designed to work with an account with 25 parallels. The parallel example will run 30 parallels to intentionally overload them in order to demonstrate the queue.

You can run any of the following scenerios


Before running any tests, Please run the following to ensure the latest ChromeDriver and SDK are installed!!!

npm run prep
  1. Run a test (single.js) on a local chromedriver to demonstrate the test before integration
npm run chrome
  1. Run single.js on BrowserStack with the sdk using 5 different browsers
npm run single
  1. Run tests in parallel. This will run 3 tests with 10 browsers for a total of 30 parallels
npm run parallel
  1. Run a test using Local. This will verify the page title of the Local Console
npm run local
  1. Run a test that will fail. This will demonstrate the automatic marking of failed tests
npm run fail
  1. Run tests for observability. This includes tests that always fail and flakey tests. This will be under the Observability Demo project, and you will want to run this several times in a row before your first demo for the flakey tests to show in the dashboard.
npm run observability
  1. Run tests on App Automate on Android using wikipedia.apk
npm run appium
  1. Run tests on App Automate with XCUITest
npm run xcui
  1. Run tests on App Automate with Espresso
npm run espresso
  1. Run tests with Accessibility Automate
npm run a11y

Notes


  • The SDK will automatically create links in the console logs to view your test results on BrowserStack

demomochasdk's People

Contributors

leevardaro avatar 07souravkunda avatar vedharish avatar nagpalkaran95 avatar tr4n2uil avatar francisf avatar leev-bstack avatar alliv8 avatar vikas17a avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.