Issue in invoking rest method from another test suite using groovy script
HI All,
I am facing issue where i am unable to invoke rest step that exists in another test suite. When I ran the script, i am always getting "End point url not found". But when I execute the same step directly by clicking Run button it is working fine.
Here is the code that i used to invoke rest method from another test suite in same project.
ServiceName=context.testCase.testSuite.getPropertyValue("Service")
methodname=context.testCase.testSuite.getPropertyValue("Method")
context.testCase.testSuite.project.testSuites["Services"].testCases[ServiceName].testSteps[methodname].run(null,context)
I double checked the values printed in the log and it looks good. Not sure what's wrong with the above step.
Please find the attached screenshots which might help in understanding the issue. Any help is greatly appreciated.