Closed lakshminagandla closed 3 years ago
Can any one help us here, why we are not able to get the value of environment varaibles in TestCafe.
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.
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