ohaya
3 years agoContributor
Trying to use Groovyscript step to set property that is in Project View
Hi,
In our test steps' address bar, we have:
${#Project#centralized2}
And I have a Groovy test step that constructs the value for the "centralized2" property, but when I run the test step, it is not setting the value of the property in the Project view. The code that is supposed to set the project property value is:
testRunner.testCase.testSuite.project.setPropertyValue( "centralized2", finalTarget );
But, after I run the setup test step, the value of the "centralized2" property is not changed.
Can someone tell why that is not working?
Thanks,
Jim
I found the solution. I had to add ".toString()":
testRunner.testCase.testSuite.project.setPropertyValue( "centralized2", finalTarget.toString() );