it is a very common error.
try this.
http://stackoverflow.com/questions/17777821/maven-dependency-conflict-org-w3c-dom-elementtraversal
Hi Ashish,
I have gone through your comments and followed the blog you referred me. Now I am getting different error following is my error.
org.testng.TestNGException:
Cannot find class in classpath: com.selenium.framework.GoogleTest
at org.testng.xml.XmlClass.loadClass(XmlClass.java:81)
at org.testng.xml.XmlClass.init(XmlClass.java:73)
at org.testng.xml.XmlClass.<init>(XmlClass.java:59)
at org.testng.xml.TestNGContentHandler.startElement(TestNGContentHandler.java:539)
I have gone through few blogs as well. But could not resolve. I can see in my Mavan project/Reference Libraries/ xml-apis-1.0.b2.jar
I have added this dependency. Can you please help me. Thanks.
<!-- xml-apis -->
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>2.0.2</version>
</dependency>
As per your comment on my other query I have added this new class ExtentReporterNG.class
<!-- Extent Reports -->
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.40.1</version>
</dependency>
Updated testng.xml file as well
<listeners>
<listener class-name="com.selenium.framework.ExtentReporterNG" />
</listeners>
Please let me know what will be the issue. thanks.
see if this helps
http://stackoverflow.com/questions/7600898/testng-error-cannot-find-class-in-classpath