Forum Discussion
SmartBear_Suppo
10 years agoSmartBear Alumni (Retired)
Hi,
Try this in a Groovy TestStep:
Regards,
Giscard
SmartBear Support
Try this in a Groovy TestStep:
for (i in 0 .. testRunner.testCase.testSuite.project.getEnvironmentCount()-1)
{
def env = testRunner.testCase.testSuite.project.getEnvironmentAt(i).getName();
log.info env
testRunner.testCase.testSuite.project.setActiveEnvironment(env)
testRunner.testCase.testSuite.project.setPropertyValue( "MyProp2", "3333555" )
}
Regards,
Giscard
SmartBear Support
Related Content
- 8 months agoDGISQ