Hi,
Can I get the operation name at the groovy script?
What's command do I use?
Regards,
Dan
Solved! Go to Solution.
With reference to screenshot, I can understand that you want to read the property Value which is "CustomerProfileInq". if it is, then you can use below code:-
testRunner.testCase.testSteps['RequestName'].getPropertyValue("Name")
Where you need to create a testStep as "RequestName".
Hi @avidCoder ,
I'm working at the mock service (Mock Response).
It doesn't work.
I applied your code and it returns:
com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; groovy.lang.MissingPropertyException: No such property: testRunner for class: Script33
Is it can be used the testRunner on the MockResponses?
Regards,
Dan
Not sure.. here. @nmrao - Could you please suggest?
Hi,
I changed the code to:
log.info("Name: "+mockOperation.operation.name)
It worked!!.
Regards,
Dan
Subject | Author | Latest Post |
---|---|---|