Forum Discussion

pedro_carneiro's avatar
pedro_carneiro
Occasional Contributor
15 years ago

Create 'Run Test Suite' option within a test suite

hi all,

i would like to suggest that within a test suite i have an option to run another test suite. in this way i improve test cases and test suites reusability instead of cloning test cases. as i know this can be difficult to understand i will try to illustrate it in the example below.

test suite A
- test case 1
- test case 2

test suite B
- test case 3
- test case 4
- test case 5

test case C
- test suite A (instead of cloning each test case from test suite A)
- test suite B (instead of cloning each test case from test suite B)

let me know if you have questions.
- pedro carneiro.
  • William_Willafo's avatar
    William_Willafo
    Occasional Contributor
    Can this not be accomplished with a two line groovy test step?

    testRunner.testCase.testSuite.project.testSuites['test suite A'].run(null,false)
    testRunner.testCase.testSuite.project.testSuites['test suite B'].run(null,false)