1.导错了包:@Test时import的是@org.testng.annotations.Test    所以会报错

     解决方法:改为import org.junit.Test;

2.Test类中为空的方法,如果整个工程都是空的,那就最好不要再设置任何注解

相关文章:

  • 2022-12-23
  • 2021-04-03
  • 2021-10-07
  • 2021-04-25
  • 2022-12-23
  • 2021-10-21
  • 2021-10-28
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
相关资源
相似解决方案