Where is the screenshot file from Xcode UI Test?

后端 未结 3 1552
遇见更好的自我
遇见更好的自我 2021-01-01 13:02

I\'m interested how to find the location of a screenshot which is created during UI Tests of my app. I would like to understand how Fastlane Snapshot grabs this screenshot.

3条回答
  •  猫巷女王i
    2021-01-01 13:27

    In Xcode 11, the contents of an .xcresults file changed to no longer include an Attachments folder that's browsable in Finder. You can still download individual attachments from the Test Report as shown in yoAlex5's answer, but to get the attachments without using the Xcode GUI, you have to use Apple's xcresulttool or a third party tool that leverages xcresulttool like xcparse. See this blog post for more information: https://www.chargepoint.com/engineering/xcparse/

提交回复
热议问题