I have a data provider with name "name" and to the @Test
I am passing this. @DataProvider(name = "TC_001")
@Test(dataProvider = "TC_001")
before this @Test
I want to run another @Test
which need to run only once . I have given the priority like @Test(priority=0)
@DataProvider(name = "TC_001")
@Test(dataProvider = "TC_001",priority=1)
But Still the control goes to the second priority instead of first one
Is there any solution for this ?
Aucun commentaire:
Enregistrer un commentaire