Listeners order execution for RP agent
Zahorodnii opened this issue · 0 comments
Zahorodnii commented
Steps:
Attach @listeners annotation
Define example listeners in next order: @listeners({ReportPortalTestNGListener.class, ScreenShooter.class})
In onTestFailure metod we have next line: this.testNGService.finishTestMethod("FAILED", testResult);
Due to listeners runing in random order, screenshot sometimes not attached to RP, becouse finishTestMethod runing before screenshot attach. Nordstrom/TestNG-Foundation don't help, becouse now they have a bug with different versions of testNG and Nordstrom.