2022-03-29 08:30:38 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2022-08-19 15:23:09 +00:00
|
|
|
# This file contains hook functions to run as the .feature file is executed
|
2022-03-29 08:30:38 +00:00
|
|
|
|
2022-08-19 15:23:09 +00:00
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../testSuites/global_shared/"))
|
2022-07-13 13:14:52 +00:00
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../src/"))
|
2022-05-26 00:28:49 +00:00
|
|
|
|
2022-11-21 12:56:06 +00:00
|
|
|
from steps.commonInitSteps import context_init
|
2022-03-29 08:30:38 +00:00
|
|
|
|
|
|
|
@OnScenarioStart
|
|
|
|
def hook(context):
|
2022-11-21 13:41:34 +00:00
|
|
|
context_init(context, testSettings)
|
2022-08-19 14:57:09 +00:00
|
|
|
|
2022-03-29 08:30:38 +00:00
|
|
|
@OnScenarioEnd
|
|
|
|
def hook(context):
|
|
|
|
currentApplicationContext().detach()
|
2022-07-20 12:14:50 +00:00
|
|
|
snooze(_app_closure_timeout)
|
2022-03-29 08:30:38 +00:00
|
|
|
|
2022-08-31 10:55:42 +00:00
|
|
|
@OnStepEnd
|
|
|
|
def hook(context):
|
|
|
|
context.userData["step_name"] = context._data["text"]
|