我已经在testNG java中尝试了以下类似的代码。除了在测试方法中提供的任何断言之外,如果抛出错误,testng怎么知道它是一个失败的测试用例或将其标记为失败?
@Test
public void test() throws Exception
{
throw new Exception("this is customized..");
}
我已经在testNG java中尝试了以下类似的代码。除了在测试方法中提供的任何断言之外,如果抛出错误,testng怎么知道它是一个失败的测试用例或将其标记为失败?
@Test
public void test() throws Exception
{
throw new Exception("this is customized..");
}