Forum Discussion
groovyguy
7 years agoCommunity Hero
I assume you are using the testrunner script to run ReadyAPI via Jenkins. If so, you can use the Command line arguments to set a global property. The documentation is here: Command Line Arguments
Reading that, you can use the "-G" Argument to pass in a value for a global property. Example:
-GAutomated=true
That would set a global property of "Automated" equal to true. In your case, you would want, assuming username has been set up as a jenkins parameter.
-GUsername=${username}
- z21ray7 years agoOccasional Contributor
This exactly what I did, just did not deleted the post. It works as you said. Thanks a lot.
But then next question follows - how do I hide password from logs and reports? After tests runs I see that password is printed to console and inside reports. I cannot let it be there. Help please :)
Related Content
- 12 years ago
- 8 years ago
Recent Discussions
- 22 days ago