cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Endpoint in SOAP services section of environment using groovy?

SOLVED
Highlighted
New Contributor

How to add Endpoint in SOAP services section of environment using groovy?

kumaryogeshyk_0-1586860705637.png

How to to set any value in Endpoint column of soap services section through groovy?

 

Yogesh 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

Re: How to add Endpoint in SOAP services section of environment using groovy?

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

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: How to add Endpoint in SOAP services section of environment using groovy?

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
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
Highlighted
New Contributor

Re: How to add Endpoint in SOAP services section of environment using groovy?

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

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors