[Freeipa-devel] [PATCH] 589-590 webui-ci: save screenshot on test failure

Petr Vobornik pvoborni at redhat.com
Wed Apr 30 08:40:43 UTC 2014


Very handy for debugging failures...

New decorator: ui_driver.screenshot created. It should be applied on 
test methods.

Screenshot is saved on each exception except SkipTest.

Configuration:
- add: `save_screenshots: True` to ~/.ipa/ui_test.conf to enable saving 
screenshots
- optionally add `screenshot_dir: /path/to/dir` to specify target directory
   otherwise screenshots are saved to current directory
-- 
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0590-webui-ci-decorate-all-webui-tests-with-screenshot-de.patch
Type: text/x-patch
Size: 25212 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140430/00ab7ef1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0589-webui-ci-save-screenshot-on-test-failure.patch
Type: text/x-patch
Size: 2572 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140430/00ab7ef1/attachment-0001.bin>


More information about the Freeipa-devel mailing list