Forum Discussion
Lucian
6 years agoCommunity Hero
Yes you can. Environment variables are just normal SoapUi properties.
- stewmoon6 years agoOccasional Contributor
Can you please give me an example Groovy script for Setting the evironment properties or point me to the location in the soapuiapi.org?
- Lucian6 years agoCommunity HeroHey, I am kinda on the run and I don't have my work laptop with me. I will try to help you with some info though later today or tomorrow.
- Lucian6 years agoCommunity HeroHere is a late response... So I quickly looked at this and it is much harder than I initially thought. The endpoint and the name of the service are not saved as project properties so it is more difficult to change them.
So far I have only managed to change the service name in an environment.
Another solution would be to not change the endpoint itself but to assign to the endpoint a project property. Then you would change that project property depending on the environment. The only drawback of this is that you won't be able to xhange the service name...