Getting the below error. Some time project running but some time getting this error | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos

Getting the below error. Some time project running but some time getting this error

A
Ashutosh Kumar Post on 03/12/2019

[RemoteTestNG] detected TestNG version 7.0.0

org.testng.TestNGException:

Cannot find class in classpath: testDemo.Analytics.testA2

at org.testng.xml.XmlClass.loadClass(XmlClass.java:75)

at org.testng.xml.XmlClass.init(XmlClass.java:67)

at org.testng.xml.XmlClass.<init>(XmlClass.java:54)

at org.testng.xml.TestNGContentHandler.startElement(TestNGContentHandler.java:541)

at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:510)

at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)

at java.xml/com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:752)

at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351)

at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2710)

at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)

at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)

at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)

at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)

at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)

at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)

at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)

at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)

at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324)

at java.xml/javax.xml.parsers.SAXParser.parse(SAXParser.java:197)

at org.testng.xml.XMLParser.parse(XMLParser.java:39)

at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:16)

at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:9)

at org.testng.xml.Parser.parse(Parser.java:160)

at org.testng.xml.Parser.parse(Parser.java:246)

at org.testng.TestNG.parseSuite(TestNG.java:298)

at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:350)

at org.testng.TestNG.initializeEverything(TestNG.java:980)

at org.testng.remote.support.RemoteTestNG6_12.initialize(RemoteTestNG6_12.java:22)

at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:98)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

S

Instructor

Support Team Reply on 04/12/2019

Cannot find class in classpath: testDemo.Analytics.testA2

 

Please make sure the path is correct. Check your testng.xml