Currently, I am utilizing Protractor for executing extensive end-to-end tests. Instead of storing login credentials in a spec file, I am keen on passing them through the command line. Upon stumbling across a post showcasing the usage of process.argv.forEach
, I couldn't help but wonder how to retain and apply these values in a different spec file. Specifically, I have a designated file known as login-spec.js
, where I aim to integrate the input obtained from the command-line.
Your guidance is greatly appreciated!