Forum Discussion

Etks's avatar
Etks
Occasional Contributor
8 years ago

Test Step "Run TestCase" How to get test step index of parent test case?

Hi all. I have a REST Project (I'm using SoapUI Pro) where I'm a little stuck.   In Test Case A I am using a test step "Run Test Case B". Inside of Test Case B I have a single step: a Groovy script...
  • nmrao's avatar
    nmrao
    8 years ago

    Etks,

     

    Not sure what your use case is. But that is interesting technically.

     

    And here is how you can get it. By the way, thank your for your search and the link with which I got the clue for the below:

     

    def nContext = context.getProperty("#CallingTestRunContext#")
    log.info nContext.currentStepIndex