Am using retry analyzer and extent report for selenium project. When a test case is failed, using retry analyzer the failed test case is ran twice. Issue is in Extent report am able to see both the runs. One as Skiped and the other as Failed.
How to modify extent report , such that it will provide only test result of final run i.e only Failed should be reported.
Extent reoprt version - 2.41.2
Code:
Retry Analyzer:
public class RetryAnalyzer implements IRetryAnalyzer{
int counter = 0;
int retryLimit = 1;
public boolean retry(ITestResult result){
if(counter<retryLimit){
counter++;
return true;
}
return false;
}
}
@BeforeMethod
public void aSetup(Method method) {
Report.loadConfig(new File(".\\Reports\\extent-config.xml"));
logger = Report.startTest(method.getName());
}
This images shows same test case, but i need only one to be logged