Allow triggering of a screenshot in UI Tests for debugging purpose

Number:rdar://23062925 Date Originated:
Status:Closed as duplicate Resolved:
Product:Xcode 7 UI Tests Product Version:
Classification:Feature Reproducible:
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:

Xcode 7

This would be very useful for the project, to enable developers to automate the generation of screenshots

Xcode 7



Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!