Extend step definition to support `on_success` and `on_failure`.
Extend step definition to support
on_successandon_failure.