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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -