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

前端 未结 30 1088
礼貌的吻别
礼貌的吻别 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:05

    If you use IntelliJ IDEA, try the following:

    1. From 'File', select "Invalidate Caches/ Restart" option.
    2. Confirm this action by clicking the "Invalidate and Restart" button.
    3. Then the IDEA will be restarted.
    4. You will then find a fresh copy of your project.
    5. You then need to import/ change project format to the Maven project. IDEA will show you options at the bottom right corner.
    6. After this, you should be able to run your project.

提交回复
热议问题