[testng-dev] Re: Order of execution when @Factory at constructor level
For me, your example looks weird and testng is working as expected: account_list from data, may or may not be initialized before the call of the data provider. The only thing we can say is the data provider will be called before the method which need it.
Someone already asked more or less the same question one day ago: https://github.com/cbeust/testng/issues/883
Le jeudi 19 novembre 2015 13:20:30 UTC+1, Sandeep Aralihalli a écrit :
I am facing some issues as the order of execution is not correct when there is @Factory at constructor level and there are some tests are present..
I have provided the DataProvider(lazy fashion) as my data gets generated at RUNTIME at my original setup
I have simplified for illustrations and attached .....