Forum Discussion

silvestrpeknik's avatar
silvestrpeknik
Occasional Contributor
12 years ago

How to access testsuite context from a testcase?

Hi,

I need to access test suite context from a test case. How can i do it?

More technically, i have WsdlTestRunContext and WsdlTestCaseRunner and need to get WsdlTestSuiteRunContext.

Thanks a lot,
Silvestr

1 Reply

  • silvestrpeknik's avatar
    silvestrpeknik
    Occasional Contributor
    Found the solution:


    def suiteRunner = context.getProperty( "#TestSuiteRunner#" )
    suiteContext = suiteRunner.getRunContext()