angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

directConnect via CLI - Not working #5488

Open Krithikmano opened 3 years ago

Krithikmano commented 3 years ago

Could you please provide how to pass directConnect value in conf.js file via CLI. I tried it all possible way and it is not taking the passing value.

andredesousa commented 3 years ago

Install: https://www.npmjs.com/package/cross-env

Add to package.json "protractor": "cross-env DIRECT_CONNECT=true protractor e2e/protractor.conf.js"

... and change your protractor.conf.js file: exports.config = { directConnect: process.env.DIRECT_CONNECT, };