Error: org.testng.TestNGException: Cannot find class in classpath: EmpClass

前端 未结 30 1200
礼貌的吻别
礼貌的吻别 2020-12-09 08:17

When i\'m trying to run the test suite, am getting this exception. We are using maven project here and i am done with refreshing, cleaning, reinstalling testNG and then impo

30条回答
  •  [愿得一人]
    2020-12-09 09:16

    For me the problem was very strange.
    I have a testng.xml file at the root of my Eclipse project. When I changed the file through Eclipse, it wasn't changing the testng.xml file in my directory.

    Turns out it made a copy of the folder into the eclipse workspace..

    Hope this helps someone out

提交回复
热议问题