XCTAttachment
Data from a test method’s execution, such as a file, image, screenshot, data blob, or ZIP file.
Declaration
class XCTAttachmentMentioned in
Topics
Creating Attachments from Data
Creating Attachments from Files and Folders
init(contentsOfFileAtURL:)init(contentsOfFileAtURL:uniformTypeIdentifier:)init(compressedContentsOfDirectoryAtURL:)
Creating Attachments from Images and Screenshots
init(image:)init(image:quality:)init(screenshot:)init(screenshot:quality:)XCUIScreenshotXCTAttachment.ImageQuality
Creating Attachments from Objects
Creating Attachments from Strings
Setting an Attachment’s Lifetime
Attachment Metadata
Initializers
init(compressedContentsOfDirectory:)init(contentsOfFile:)init(contentsOfFile:uniformTypeIdentifier:)