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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -