How to add Endpoint in SOAP services section of environment using groovy?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020
03:41 AM
04-14-2020
03:41 AM
How to add Endpoint in SOAP services section of environment using groovy?
How to to set any value in Endpoint column of soap services section through groovy?
Yogesh
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020
11:14 AM
04-14-2020
11:14 AM
Hi @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-Scr...
https://community.smartbear.com/t5/SoapUI-Pro/Set-endpoint-using-groovy-script-which-works-in-Ready-...
Cheers,
Rich
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-Scr...
https://community.smartbear.com/t5/SoapUI-Pro/Set-endpoint-using-groovy-script-which-works-in-Ready-...
Cheers,
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020
08:35 AM
04-15-2020
08:35 AM
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
