Allow triggering of a screenshot in UI Tests for debugging purpose

Originator:KrauseFx
Number:rdar://23062925 Date Originated:
Status:Closed as duplicate Resolved:
Product:Xcode 7 UI Tests Product Version:
Classification:Feature Reproducible:
 
Summary:
It would help developers *a lot* if there was a way to trigger a snapshot (screenshot) in the UI Tests. 

Why is it useful
- Allows us to generate screenshots when we need them
- Allows us to debug issues if we're unsure what's happening on the screen (e.g. on a build server)

Alternatively it would be good if there was a `xcrun simctl screenshot` command to take a screenshot of the currently running simulator.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Xcode 7

Notes:
This would be very useful for the https://github.com/KrauseFx/snapshot project, to enable developers to automate the generation of screenshots

Configuration:
Xcode 7

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!