【发布时间】:2015-05-07 12:38:52
【问题描述】:
我的代码
public class Test{
@BeforeTest
public void create_user throws Exception (){
}
@Test
public void user_actions throws Exception (){
}
@AfterTest
public void delete_user throws Exception(){
}
}
上面是我的测试课。如果我在create_user() 中遇到任何错误,当前它会抛出Exception 并用完测试用例。
但我需要 delete_user() 应该执行,而不管 create_user() 或 user_actions() 中的任何错误
【问题讨论】:
标签: java annotations testng selendroid