Forum Discussion
Cizo89
11 years agoFrequent Contributor
Hi Leo,
if you're using SoapUI Pro 4.5 or higher, you can use the Environment functionality, which is ideal in this situation.
I assume you have this endpoint property created at your Project level.
If yes, you can easily create 4 environments with 4 different settings in your project - just go to your Project level, open tab Environments and create 4 environments here (lets say envA, envB, envC and envD).
Set your data to all properties in all environments.
Then click on tab SOAP Services or REST Services (depending on your services) and set this value for all your interfaces for property Endpoint:
${#Project#endpoint}
Now all your services pointing to endpoint specified in your Project level, in current Environment.
Environments can be easily switch - just open any TestSuite or TestCase editor and you'll see a ComboBox with your environments right next to the toolbar.
These environments can be also switched by Groovy script:
More details can be found here:
http://www.soapui.org/Environments/envi ... oapui.html
I hope it will help you
In case of any further questions, feel free to ask
Regards,
Marek
if you're using SoapUI Pro 4.5 or higher, you can use the Environment functionality, which is ideal in this situation.
I assume you have this endpoint property created at your Project level.
If yes, you can easily create 4 environments with 4 different settings in your project - just go to your Project level, open tab Environments and create 4 environments here (lets say envA, envB, envC and envD).
Set your data to all properties in all environments.
Then click on tab SOAP Services or REST Services (depending on your services) and set this value for all your interfaces for property Endpoint:
${#Project#endpoint}
Now all your services pointing to endpoint specified in your Project level, in current Environment.
Environments can be easily switch - just open any TestSuite or TestCase editor and you'll see a ComboBox with your environments right next to the toolbar.
These environments can be also switched by Groovy script:
testRunner.testCase.testSuite.project.setActiveEnvironment("envA")
More details can be found here:
http://www.soapui.org/Environments/envi ... oapui.html
I hope it will help you
In case of any further questions, feel free to ask
Regards,
Marek