标题: TestNg中提示找不到Cannot find class in classpath [打印本页] 作者: hjianhui 时间: 2016-1-11 11:51 标题: TestNg中提示找不到Cannot find class in classpath selenium WebDriver中用TestNG xml文件启动,报错,有谁知道什么原因吗?
Cannot find class in classpath: test126Mail.src.com.test126Mail.testng
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:548)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)