Forum Discussion
- kondasamyRegular Contributor
Do you wish to change the common Endpoint for all the methods in your project? If so, you can make you use of the Environment manager feature available in Ready API - http://readyapi.smartbear.com/readyapi/environments/introduction
Please mention if I have misunderstood your problem.
Thanks,
Kondasamy
- minosuNew Contributor
I don't know what ReadyAPI is, I am on SoapUI 5.2.1, which I seems to exclude environment settings.
Shouldn't this be available to a Groovy script?
- kondasamyRegular Contributor
Since you have posted in SoapUI NG (Ready API) forum, it made me to assume that you are using Pro version. This question should actually got to open source forum.
Anyhow, the situation can be handled by Groovy script; please check the post here - https://community.smartbear.com/t5/SoapUI-Open-Source/Environment-handling/m-p/107655/highlight/true#M18600
Thanks,
Kondasamy
- minosuNew Contributor
Yes, we already use Groovy script to set the endpoint of HTTP/SOAP calls.
def project = testRunner.testCase.testSuite.project def call = testRunner.testCase.testSteps["call"] def url = project.getPropertyValue("server") def endpoint = new URI(call.getPropertyValue("endpoint")) def wholeUrl = url + endpoint.getPath() call.setPropertyValue("endpoint", wholeUrl)
However, I can't seem to find any API to set the endpoint of a schema compliance assertion. The configuration and settings objects appear to be empty, and .configure() opens a popup for the user to enter the URL -- and won't accept a URL parameter programmatically.