sleep interrupted

本案例在testng中遇到,意思是用例超过了,写的超时时间,把超时时间改大点就行了。

didn't finish within the time-out 60000

public class TestTimeout {

    @Test(timeOut = 5000) // time in mulliseconds

public void testThisShouldPass() throws InterruptedException {

Thread.sleep(4000);

}

@Test(timeOut = 1000)

public void testThisShouldFail() {

while (true);

}


版权声明:本文为dubo_csdn原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。