lundi 9 octobre 2017

TestNG @Test(invocationCount = 20) to a Class with @Test(DataProvider="someList") to a Method

I have a TestNG test Suit for a JAVA Project and, In there I have a

@Test(DataProvider="ListOfObjects") annotated Method. Which provides method with around 20 rows of data.( Hence the method runs 20 times.) Now, I want to run this class for 2hrs (part of SOAK related test.) On average the Class takes around 10 mins for single run. So I am thinking or running the whole class for 12 times, and thus thinking of using @Test(invocationCount = 20) on the Class itself. Any Better Ideas ?

Aucun commentaire:

Enregistrer un commentaire