Search code examples
fitnesse

FitNesse: how to add a single test page to multiple test suites


how to add a single test page to multiple test suites?

Please note that I want to get the suite name in SuiteSetUp during the test run. Is this possible in FitNesse?


Solution

  • how to add a single test page to multiple test suites
    You simply create a page under your suite and include the test page.

    Not sure about the second questions, sounds like you're trying to do dynamic include and that's not possible. I.e.

    !include $mySuite 
    

    where $mySuite is defined in SuiteSetUp. At least I couldn't find a solution.

    You might want to consider generating the data in the SuiteSetUp and use something like parametrized includes. Personally I found them to work better with symbols.