Sandia_National
12 years agoOccasional Contributor
[Resolved] Setup/teardown. Am I the "root" of testrunner?
Hi Smartbear,
Each of the levels: Project, TestCase, and TestSuite, have setup and teardown methods, as well as a green "run" arrow. I'd like to detect in the setup/teardown code whether the current runner is "rooted" (for lack of a better word) at *me*. That is, at the TestCase level, it's possible that *my* run button was pressed. Alternatively, perhaps the run started from the Suite or even project levels above me.
I want to do some special setup/teardown if I am the actual root of the run.
Is my question lucid?
I can see that if I'm some setup code at the Project level, the I'm necessarily the level at which the test run started. (Or ... can I compose projects?).
Cheers,
--Bob
Each of the levels: Project, TestCase, and TestSuite, have setup and teardown methods, as well as a green "run" arrow. I'd like to detect in the setup/teardown code whether the current runner is "rooted" (for lack of a better word) at *me*. That is, at the TestCase level, it's possible that *my* run button was pressed. Alternatively, perhaps the run started from the Suite or even project levels above me.
I want to do some special setup/teardown if I am the actual root of the run.
Is my question lucid?
I can see that if I'm some setup code at the Project level, the I'm necessarily the level at which the test run started. (Or ... can I compose projects?).
Cheers,
--Bob