{"action":"created","issue":{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2523","labels_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2523/labels{/name}","comments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2523/comments","events_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2523/events","html_url":"https://github.com/RedHatQE/cfme_tests/pull/2523","id":120970491,"number":2523,"title":"Introduce multi screenshot support and deobscurize errors hidden by appliance CM","user":{"login":"mfalesni","id":2163040,"avatar_url":"https://avatars.githubusercontent.com/u/2163040?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalesni","html_url":"https://github.com/mfalesni","followers_url":"https://api.github.com/users/mfalesni/followers","following_url":"https://api.github.com/users/mfalesni/following{/other_user}","gists_url":"https://api.github.com/users/mfalesni/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalesni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalesni/subscriptions","organizations_url":"https://api.github.com/users/mfalesni/orgs","repos_url":"https://api.github.com/users/mfalesni/repos","events_url":"https://api.github.com/users/mfalesni/events{/privacy}","received_events_url":"https://api.github.com/users/mfalesni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/labels/lint-ok","name":"lint-ok","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-08T09:42:17Z","updated_at":"2015-12-09T12:46:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2523","html_url":"https://github.com/RedHatQE/cfme_tests/pull/2523","diff_url":"https://github.com/RedHatQE/cfme_tests/pull/2523.diff","patch_url":"https://github.com/RedHatQE/cfme_tests/pull/2523.patch"},"body":"* Introduce functionality for taking multiple screenshots (and tracebacks) for the report.\r\n* Teach appliance class to use this functionality when leaving the CM inside of the test run.\r\n\r\n{{pytest: cfme/tests/distributed/test_appliance_replication.py -v --long-running}}"},"comment":{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/comments/163217006","html_url":"https://github.com/RedHatQE/cfme_tests/pull/2523#issuecomment-163217006","issue_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2523","id":163217006,"user":{"login":"mfalesni","id":2163040,"avatar_url":"https://avatars.githubusercontent.com/u/2163040?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalesni","html_url":"https://github.com/mfalesni","followers_url":"https://api.github.com/users/mfalesni/followers","following_url":"https://api.github.com/users/mfalesni/following{/other_user}","gists_url":"https://api.github.com/users/mfalesni/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalesni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalesni/subscriptions","organizations_url":"https://api.github.com/users/mfalesni/orgs","repos_url":"https://api.github.com/users/mfalesni/repos","events_url":"https://api.github.com/users/mfalesni/events{/privacy}","received_events_url":"https://api.github.com/users/mfalesni/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T12:46:42Z","updated_at":"2015-12-09T12:46:42Z","body":"To verify, you can create something like this:\r\n\r\n```python\r\n# ./test_experiment.py\r\nimport pytest\r\nfrom fixtures.pytest_store import store\r\n\r\ndef test_screenshots(take_screenshot):\r\n    pytest.sel.force_navigate(\"dashboard\")\r\n    take_screenshot(\"hehe\")\r\n    pytest.sel.force_navigate(\"control_explorer\")\r\n    take_screenshot(\"haha\")\r\n    \r\n    with store.current_appliance:\r\n        pytest.fail(\"ho hoo\")\r\n```\r\n\r\n`take_screenshot` is not required obviously in order to make teh appliance cm logging work."}}