Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
16 years ago

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.

1 Reply

  • Hi!

    I agree this looks strange, it is for historical reasons and we can't change it now since it would probably break code..

    sorry for the inconvenience.

    regards!

    /Ole
    eviware.com