0
如何在timeOut發生時記錄TestNG Reporter.log中的超時。 @Test(timeOut = someUnitOfTime)如何在timeOut上調用TestNG Reporter.log?
如何在timeOut發生時記錄TestNG Reporter.log中的超時。 @Test(timeOut = someUnitOfTime)如何在timeOut上調用TestNG Reporter.log?
您可以實施IInvokedMethodListener.afterInvocation方法。
if(arg1.getThrowable() instanceof org.testng.internal.thread.ThreadTimeoutException){
Reporter.log("Timeout it is!");
}