Forum Discussion

srinivas_das_l's avatar
srinivas_das_l
Contributor
16 years ago

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

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

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

    regards,

    /Ole
    eviware.com
  • 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.
  • omatzura's avatar
    omatzura
    Super Contributor
    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