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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -