Forum Discussion

stevenle's avatar
stevenle
Occasional Contributor
16 years ago

Service end point from a properties file or variable?

Hi,
I'm using SoapUI in local machine and I saved the project as *.xml file. For production environment, my host will be different and I don't want to change service end point every time. Is there a way to specify endpoint from properties file or a source?
  • Hi!
        If all of your test cases are present inside the project, then you can declare a project level property (say for e.g. WSEndpoint) where you can specify the service endpoint and you can use this property at the request like this:

    ${#Project#WSEndpoint}


    Hope this might help you.

    Thanks & regards!
    depeche
  • stevenle's avatar
    stevenle
    Occasional Contributor
    Thanks! It helps a lot. However, when host changes, i have to open the project and change the host.