1)Build Path出问题了

build path出问题了 ,java工程名前会有一个红色的感叹号,重新build一下

工程名上右键——》Build Path ——》Configure Build Path ...——》Libraries

Cannot find class in classpath解决方法

 

2)依赖包版本版不兼容

换个testng版本就好了

 

————————————————————————————————————————————————————

备注:testng依赖下载地址——https://mvnrepository.com/artifact/org.testng/testng

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2021-05-29
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案