This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<conversionRule conversionWord="threadId" | |
converterClass="com.qualityminds.seleniumframework.utils.ThreadIdConverter"/> | |
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd 'T' HH:mm:ss.SSSZ} [%threadId][%p] %c{-3}->%M %m%n%throwable"/> | |
<property name="APP_LOG_ROOT" value="./logs"/> | |
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> | |
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Slf4j | |
public class RetryAnalyzer extends RetryAnalyzerCount { | |
private static final Set<Class<? extends Throwable>> RETRYABLE_EXCEPTIONS = Set.of( | |
TimeoutException.class, | |
UnreachableBrowserException.class, | |
SessionNotCreatedException.class, | |
NoSuchSessionException.class, | |
ExceptionInInitializerError.class, | |
StaleElementReferenceException.class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ApplyRetry implements IAnnotationTransformer { | |
@Override | |
public void transform( | |
@NotNull ITestAnnotation annotation, | |
Class testClass, | |
Constructor testConstructor, | |
Method testMethod | |
) { | |
annotation.setRetryAnalyzer(RetryAnalyzer.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.adarshr.gradle.testlogger.theme.ThemeType | |
plugins { | |
id 'java' | |
id "com.adarshr.test-logger" version "3.2.0" | |
} | |
group 'com.eworkgroup' | |
version '1.0-SNAPSHOT' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<conversionRule conversionWord="threadId" converterClass="com.eworkgroup.sptests.utils.ThreadIdConverter"/> | |
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd 'T' HH:mm:ss.SSSZ} [%threadId][%p] %c{-3}->%M %m%n%throwable"/> | |
<property name="LOG_PATTERN_FULL" value="%d{yyyy-MM-dd 'T' HH:mm:ss.SSSZ} [%threadId][%p] %c->%M %m%n%throwable"/> | |
<property name="APP_LOG_ROOT" value="./logs"/> | |
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> | |
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |