We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9e19ba + ce94de7 commit f318470Copy full SHA for f318470
1 file changed
features/environment.py
@@ -43,5 +43,9 @@ def before_feature(context, feature):
43
)
44
45
def after_feature(context, feature):
46
+ if context.failed is True:
47
+ context.browser.execute_script('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"failed", "reason": "At least 1 assertion failed"}}')
48
+ if context.failed is not True:
49
+ context.browser.execute_script('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"passed", "reason": "All assertions passed"}}')
50
context.browser.quit()
51
stop_local()
0 commit comments