Jenkins Environment Variables not accessible to UFT test
We are using Jenkins with the Micro Focus Application Automation Tools addin to run UFT tests from ALM. It seems that the environment variables set by Jenkins (eg. JOB_NAME and BUILD_ID) are not available in the test using CreateObject("WScript.Shell").ExpandEnvironmentStrings. Is there any way the test can get access to those variables?
There are about 20 different variables, and any job parameters are also added.
please check the new feature in 14.51:
with bath runner, you may pass the environment to the Test as the Test parameter. I am not sure about the Test saved on ALM.
An alternative is to customize some program, taking the Jenkins variable to build an xml file which in turn serves as the ENV file for the Test.