Forum Discussion

ameehl's avatar
ameehl
New Contributor
12 years ago

Selected Project Endpoint

I've been searching for hours, going through crappy documentation, and perusing the API. I need to get the selected endpoint that's not based upon the test name:

testRunner.testCase.getTestStepByName("Test Name").getHttpRequest().getEndpoint()

I want to get this information without being dependent on a test name, so perhaps from the project level. I can't find anything that will point me in the right direction.

Thanks for your help.
-Drew

1 Reply

  • I am sorry to hear that you are having issues, we dont really support groovy since its a third party language not created by us but you can try the below statement and see if it works. We also have some recorded Groovy webinars. Please let me know if you need anything else. thanks.

    def stepName = context.getCurrentStep().getLabel()

    Regards,
    Temil