← Back to team overview

ubuntu-phone team mailing list archive

Taking screenshots in Autopilot

 

Hi all,

I wanted to take a moment to highlight a feature in Autopilot that
we've recently released: taking screenshots!

When a test fails AP will now take a screenshot of what is on screen
and store it to the subunit stream.
You can also take a screenshot from within your testcase, details
here[0]

To receive these screenshots you only need to do one thing, ensure you
are storing the output results to a subunit file.
(The automated jenkins jobs are currently doing this already).

To view the results stored in your subunit file there are a couple of
options:
  - Thomi has a GUI tool that he's been working on[1], he will be
    posting further details on this soon.

  - Corey has a CLI tool that will extract all files (logs, images
    etc.) from a subunit stream file. It can be found here[2]


As always, if you have any feature requests or questions about
Autopilot please let us know. We hang out in #ubuntu-autopilot on
Freenode.

[0]
http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/api/autopilot.testcase.html?highlight=screenshot#autopilot.testcase.AutopilotTestCase.take_screenshot
[1] lp:trv
[2] https://pypi.python.org/pypi/subunitdetails