Solved
Forum Discussion
4 Replies
Sort By
Hi tsmith0422,
This question can be very specific to your test environment. nmrao, richie, groovyguy, is there anything you can suggest here?
- NBorovykh
Staff
Hi tsmith0422,
If your build agent sets environment variables in the system as Jenkins does, you should be able to access those variables from a Groovy script within ReadyAPI the same way as it's described here: https://smartbear-cc.force.com/portal/KbArticleViewer?name=How-to-get-Jenkins-environment-variables-in-ReadyAPI-when-ReadyAPI-test-is-being-ran-with-Jenkins&sp=readyapi
- nmrao
Champion Level 1
It is also possible without setting environment variable.
Use project level custom property, BUILD_NO and pass that value from commandline option to testrunner utility (hoping that it is same utility used for executing the tests)
Hope you knew how to access project level property in groovy script.- sonya_m
Alumni