將插件更新到5.14.6.20110125_1620後,開始在eclipse上運行我的testng測試時出現問題。我得到這樣的錯誤:Eclipse Testng Plugin 5.14.6.20110125_1620有問題
啓動AdvanceSearchToCheckoutPage遇到問題。單擊對話框中的詳細信息說「過程中發生內部錯誤:‘’。 無法在類路徑中尋找類:sandy.selenium.testng.SearchToCheckoutNav.AdvanceSearchToCheckoutPage」啓動AdvanceSearchToCheckoutPage
注意這個測試之前運行完全正常的一天。我如何運行我的測試?我右鍵單擊測試並選擇運行爲testng。現在我想恢復到舊的插件版本,並遇到各種問題
cedric何時需要他?
繼承人的堆棧跟蹤
org.testng.TestNGException: 找不到類路徑中的類:在org.testng.xml.XmlClass.loadClass alibris.selenium.testng.SearchToCheckoutNav.AdvanceSearchToCheckoutPage (XmlClass.java :72) 在org.testng.xml.XmlClass.init(XmlClass.java:64) 在org.testng.xml.XmlClass(XmlClass.java:50) 在org.testng.xml.TestNGContentHandler.startElement(。 TestNGContentHandler.java:503) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:767) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl。 java:1363) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl。 (XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers。 XML11Configuration.parse(XML11Configuration.java:808) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Confi guration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser。解析(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $ JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser。的java:395) 在javax.xml.parsers.SAXParser.parse(SAXParser.java:198) 在org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:17) 在org.testng.xml.SuiteXmlParser。解析(SuiteXmlParser.java:10) at org.testng.xml.Parser.parse(Parser.java:153) at org.testng.eclipse.util.CustomSuite.createXmlFileFromTemplate(CustomSuite.java:150) at o rg.testng.eclipse.util.CustomSuite.createContentBuffer(CustomSuite.java:105) at org.testng.eclipse.util.CustomSuite.getSuiteBuffer(CustomSuite.java:222) at org.testng.eclipse.util.CustomSuite。保存(CustomSuite.java:241) 在org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.createVMRunner(TestNGLaunchConfigurationDelegate.java:238) 在org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launchTypes(TestNGLaunchConfigurationDelegate.java:109) 在org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate。啓動(TestNGLaunchConfigurationDelegate.java:67) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java: 702) 在org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923) 在org.eclipse.debug.internal.ui.DebugUIPlugin $ 8.run(DebugUIPlugin.java:1126) 在組織.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
是的,它在較舊的版本,因爲這是我的隊友有。我是唯一一個升級插件,因爲我得到了eclipse通知升級。當完成時,我開始得到這個問題。感謝cedric是全能的 – Afamee 2011-02-01 22:26:14