public class QAFListenerAdapter extends QAFWebDriverCommandAdapter implements QAFWebElementCommandListener, QAFWebDriverCommandListener, QAFTestStepListener, QAFDataProviderIntercepter
ApplicationProperties.QAF_LISTENERS
Constructor and Description |
---|
QAFListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterCommand(QAFExtendedWebElement element,
CommandTracker commandTracker) |
void |
afterExecute(StepExecutionTracker stepExecutionTracker) |
void |
beforeCommand(QAFExtendedWebElement element,
CommandTracker commandTracker)
This can be used as intercepter.
|
void |
beforeFech(TestNGScenario scenario,
org.testng.ITestContext context)
This method will be called before fetching the data from data-provider.
|
void |
beforExecute(StepExecutionTracker stepExecutionTracker)
This method will be called before execution of test step.
|
java.util.List<java.lang.Object[]> |
intercept(TestNGScenario scenario,
org.testng.ITestContext context,
java.util.List<java.lang.Object[]> testdata)
This method will called after test data fetched from the data-provider
after applied filter and data-conversion if any.
|
void |
onFailure(QAFExtendedWebElement element,
CommandTracker commandTracker)
This can be used to propagate exception.
|
void |
onFailure(StepExecutionTracker stepExecutionTracker)
This method will called when ever step failed.
|
afterCommand, beforeCommand, beforeInitialize, execute, onFailure, onInitializationFailure, onInitialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterCommand, beforeCommand, beforeInitialize, onFailure, onInitializationFailure, onInitialize
public void onFailure(StepExecutionTracker stepExecutionTracker)
QAFTestStepListener
onFailure
in interface QAFTestStepListener
QAFTestStep
public void beforExecute(StepExecutionTracker stepExecutionTracker)
QAFTestStepListener
beforExecute
in interface QAFTestStepListener
public void afterExecute(StepExecutionTracker stepExecutionTracker)
afterExecute
in interface QAFTestStepListener
public void beforeCommand(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListener
CommandTracker.setResponce(Response)
beforeCommand
in interface QAFWebElementCommandListener
public void afterCommand(QAFExtendedWebElement element, CommandTracker commandTracker)
afterCommand
in interface QAFWebElementCommandListener
public void onFailure(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListener
CommandTracker.getStage()
onFailure
in interface QAFWebElementCommandListener
public java.util.List<java.lang.Object[]> intercept(TestNGScenario scenario, org.testng.ITestContext context, java.util.List<java.lang.Object[]> testdata)
QAFDataProviderIntercepter
intercept
in interface QAFDataProviderIntercepter
public void beforeFech(TestNGScenario scenario, org.testng.ITestContext context)
QAFDataProviderIntercepter
beforeFech
in interface QAFDataProviderIntercepter
Copyright © 2000 Infostretch Corp.