Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
131
rated 0 times [  136] [ 5]  / answers: 1 / hits: 19352  / 10 Years ago, tue, april 22, 2014, 12:00:00

My plan is to store a username and password as system environment variables and reference them in an Angularjs Protractor config file. I defined the variables in /etc/environment. This is what I've tried so far:



params: {
login: {
user: $E2E_USER,
pass: $E2E_PASS
}
}


I also tried this:



params: {
login: {
user: process.env.E2E_USER,
pass: process.env.E2E_PASS
}
}


Any help would be much appreciated!


More From » node.js

 Answers
5

I used export E2E_USER=username and that worked.


[#71345] Monday, April 21, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jameson

Total Points: 534
Total Questions: 103
Total Answers: 102

Location: Lithuania
Member since Fri, Sep 4, 2020
4 Years ago
jameson questions
;