Class QtafTestNGAfterTestInterceptor

java.lang.Object
de.qytera.qtaf.core.guice.method_interceptor.QtafTestNGAnnotatedMethodInterceptor<AfterTestExecutionInfo>
de.qytera.qtaf.core.guice.method_interceptor.QtafTestNGAfterTestInterceptor
All Implemented Interfaces:
AbstractTestNGAnnotatedMethodInterceptor<AfterTestExecutionInfo>, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class QtafTestNGAfterTestInterceptor extends QtafTestNGAnnotatedMethodInterceptor<AfterTestExecutionInfo>
Method interceptor for methods that are annotated with the Step annotation.
  • Constructor Details

  • Method Details

    • onInvoke

      public void onInvoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
      Description copied from class: QtafTestNGAnnotatedMethodInterceptor
      Code to execute just before method invocation.
      Specified by:
      onInvoke in class QtafTestNGAnnotatedMethodInterceptor<AfterTestExecutionInfo>
      Parameters:
      methodInvocation - the pending method invocation
    • getAnnotation

      public Annotation getAnnotation(org.aopalliance.intercept.MethodInvocation methodInvocation)
      Description copied from interface: AbstractTestNGAnnotatedMethodInterceptor
      Get the TestNG Annotation of the intercepted method.
      Parameters:
      methodInvocation - The method that was intercepted
      Returns:
      The TestNG annotation of the method
    • buildStepExecutionInfoEntity

      public AfterTestExecutionInfo buildStepExecutionInfoEntity(org.aopalliance.intercept.MethodInvocation methodInvocation)
      Description copied from interface: AbstractTestNGAnnotatedMethodInterceptor
      Build an entity that contains information about the executed method.
      Parameters:
      methodInvocation - The method that was intercepted
      Returns:
      Step execution information entity
    • buildScenarioName

      public String buildScenarioName(String featureName, String scenarioId)
      Description copied from interface: AbstractTestNGAnnotatedMethodInterceptor
      Build the name of the scenario for the log file.
      Parameters:
      featureName - Name of the feature the scenario belongs to
      scenarioId - ID of the scenario
      Returns:
      Name of the scenario
    • buildScenarioDescription

      public String buildScenarioDescription(String featureName, String scenarioName)
      Description copied from interface: AbstractTestNGAnnotatedMethodInterceptor
      Build the description of the scenario for the log file.
      Parameters:
      featureName - Name of the feature
      scenarioName - Name of the scenario
      Returns:
      Description of the scenario