LoggerDataCollector
public class LoggerDataCollector
| Constructor Summary | |
|---|---|
| void | Initializes logger. |
| Method Summary | |
|---|---|
| static array | Returns an array of event names this subscriber wants to listen to. |
| void | beforeSuite(SuiteEvent event) Listens to "suite.before" event. |
| void | afterSuite(SuiteEvent event) Listens to "suite.after" event. |
| void | afterFeature(FeatureEvent event) Listens to "feature.after" event. |
| void | afterScenario(ScenarioEvent event) Listens to "scenario.after" event. |
| void | afterOutlineExample(OutlineExampleEvent event) Listens to "outline.example.after" event. |
| void | Listens to "step.after" event. |
| float | Returns suite total execution time. |
| integer | Returns overall suites result. |
| integer | Returns overall features count. |
| array | Returns hash of features statuses count. |
| integer | Returns overall scenarios count. |
| array | Returns hash of scenarios statuses count. |
| integer | Returns overall steps count. |
| array | Returns hash of steps statuses count. |
| array | Returns hash of definition snippets for undefined steps. |
| array | Returns array of failed steps events. |
| array | Returns array of pending steps events; |
public void __construct()
Initializes logger.
public static array getSubscribedEvents()
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
* The method name to call (priority defaults to 0) * An array composed of the method name to call and the priority * An array of arrays composed of the method names to call and respective priorities, or 0 if unset
For instance:
* array('eventName' => 'methodName') * array('eventName' => array('methodName', $priority)) * array('eventName' => array(array('methodName1', $priority), array('methodName2'))
public void beforeSuite(SuiteEvent event)
Listens to "suite.before" event.
public void afterSuite(SuiteEvent event)
Listens to "suite.after" event.
public void afterFeature(FeatureEvent event)
Listens to "feature.after" event.
public void afterScenario(ScenarioEvent event)
Listens to "scenario.after" event.
public void afterOutlineExample(OutlineExampleEvent event)
Listens to "outline.example.after" event.
public void afterStep(StepEvent event)
Listens to "step.after" event.
public float getTotalTime()
Returns suite total execution time.
public integer getSuiteResult()
Returns overall suites result.
public integer getFeaturesCount()
Returns overall features count.
public array getFeaturesStatuses()
Returns hash of features statuses count.
public integer getScenariosCount()
Returns overall scenarios count.
public array getScenariosStatuses()
Returns hash of scenarios statuses count.
public integer getStepsCount()
Returns overall steps count.
public array getStepsStatuses()
Returns hash of steps statuses count.
public array getDefinitionsSnippets()
Returns hash of definition snippets for undefined steps.
public array getFailedStepsEvents()
Returns array of failed steps events.
public array getPendingStepsEvents()
Returns array of pending steps events;
Behat run logger.