nightwatch-browserstack
v1.3.0
Published
Update BrowserStack session status based on Nightwatch.js test results.
Downloads
58
Maintainers
Readme
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.