Forum Discussion
3 Replies
Sort By
- HimanshuTayalCommunity Hero
Hi SumitM,
I think in that case you need to write your TearDown and Setup Script at your TestSuite Level not on Project Level,
but you can achieve this via some groovy code:
testSuite.runSetupScript(context, runner)
In this case you need to set context and runner both. But i will suggest put your TearDown and Setup Script in appropriate place.
- SumitMOccasional Contributor
Hi HimanshuTayal,
Thanks for the response.
Can you please provide a code snippet or any screen sorts on how to achieve this via
testSuite.runSetupScript(context, runner)
- groovyguyCommunity Hero
You would have to put a groovy script test step in wherever you need to trigger that setup/tear down script.
Related Content
- 8 years ago
- 11 years ago