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
Project>>Clean and Maven>>Update Project worked for me
This issue can be resolved by adding TestNG.class package to OnlineStore package as below
My 2 cents on the problem: I was experiencing the same problem, while some part of my path was in Cyrillic. So check the path to your project for special characters. Once I removed this, the problem was fixed
I came across the same issue stated above today. **setting the class-path again in eclipse ** solved the issue .
You should create package first and then create new TestNG class under that package.
If you use IntelliJ IDEA, try the following: