Using NodeJs, What syntax to use if I saved my LambdaTest automation credentials in my system environment?

I’m using NodeJS, what is the syntax to use if I saved my LambdaTest automation credentials in my system environment?

Hey Devan Skeem,

For Mocha-Chai & Jasmine-Chai, you can pass the below commands on your script:

  let username = process.env.LT_USERNAME,
  accessKey = process.env.LT_ACCESS_KEY,

For Protractor-Jasmine:

exports.config = {

lambdatestUser: process.env.LT_USERNAME,

lambdatestKey: process.env.LT_ACCESS_KEY,

}

To learn more on how to get the LambdaTest Username and Access Key, first create your LambdaTest Account > Account Setting > Password and Security tab, and you can find the credentials and use them in your script. Follow our LambdaTest support documentation for complete guidance.

Hope this information was helpful :slight_smile: