From e00701a3d204f3c0120d1e6a6832054e84dc9577 Mon Sep 17 00:00:00 2001 From: NavaL Date: Wed, 6 Jan 2016 11:36:35 +0100 Subject: moving screenshots to a different folder -- to be saved as artifacts in snap --- service/test/functional/features/environment.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'service/test/functional') diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py index 53b13047..a41329dd 100644 --- a/service/test/functional/features/environment.py +++ b/service/test/functional/features/environment.py @@ -25,6 +25,7 @@ from selenium import webdriver from pixelated.resources.features_resource import FeaturesResource from steps.common import * +import os setup() @@ -62,8 +63,10 @@ def before_feature(context, feature): def after_step(context, step): if step.status == 'failed': id = str(uuid.uuid4()) + os.chdir("screenshots") context.browser.save_screenshot('failed ' + str(step.name) + '_' + id + ".png") save_source(context, 'failed ' + str(step.name) + '_' + id + ".html") + os.chdir("../") def after_feature(context, feature): -- cgit v1.2.3