M_McDonald
16 years agoSuper Contributor
Ordering of TestCase events
Hi -
I added logging to the project events TestRunListener.beforeRun and TestRunListener.afterRun events as well as the Setup and TearDown events for a test case, and I notice they fire in the following order:
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase Setup: TestCase
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase beforeRun: TestCase
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase TearDown: TestCase
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase afterRun: TestCase
This seems asymmetrical to me; just curious as to why the test run events aren't both either outside or inside of the test case events.
I added logging to the project events TestRunListener.beforeRun and TestRunListener.afterRun events as well as the Setup and TearDown events for a test case, and I notice they fire in the following order:
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase Setup: TestCase
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase beforeRun: TestCase
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase TearDown: TestCase
Tue Mar 16 09:19:52 EDT 2010:INFO:TestCase afterRun: TestCase
This seems asymmetrical to me; just curious as to why the test run events aren't both either outside or inside of the test case events.