testng--超时测试

package com.Paramter;

import org.testng.annotations.Test;

public class timeTest {
@Test(timeOut = 2000)
public void timeSuccesTest()throws InterruptedException{
Thread.sleep(1000);
}

@Test(timeOut = 2000)
public void timeFailTest()throws InterruptedException{
Thread.sleep(3000);
}
}
posted on 2021-08-01 17:50  thy520  阅读(18)  评论(0编辑  收藏  举报