Ask a Question

Run a TestSuite TearDown Script from testrunner

SOLVED
DAPurcey
New Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
PrathapR
Frequent Contributor

Re: Run a TestSuite TearDown Script from testrunner

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.

View solution in original post

2 REPLIES 2
PrathapR
Frequent Contributor

Re: Run a TestSuite TearDown Script from testrunner

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.

View solution in original post

DAPurcey
New Contributor

Re: Run a TestSuite TearDown Script from testrunner

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?

cancel
Showing results for 
Search instead for 
Did you mean: