Forum Discussion

mcbootus's avatar
mcbootus
Contributor
14 years ago

[Res] Calling test cases and test steps

Dear Support, I want to setup a global groovy script which calls test steps from other test cases - below is an example structure: TESTSUITE1 -----TESTCASE1 -------TESTSTEP6 -----TESTCASE2 ...
  • SmartBear_Suppo's avatar
    14 years ago
    Hi Armen,

    you can run a TestCase with

    runner = testRunner.runTestStep( project.testSuites['TestSuite1'].testCases['TestCase2'].run( null, true )
    runner.waitUntilFinished()
    etc..

    Does that work ok?

    regards,

    /Ole
    eviware.com