DevExpress / testcafe-browser-provider-saucelabs

This is the Sauce Labs browser provider plugin for TestCafe.
https://devexpress.github.io/testcafe/
MIT License
32 stars 41 forks source link

Unable to read the saucelabs username and access token which are created in environment variables section manually #65

Closed lakshminagandla closed 3 years ago

lakshminagandla commented 4 years ago

Hi All,

I have set it up manually saucelabs username and access token manually in environment varaiables section, but when am running my script with help of below command, I can see variable value is undefined.

console.log('Saucelabs username: '+process.env['SAUCE_USERNAME'])

console.log('Saucelabs username: '+process.env.SAUCE_USERNAME')

Could you please suggest me what mistake am currently doing here

lakshminagandla commented 4 years ago

Can any one help us here, why we are not able to get the value of environment varaibles in TestCafe.

Ogurecher commented 4 years ago

Hello @LakshmiNagandla,

Please make sure you are setting up environment variables for the correct user and then close and reopen your shell. If this does not help, reload your PC and run the script again.