How to self-locate from inside a script step called from a different test case/test suite?
I am running SoapUI Pro (1.9). The problem I am facing is this: I have a Groovy script step in one test case (call it StepA in CaseA, SuiteA) call another Groovy test step in a different test case within a different test suite (call it StepB in CaseB, SuiteB). How can I determine StepB's location from within the StepB script?
When I call StepB, I pass to it context and testRunner variables from StepA. If I query these objects from within StepB, all the methods and properties that return the current test step, test case or test suite give me StepA, CaseA and SuiteA respectively. I looked everywhere I could think of but I could not find any way of getting at StepB' own location (i.e. StepB, CaseB, SuiteB).
Is there any way I can get what I want? Or perhaps an alternative solution to what I am trying to do? I am developing a kind of shared library within my project. I have done this before with stand-alone scripts that instantiate a class and attach it to context. Such scripts can be used from anywhere within the project. But this time the script that I am calling requires data steps and other scripts within the same test case, which is why I need to be able to determine what that "same test case" is from within the script.