gpeeters
12 years agoOccasional Contributor
not able to remove properties in environment context
Hi,
I'm currently using SoapUI Pro 5.0
I have 3 environments : dev, tst and stg
In a Groovy script I wrote some parameters to project level.
Those properties were not defined at project level upfront
the moment I ran the script dev was selected as environment
The properties were created, but only under the dev environment context
They were not existing on general project level, the only place were you can delete them.
So I ended up with parameters under the dev environment that I cannot delete.
Next I created the properties at generic project level.
When I switch to the dev environment settings, I saw my parameters twice.
When I run the script again, the values are written in the project level parameters.
testRunner.testCase.testSuite.project.setPropertyValue should
create the parameters on global project level and fill in the values in the current context
or
An error should be thrown that the parameters are not existant and should be defined first manually.
Kind regards,
Geert
I'm currently using SoapUI Pro 5.0
I have 3 environments : dev, tst and stg
In a Groovy script I wrote some parameters to project level.
testRunner.testCase.testSuite.project.setPropertyValue("userToken", userToken)
testRunner.testCase.testSuite.project.setPropertyValue("userId", userId)
testRunner.testCase.testSuite.project.setPropertyValue("advertiserId", advertiserId)Those properties were not defined at project level upfront
the moment I ran the script dev was selected as environment
The properties were created, but only under the dev environment context
They were not existing on general project level, the only place were you can delete them.
So I ended up with parameters under the dev environment that I cannot delete.
Next I created the properties at generic project level.
When I switch to the dev environment settings, I saw my parameters twice.
When I run the script again, the values are written in the project level parameters.
testRunner.testCase.testSuite.project.setPropertyValue should
create the parameters on global project level and fill in the values in the current context
or
An error should be thrown that the parameters are not existant and should be defined first manually.
Kind regards,
Geert