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
Post a Comment