I was passing LambdaTest username and accesskey in the lambdatest-config.json file but now I want to set it into environment variable and use it from there. But I don’t know why I am getting invalid username and access key error. Could you please help?
Hi Macy,
If you have made any changes in the lambdatest_auth
object in the lambdatest-config.json file, the username/access key won’t be picked from environment variables.
So you can simply reinitialize the lambdatest-config.json file using lambdatest-cypress init
command and run your tests. The username and access key will be picked from env variables now.