Forum Discussion
kondasamy
Regular 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
minosu
8 years agoNew 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.