Hi Cédric,
I looked into this issue and it seems I was misunderstanding how
@BeforeTest works. I thought @BeforeTest methods would execute before
any @Test methods in the same class, but they in fact execute before
any @Test methods in any class. Normally I only run individual tests
in Eclipse, so this distinction didn't matter. But once I ran the
whole test suite this causes an issue.
While investigating I read about @BeforeClass, which is what I should
have used in the first place. One question tho, must methods
annotated with @BeforeClass be static? if not are they guaranteed to
be called immediately after the class constructor?
Thank you,
Colin