I have these 2 tests:
@Test
public void Test1() throws Exception { ... }
@Test
public void Test2() throws Exception { ... }
I would like that Test2
will run after Test1
, and only if Test1
was successful.
How can I achieve this in TestNG?
Aucun commentaire:
Enregistrer un commentaire