Forum Discussion

mula2man's avatar
mula2man
Occasional Visitor
8 years ago

I want to use groovy script in the Test Suites Custom Properties value to get the Environments value

I am trying to get the project's environment value. I added this script to the custom properties value ${def env = testRunner.testCase.testSuite.project.activeEnvironment.name; return env;}.  The script works in a groovy script test step but not in the custom properties. 

 

What am I doing wrong?