nightwatch-browserstack

1.3.0 • Public • Published

Nightwatch.js BrowserStack status update

Update BrowserStack session status based on Nightwatch.js test results.

Install

npm install nightwatch-browserstack

Usage

module.exports = {
  beforeEach: function (browser, done) {
    if (this.test_settings.selenium_host === 'hub.browserstack.com') {
      return require('nightwatch-browserstack').storeSessionId(browser, done)
    }
    done()
  },
  afterEach: function (browser, done) {
    if (this.test_settings.selenium_host === 'hub.browserstack.com') {
      return require('nightwatch-browserstack').updateStatus(browser, done)
    }
    done()
  }
}

License

Released under the MIT license.

Author

Sebastian Tschan

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    176
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    176
  • 1.2.0
    2
  • 1.1.0
    3
  • 1.0.0
    2

Package Sidebar

Install

npm i nightwatch-browserstack

Weekly Downloads

14

Version

1.3.0

License

MIT

Unpacked Size

2.72 kB

Total Files

3

Last publish

Collaborators

  • blueimp