Forum Discussion

DAPurcey's avatar
DAPurcey
New Contributor
4 years ago
Solved

Run a TestSuite TearDown Script from testrunner

Hello,

I am wanting to run a TestSuite TearDown Script using testrunner after running one TestCase in that 
TestSuite.

Any information or sample code would be appreciated.

Thanks

  • Hey DAPurcey 

     

    If you have to run teardown script after a specific testcase, why can't you keep that script in testcase teardown script instead of test suite teardown.

2 Replies

  • PrathapR's avatar
    PrathapR
    Frequent Contributor

    Hey DAPurcey 

     

    If you have to run teardown script after a specific testcase, why can't you keep that script in testcase teardown script instead of test suite teardown.

    • DAPurcey's avatar
      DAPurcey
      New Contributor

      It is different than the TestCase Teardown

      My TestSuite level Setup creates a Unique Report Header and then Teardown reads the Summary Report etc and removes some and creates a Final Combined Report.

       

      So at the TestCase Level I need both TestSuite 1 Setup Script and Teardown Script to run.

      Is there a way to only call those using testrunner?