Re: [Dev] How to run tests sequentially using @Factory and @DataProvider

2014-10-27 Thread Malithi Edirisinghe
Hi Krishantha, Thanks for the reply. Will do as you have suggested. Thanks, Malithi. On Mon, Oct 27, 2014 at 3:12 PM, Krishantha Samaraweera wrote: > Hi Malithi, > > Data provider returns array objects in order they specified in the array. > To overcome to problem, can you use dependsOnMethods

Re: [Dev] How to run tests sequentially using @Factory and @DataProvider

2014-10-27 Thread Krishantha Samaraweera
Hi Malithi, Data provider returns array objects in order they specified in the array. To overcome to problem, can you use dependsOnMethods annotation [1] and make your test method sequence well defined. Seems like 'group-by-instances' is introduced in latter version of TestNG. We are still using

Re: [Dev] How to run tests sequentially using @Factory and @DataProvider

2014-10-23 Thread Malithi Edirisinghe
Copying Krishantha On Wed, Oct 22, 2014 at 6:10 PM, Malithi Edirisinghe wrote: > Hi, > > I am creating tests dynamically with @Factory annotation for various set > of parameters with the use of a data provider. I want these tests to be > executed exactly in the order of the array of objects retu

[Dev] How to run tests sequentially using @Factory and @DataProvider

2014-10-22 Thread Malithi Edirisinghe
Hi, I am creating tests dynamically with @Factory annotation for various set of parameters with the use of a data provider. I want these tests to be executed exactly in the order of the array of objects returned by the data provider method. Ex: @Factory(dataProvider = "dp") public FactoryDataProv