xcresult_get_screenshot
Extract a screenshot from a failed Xcode test at a specific timestamp using the .xcresult file. Input the file path, test ID, and timestamp to retrieve the frame before the failure occurs.
Instructions
Get screenshot from a failed test at specific timestamp - extracts frame from video attachment using ffmpeg
Input Schema
Name | Required | Description | Default |
---|---|---|---|
test_id | Yes | Test ID or index number to get screenshot for | |
timestamp | Yes | Timestamp in seconds when to extract the screenshot. WARNING: Use a timestamp BEFORE the failure (e.g., if failure is at 30.71s, use 30.69s) as failure timestamps often show the home screen after the app has crashed or reset. | |
xcresult_path | Yes | Absolute path to the .xcresult file |
Input Schema (JSON Schema)
{
"properties": {
"test_id": {
"description": "Test ID or index number to get screenshot for",
"type": "string"
},
"timestamp": {
"description": "Timestamp in seconds when to extract the screenshot. WARNING: Use a timestamp BEFORE the failure (e.g., if failure is at 30.71s, use 30.69s) as failure timestamps often show the home screen after the app has crashed or reset.",
"type": "number"
},
"xcresult_path": {
"description": "Absolute path to the .xcresult file",
"type": "string"
}
},
"required": [
"xcresult_path",
"test_id",
"timestamp"
],
"type": "object"
}