Forum Discussion
- SBegleyStaff
Hi gomathiSubraman,
I hope you are keeping well.
Yes of course you can pass variable values via the command line using the following methods
To pass variable values via the command line, use the
PrjVar
(pv
) orPSVar
(psv
) arguments for the project and project suite variables respectively. reference Passing Variables via Command LineFor Example in Jenkins under the Configuration / Build -> Settings you can add in additional command line arguments and in my example below i'm setting the UserName variable in my test to be sb@test.com
Upon execution of the test it will take the value passed from the command line and set this value against my variable in test.
There are also options to Passing Test Parameters via Command Line and these can also be configured using the additional command line options within Jenkins.
Please let me know if this resolves your query or if you have any additional questions.
Thanks,
Shane
Related Content
- 7 years ago
- 12 years ago
Recent Discussions
- 8 hours ago
- 4 days ago