Forum Discussion

dlebling's avatar
dlebling
New Contributor
13 years ago

Groovy shorthand for running TCs?

To get a testCase from another testSuite in the same project in Groovy, examples show something like:

def tc = testRunner.testCase.testSuite.project.testSuites["otherTestSuite"].testCases["otherTestCase"]

Is there a less cumbersome way to do this? Something like

def tc = testRunner.getTC["/otherTestSuite/otherTestCase"]

would be nice. I.e., "/" is the project, and downward from there.

Dave
No RepliesBe the first to reply