我从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)