Class QtafTestNGAfterSuiteInterceptor
java.lang.Object
de.qytera.qtaf.core.guice.method_interceptor.QtafTestNGAnnotatedMethodInterceptor<AfterSuiteExecutionInfo>
de.qytera.qtaf.core.guice.method_interceptor.QtafTestNGAfterSuiteInterceptor
- All Implemented Interfaces:
AbstractTestNGAnnotatedMethodInterceptor<AfterSuiteExecutionInfo>,org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class QtafTestNGAfterSuiteInterceptor
extends QtafTestNGAnnotatedMethodInterceptor<AfterSuiteExecutionInfo>
Method interceptor for methods that are annotated with the Step annotation.
-
Field Summary
Fields inherited from class de.qytera.qtaf.core.guice.method_interceptor.QtafTestNGAnnotatedMethodInterceptor
afterStepExecutionFailure, afterStepExecutionSuccess, beforeStepExecution -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildScenarioDescription(String featureName, String scenarioName) Build the description of the scenario for the log file.buildScenarioName(String featureName, String scenarioId) Build the name of the scenario for the log file.buildStepExecutionInfoEntity(org.aopalliance.intercept.MethodInvocation methodInvocation) Build an entity that contains information about the executed method.getAnnotation(org.aopalliance.intercept.MethodInvocation methodInvocation) Get the TestNG Annotation of the intercepted method.voidonInvoke(org.aopalliance.intercept.MethodInvocation methodInvocation) Code to execute just before method invocation.Methods inherited from class de.qytera.qtaf.core.guice.method_interceptor.QtafTestNGAnnotatedMethodInterceptor
invokeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.qytera.qtaf.core.guice.method_interceptor.AbstractTestNGAnnotatedMethodInterceptor
buildFeatureLogCollection, buildScenarioLogCollection, executeStepMethod, handleStepExecutionFailure, updateTestContextWithLogCollection
-
Constructor Details
-
QtafTestNGAfterSuiteInterceptor
public QtafTestNGAfterSuiteInterceptor()Creates a newQtafTestNGAfterSuiteInterceptor.
-
-
Method Details
-
onInvoke
public void onInvoke(org.aopalliance.intercept.MethodInvocation methodInvocation) Description copied from class:QtafTestNGAnnotatedMethodInterceptorCode to execute just before method invocation.- Specified by:
onInvokein classQtafTestNGAnnotatedMethodInterceptor<AfterSuiteExecutionInfo>- Parameters:
methodInvocation- the pending method invocation
-
getAnnotation
Description copied from interface:AbstractTestNGAnnotatedMethodInterceptorGet the TestNG Annotation of the intercepted method.- Parameters:
methodInvocation- The method that was intercepted- Returns:
- The TestNG annotation of the method
-
buildStepExecutionInfoEntity
public AfterSuiteExecutionInfo buildStepExecutionInfoEntity(org.aopalliance.intercept.MethodInvocation methodInvocation) Description copied from interface:AbstractTestNGAnnotatedMethodInterceptorBuild an entity that contains information about the executed method.- Parameters:
methodInvocation- The method that was intercepted- Returns:
- Step execution information entity
-
buildScenarioName
Description copied from interface:AbstractTestNGAnnotatedMethodInterceptorBuild the name of the scenario for the log file.- Parameters:
featureName- Name of the feature the scenario belongs toscenarioId- ID of the scenario- Returns:
- Name of the scenario
-
buildScenarioDescription
Description copied from interface:AbstractTestNGAnnotatedMethodInterceptorBuild the description of the scenario for the log file.- Parameters:
featureName- Name of the featurescenarioName- Name of the scenario- Returns:
- Description of the scenario
-