-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass environment variables in JSON #282
Comments
WRT #248 you can access the System properties like ${SYSTEM.PROP:host}. But are you sure you want to use the environment variables? |
@bc-nikhil , I would suggest please put some clarity(bit more details) around your question. This will help everyone here and you might get an answer quicker(otherwise we keep on guessing your use-case and we might have to do a Please visit this guidelines page(for how to raise an issue) : |
Hi,
Thanks for your reply
Currently, I am using credentials from properties file but I want to store
these credentials in Jenkins job.
So the problem is if I make these credentials as environment variables then
how do I define them for auth token API in JSON file?
As of now I am using credentials from properties So I defined in this
manner in JSON:
$web.application.user1.username
$web.application.user1.password
…On Sat, 27 Jul, 2019, 22:31 vkjha2000, ***@***.***> wrote:
@bc-nikhil <https://github.com/bc-nikhil> , I would suggest please put
some clarity(bit more details) around your question.
This will help everyone here and you might get an answer quicker(otherwise
we keep on guessing your use-case and we might have to do a detective job
here to get to the bottom of the issue).
Please visit this guidelines page :
https://github.com/authorjapps/zerocode/wiki/Guidelines-for-raising-issues
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#282?email_source=notifications&email_token=AMMTFTKY5UPT3FV5DCWE3DDQBR5PPA5CNFSM4IHBU4R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26PB7I#issuecomment-515698941>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMMTFTN7WFLYRWVJVNSH63TQBR5PPANCNFSM4IHBU4RQ>
.
|
@bc-nikhil At present, we do not have support for fetching the environment variables. Only system properties are supported. We will provide it soon. |
We can pass system properties into scenario JSON definitions? Like can I use this - web.username=SYSTEM.prop.username The whole purpose of my question is that I don't want to hardcode the credentials in my JSON files, I need a way to pass those externally, so that anyone having access to the testing codebase won't see them. |
@bc-mahesh You can use |
Available in |
Please suggest how to pass environment variables in JSON.
The scenario is I want to pass credentials from Jenkins as an environment variables.
The text was updated successfully, but these errors were encountered: