Skip to content

Instantly share code, notes, and snippets.

@rot26
Created May 29, 2020 21:58
Show Gist options
  • Save rot26/b75537eeb7448cfbab4b1a4cc9a38275 to your computer and use it in GitHub Desktop.
Save rot26/b75537eeb7448cfbab4b1a4cc9a38275 to your computer and use it in GitHub Desktop.
[Behave Hooks ] #gherkin #behave #bdd #template #python
def before_all(context):
print('before_all activated')
def after_all(context):
print('after_all activated')
def before_feature(context, feature):
print('before_feature activated')
def after_feature(context, feature):
print('after_feature activated')
def before_tag(context, tag):
print('before_tag activated')
def after_tag(context, tag):
print('after_tag activated')
def before_step(context, step):
print('before_step activated')
def after_step(context, step):
print('after_step activated')
def before_scenario(context, step):
print('before_scenario activated')
def after_scenario(context, step):
print('after_scenario activated')
@rot26
Copy link
Author

rot26 commented May 29, 2020

Thanks @1digicoder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment