Forum Discussion

aadithps's avatar
aadithps
Occasional Contributor
15 years ago

Test case accesing and running

Can someone provide me a code to run a test case dat is inside another testsuite.

1 Reply

  • Create a groovy script test step with the following content:

    def testCase = testRunner.testCase.testSuite.project.testSuites['TestSuiteName'].testCases['TestCaseName']
    testCase.run(null, false)


    replace TestSuiteName and TestCaseName with the names of the Test Suite and Test Case you want to run.