Eclipse中使用git提交代码,报错Testng 运行Cannot find class in classpath的解决方案

Eclipse中使用git提交代码,报错Testng 运行Cannot find class in classpath的解决方案

一、查找原因方式

1.点击Project——>Clear...——>Build Automatically

2.查看问题

Eclipse中使用git提交代码,报错Testng 运行Cannot find class in classpath的解决方案

二、报错因素

1.提交.xlsx文件

2.提交时,.xlsx文件被打开

三、解决方案

1.关闭此.xlsx文件以及删除新生成的xlsx文件

2.再次pull以及提交