Forum Discussion
tstmartin
15 years agoContributor
Thanks Beno!
Looks like that is the first part of the answer to my problem - I believe that tells soapUI where to get the definition.
Second part of the answer is to change the service endpoint as well.
Final part is to do the changes using a property, rather than hard coding into each service.
I have not got my second server up yet, so can't verify against it, but I believe I have the overall solution . At least, the following works if I set up the properties to point at my current server, and it breaks appropriately if I point to a non-existent server.
(see http://www.soapui.org/Functional-Testin ... rties.html centralized endpoint example for step 2)
Thanks to Beno, dmllc and SiKing !
(viewtopic.php?f=5&t=6493
"running same tests on a different server/environment")
-tom
Looks like that is the first part of the answer to my problem - I believe that tells soapUI where to get the definition.
Second part of the answer is to change the service endpoint as well.
Final part is to do the changes using a property, rather than hard coding into each service.
I have not got my second server up yet, so can't verify against it, but I believe I have the overall solution . At least, the following works if I set up the properties to point at my current server, and it breaks appropriately if I point to a non-existent server.
1) Make Project custom properties
ServiceEndpoint = 192.168.1.101:7280
MyVersion = v1_0
2) change service endpoint for services - example:
old service endpoint url :
http://192.168.1.101:7280/MyWebservice/v1_0/services/MyService
new service endpoint:
http://${#Project#ServiceEndpoint}/MyWebservice/${#Project#MyVersion}/services/MyService
3) make the same change to the definition url of the services (the properties in the lower left pane).
(see http://www.soapui.org/Functional-Testin ... rties.html centralized endpoint example for step 2)
Thanks to Beno, dmllc and SiKing !
(viewtopic.php?f=5&t=6493
"running same tests on a different server/environment")
-tom