Adding support for setting Sauce labs credentials in two ways
a) From config.js
e.g
config.sauceUsername = "YourSauceLabsUsername";
config.sauceAccesskey = "YourSauceLabsAccessKey";
b) Using environment variables
set Saucelabs username in SAUCE_USERNAME and access key in SAUCE_ACCESS_KEY
Order of precedence
1) --capabilities passed from command line
2) credentials from config.js
3) environment variables
Adding support for setting Sauce labs credentials in two ways a) From config.js e.g config.sauceUsername = "YourSauceLabsUsername"; config.sauceAccesskey = "YourSauceLabsAccessKey";
b) Using environment variables set Saucelabs username in SAUCE_USERNAME and access key in SAUCE_ACCESS_KEY
Order of precedence 1) --capabilities passed from command line 2) credentials from config.js 3) environment variables