从main方法抛出错误调用testng.xml

时间:2015-03-09 08:38:34

标签: testng

我从main方法调用testng.xml但是它给出了错误

Exception in thread "main" java.lang.NoSuchMethodError: org.testng.ITestResult.getTestContext()Lorg/testng/ITestContext;
    at atu.testng.reports.writers.CurrentRunPageWriter.getSuiteNameMapper(Unknown Source)
    at atu.testng.reports.writers.CurrentRunPageWriter.writeFailedData(Unknown Source)
    at atu.testng.reports.writers.CurrentRunPageWriter.content(Unknown Source)
    at atu.testng.reports.listeners.ATUReportsListener.generateCurrentRunPage(Unknown Source)
    at atu.testng.reports.listeners.ATUReportsListener.onFinish(Unknown Source)
    at atu.testng.reports.listeners.ATUReportsListener.generateReport(Unknown Source)
    at org.testng.TestNG.generateReports(TestNG.java:1064)
    at org.testng.TestNG.run(TestNG.java:1023)
    at com.eagle.automation.main.MainStart.main(MainStart.java:26)

0 个答案:

没有答案