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

前端 未结 30 1204
礼貌的吻别
礼貌的吻别 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条回答
  •  -上瘾入骨i
    2020-12-09 09:03

    This issue can be resolved by adding TestNG.class package to OnlineStore package as below

    1. Step 1: Build Path > Configure Build Path > Java Build Path > Select "Project" tab
    2. Step 2: Click "add" button and select the project with contains the TestNG source.
    3. Step 3 select TestNG.xml run as "TestNG Suite"

提交回复
热议问题