Eviware Forum

soapUI => soapUI => Topic started by: srinivas das l on September 16, 2008, 01:28:18 pm



Title: How to get service name,interface name,operation name using Groovy script??
Post by: srinivas das l on September 16, 2008, 01:28:18 pm
Hi all,
Can any one tell me the way to get the interface name,service name using Groovy script???


Title: Re: How to get service name,interface name,operation name using Groovy script??
Post by: omatzura on September 16, 2008, 01:37:32 pm
Hi!

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

regards,

/Ole
eviware.com


Title: Re: How to get service name,interface name,operation name using Groovy script??
Post by: Desmond Cassidy on September 19, 2008, 01:49:01 pm
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.



Title: Re: How to get service name,interface name,operation name using Groovy script??
Post by: omatzura on September 19, 2008, 10:46:16 pm
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


Title: Re: How to get service name,interface name,operation name using Groovy script??
Post by: Desmond Cassidy on September 22, 2008, 01:47:31 am
Hi OLe...yep...many thanks that will do the trick...

Cheers,

Dezzz.