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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -