It is a complete browser (End-to-End) testing solution which aims to simplify the process of setting up Continuous Integration and writing automated tests.
- Clone the repo
- Install dependencies
npm install
- Set your BrowserStack credentials to the environment variables
BROWSERSTACK_USERNAME
andBROWSERSTACK_ACCESS_KEY
. If you have an account, you can obtain these credentials form https://www.browserstack.com/accounts/settings
- To run single aand parallel tests, run
npm run test
- To run a single test, run
npm run single
- To run parallel tests, run
npm run parallel
- To run suite tests, run
npm run suite
Understand how many parallel sessions you need by using our Parallel Test Calculator
- You can view your test results on the BrowserStack automate dashboard
- To test on a different set of browsers, check out our platform configurator
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"
}
}
}