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

Popular posts from this blog

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -

Receive udp packets in android gstreamer -