public interface QAFTestStepListener extends QAFListener
step execution tracker
will be passed to each of
the listener method which will provide you all the information that you
required including step name, type, index, exception.
The very common example of this listener is command prompt reporting during
the step execution. Another useful use case is skip the test if step with
type "Given" is failed (PreCondition failed). In that case on failure you can
check if type is "Given" then set exceptions as SkipException
.
QAFTestStep
Modifier and Type | Method and Description |
---|---|
void |
afterExecute(StepExecutionTracker stepExecutionTracker) |
void |
beforExecute(StepExecutionTracker stepExecutionTracker)
This method will be called before execution of test step.
|
void |
onFailure(StepExecutionTracker stepExecutionTracker)
This method will called when ever step failed.
|
void onFailure(StepExecutionTracker stepExecutionTracker)
stepExecutionTracker
- QAFTestStep
void beforExecute(StepExecutionTracker stepExecutionTracker)
stepExecutionTracker
- void afterExecute(StepExecutionTracker stepExecutionTracker)
Copyright © 2000 Infostretch Corp.