RetryableCallHandler
class RetryableCallHandler implements CallHandler (View source)
Replaces RuntimeCallHandler with a retry feature All scenarios or features OPT-IN to retry behaviour with the @retry tag.
Note: most of this class is duplicated (sad face) due to final class
Traits
Helpers for working with steps
Constants
RETRY_TAG |
|
Properties
protected | int | $retrySeconds |
Methods
Get scenario from step in a feature node See https://github.com/Behat/Behat/issues/653
Retry until no exceptions are thrown, or until $timeout seconds are reached.
Check if a step has a given tag
Used as a custom error handler when step is running.
Details
protected ScenarioInterface
getStepScenario(FeatureNode $feature, NodeInterface $step)
Get scenario from step in a feature node See https://github.com/Behat/Behat/issues/653
protected mixed
retryThrowable(callable $callback, int $timeout = 3)
Retry until no exceptions are thrown, or until $timeout seconds are reached.
If timeout reached, re-throws the first exception.
protected bool
stepHasTag(StepScope $event, string $tag)
Check if a step has a given tag
__construct(int $errorReportingLevel = E_ALL, int $retrySeconds = 3)
Initializes executor.
supportsCall(Call $call)
{@inheritdoc}
handleCall(Call $call)
{@inheritdoc}
bool
handleError(int $level, string $message, string $file, int $line)
Used as a custom error handler when step is running.
protected bool
isCallRetryable(Call $call)
Determine if the call is retryable