Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
What environment was active when you ran the Groovy script? The dev environment may have been active when you ran the Groovy script so the properties were created for the dev environment. You should switch to the environment you want the properties to be created for first.
If you switch to default environment, create the properties, and the properties are being created for the other environments also then it's a bug and I will open an internal defect.
Regards,
Marcus
SmartBear Support
What environment was active when you ran the Groovy script? The dev environment may have been active when you ran the Groovy script so the properties were created for the dev environment. You should switch to the environment you want the properties to be created for first.
testRunner.testCase.testSuite.project.setActiveEnvironment("Default") //switch to default environment
testRunner.testCase.testSuite.project.setPropertyValue("userToken", userToken)
testRunner.testCase.testSuite.project.setPropertyValue("userId", userId)
testRunner.testCase.testSuite.project.setPropertyValue("advertiserId", advertiserId)
If you switch to default environment, create the properties, and the properties are being created for the other environments also then it's a bug and I will open an internal defect.
Regards,
Marcus
SmartBear Support