java - How to call TestNG Reporter.log on timeOut? -
how log timeout in testng reporter.log when timeout happens. @test(timeout=someunitoftime)
you can implement iinvokedmethodlistener.afterinvocation method.
if(arg1.getthrowable() instanceof org.testng.internal.thread.threadtimeoutexception){ reporter.log("timeout is!"); }
Comments
Post a Comment