My code
public class Test{
@BeforeTest
public void create_user throws Exception (){
}
@Test
public void user_actions throws Exception (){
}
@AfterTest
public void delete_user throws Exception(){
}
}
Above is my test class. If i get any error in create_user(), currently its throws Exception and ran out of the test case.
But i need delete_user() should be executed irrespective of any error in create_user() or user_actions()