
com.applitools.eyes.selenium.ClassicRunner Maven / Gradle / Ivy
package com.applitools.eyes.selenium;
import com.applitools.eyes.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ClassicRunner extends EyesRunner {
private List allTestResult = new ArrayList<>();
private Error exception;
@Override
public TestResultsSummary getAllTestResultsImpl(){
return getAllTestResults(true);
}
@Override
public TestResultsSummary getAllTestResultsImpl(boolean shouldThrowException) {
if (shouldThrowException && exception != null)
{
throw exception;
}
List result = new ArrayList<>();
for (TestResults testResults : allTestResult) {
result.add(new TestResultContainer(testResults, null, null));
EyesBase.logSessionResultsAndThrowException(logger, shouldThrowException, testResults);
}
return new TestResultsSummary(result);
}
void aggregateResult(TestResults testResult){
this.allTestResult.add(testResult);
}
public void setException(Error exception) {
this.exception = exception;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy