tags:

views:

42

answers:

1

Using TestNG, why does the @DataProvider run before @BeforeClass?

seems sometimes DataProvider run before BeforeClass some time not?

Anybody knowing the reason?

Many thanks!!

A: 

Hi Susan,

It's just the way it's implemented today, is this a problem for you?

Cedric Beust
Hi Cedric,Thanks for answering. I wanna some methods run before DataProvider and run only once. what can I do?
susantjs
How about using a @BeforeSuite?
Cedric Beust