java - webdriver, catching @Test(timeout = 10000) -


my webdriver tests annotated @test(timeout = 10000) force test end after 10000ms. prevents tests hanging night if there error.

however, tests writing additional info file, , if test times out in way, line not written file. possible catch type of timeout?

@test(timeout = 100000) public void testsomething() throws exception {     //do stuff     //if times out, line below never called.     //print file } 

i'd suggest implementing junit rule.
extend testwatcher class , override succeeded method.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -