dlebling
13 years agoNew Contributor
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
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