Nightwatch PoC to integrate Nightwatch with BrowserStack.
- Clone the repo
- Install dependencies
npm install - Either update
*.conf.jsfiles inside theconf/directory with your BrowserStack Username and Access Key(https://www.browserstack.com/accounts/settings)- Or export them directly - BROWSERSTACK_USERNAME=benlittle_xxx BROWSERSTACK_ACCESS_KEY=xxx npm run single
- Or add them to your profile
- To run the test, run
npm run single
You can specify proxy settings in Nightwatch by adding the proxy key in your *.conf.js
test_settings: {
default: {
desiredCapabilities: {
// Your capabilities
},
proxy: {
"host": "", // "127.0.0.1"
"port": "", // "8081"
"protocol": "" // "http"
}
}
}- Cucumber running local testing with BS
BROWSERSTACK_USERNAME=xxxxx BROWSERSTACK_ACCESS_KEY=xxxx ./scripts/local.runner.js -c conf/local.conf.js