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
In my case I imported maven project as Default existing project in eclipse.After that I imported as maven project.That worked for me.
I also got the same exception:
I tried the following steps:
In Eclipse> Project > Clean. (The Exception remained)
I ran another project(The testng.xml ran successfully)
After running another project, I ran the project in which I was getting the Exception, and fortunately it worked for me, with no errors.
In testng.xml file, remove "." from tag "" class name if you are not using packages.
In my opinion if src has test/java/ folders then in build path out location should be like target/test-classes.
If src has main/java/ folders then in build path out location should be like target/classes.
I had the same issue when i was using selenium 3.11.xx dependency however my problem was resolved when i used selenium 3.4.x dependency.
For me it was that I added Skip Tests checkbox/flag in the Maven Build of the Project
Therefore the test classes weren't compiled and then weren't found by TestNG