Package com.auto.framework.runner
Class TestsExecutor
java.lang.Object
com.auto.framework.runner.TestsExecutor
public class TestsExecutor
extends java.lang.Object
User: Priytam Jee Pandey
Date: 28/05/20
Time: 1:17 pm
email: mrpjpandey@gmail.com
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Loggerlogger -
Constructor Summary
Constructors Constructor Description TestsExecutor() -
Method Summary
Modifier and Type Method Description voidexecute(java.lang.String packagePrefix)TestsExecutorwithAfterExecution(java.util.function.Consumer<ExecutionResult> consumer)TestsExecutorwithBeforeExecution(java.util.function.Consumer<java.util.Collection<java.lang.String>> consumer)TestsExecutorwithEnableMail(MailConfig mailConfig)TestsExecutorwithLogFileHandler(java.util.function.Consumer<java.nio.file.Path> testLogHandler)TestsExecutorwithMailTablesBuilder(java.util.function.Function<ExecutionResult,java.util.List<MailTemplateBuilder.TableBuilder>> tablesBuilderFunction)TestsExecutorwithOnExecutionFailure(java.util.function.Consumer<java.lang.Exception> onFailure)TestsExecutorwithOnExecutionSuccess(java.util.function.Consumer<ExecutionResult> onSuccess)TestsExecutorwithOnTestCompletion(java.util.function.Consumer<TestJobResult> onTestCompletion)TestsExecutorwithTestFailureExceptionHandler(java.util.function.Consumer<java.lang.Exception> exceptionHandler)TestsExecutorwithTestListBuilder(TestListBuilder builder)TestsExecutorwithTestRetryCount(int count)
-
Field Details
-
logger
protected static final org.apache.log4j.Logger logger
-
-
Constructor Details
-
TestsExecutor
public TestsExecutor()
-
-
Method Details
-
execute
public void execute(java.lang.String packagePrefix) -
withTestListBuilder
-
withBeforeExecution
public TestsExecutor withBeforeExecution(java.util.function.Consumer<java.util.Collection<java.lang.String>> consumer) -
withAfterExecution
-
withTestRetryCount
-
withTestFailureExceptionHandler
public TestsExecutor withTestFailureExceptionHandler(java.util.function.Consumer<java.lang.Exception> exceptionHandler) -
withOnExecutionFailure
public TestsExecutor withOnExecutionFailure(java.util.function.Consumer<java.lang.Exception> onFailure) -
withOnExecutionSuccess
public TestsExecutor withOnExecutionSuccess(java.util.function.Consumer<ExecutionResult> onSuccess) -
withEnableMail
-
withMailTablesBuilder
public TestsExecutor withMailTablesBuilder(java.util.function.Function<ExecutionResult,java.util.List<MailTemplateBuilder.TableBuilder>> tablesBuilderFunction) -
withOnTestCompletion
public TestsExecutor withOnTestCompletion(java.util.function.Consumer<TestJobResult> onTestCompletion) -
withLogFileHandler
public TestsExecutor withLogFileHandler(java.util.function.Consumer<java.nio.file.Path> testLogHandler)
-