Forum Discussion
- richieCommunity HeroHi kumaryogeshyk ,
why the need to use groovy to do this when the embedded functionality does the job?
Is thr issue you just want to create endpoints via groovy or is it a case that you need the groovy to create the entries into the environments window?
I did find the following links that may help:
https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-set-testCase-endpoints-using-Groovy-Scripts/td-p/8412
https://community.smartbear.com/t5/SoapUI-Pro/Set-endpoint-using-groovy-script-which-works-in-Ready-API-and/td-p/172499
Cheers,
Rich- kumaryogeshykNew Contributor
Thank you so much richie G for your valuable comment.
Finally i have got the answer of m question.
def config=env.getSoapServiceAt(i).getEndpoint().getConfig()
log.info "Demo1 : "+config.getStringValue()
config.setStringValue("ReadApi")log.info "Demo2 : "+config.getStringValue()
Thanks
Yogesh
Related Content
Recent Discussions
- 5 days ago
- 10 days ago