cancel
Showing results for 
Search instead for 
Did you mean: 

How to get service name,interface name,operation name using Groovy script??

Contributor

How to get service name,interface name,operation name using Groovy script??

Hi all,
Can any one tell me the way to get the interface name,service name using Groovy script???
4 REPLIES 4
Super Contributor

Re: How to get service name,interface name,operation name using Groovy script??

Hi!

sure.. any specific service/interface/operation you are interested in (in relation to your current script)?

regards,

/Ole
eviware.com
Contributor

Re: How to get service name,interface name,operation name using Groovy script??

Hi,
  Belive it or not...just this minute....I would like to do a Property Transfer into a DataSink for the Operation Name...is this possible...

Cheers,

Dezzz.
Super Contributor

Re: How to get service name,interface name,operation name using Groovy script??

Hi Dezzz,

you would have to use groovy to do the transfer instead, for example

def operationName = testRunner.testCase.testSteps["Some Request"].operation.name
testRunner.testCase.testSteps["DataSink"].setPropertyValue( "name", operationName )

does this help you forward?

regards,

/Ole
eviware.com
Contributor

Re: How to get service name,interface name,operation name using Groovy script??

Hi OLe...yep...many thanks that will do the trick...

Cheers,

Dezzz.
New Here?
Join us and watch the welcome video:
Announcements