1.因为你@Test时import的是@org.testng.annotations.Test所以会报错 解决方法:改为import org.junit.Test;就可以了 相关文章: 2021-07-21 2022-12-23 2022-12-23 2021-11-10 2021-10-28 2021-07-20 2021-11-13