{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TestPilot JSON Report",
"type": "object",
"properties": {
"id": { "type": "string" },
"startTime": { "type": "string", "format": "date-time" },
"duration": { "type": "string" },
"platforms": { "type": "array", "items": { "type": "string" } },
"statusSummary": {
"type": "array",
"items": {
"type": "object",
"properties": {
"count": { "type": "integer" },
"status": { "type": "integer", "enum": [0, 1, 2, 3, 4] }
},
"required": ["count", "status"]
}
},
"tests": { "type": "array", "items": { "$ref": "#/$defs/Test" } },
"title": { "type": "string" },
"orgId": { "type": "string" },
"token": { "type": "string" },
"ownerName": { "type": "string" },
"isArchived": { "type": "boolean" }
},
"required": ["id", "startTime", "duration", "tests"],
"$defs": {
"Test": {
"type": "object",
"properties": {
"id": { "type": "string" },
"title": { "type": "string" },
"status": { "type": "integer", "enum": [0, 1, 2, 3, 4] },
"explanation": { "type": "string" },
"videoUrl": { "type": "string" },
"platform": { "type": "string" },
"steps": { "type": "array", "items": { "$ref": "#/$defs/Step" } },
"startTime": { "type": "string", "format": "date-time" },
"duration": { "type": "string" },
"llmMetrics": { "$ref": "#/$defs/LLMMetrics" },
"profilingMetrics": { "$ref": "#/$defs/ProfilingMetrics" },
"platformConfig": { "$ref": "#/$defs/PlatformConfig" },
"logUrl": { "type": "string" },
"testCaseId": { "type": "string" },
"context": { "type": "string" },
"cacheSourceId": { "type": "string" },
"viewport": { "$ref": "#/$defs/Viewport" }
},
"required": ["id", "status", "steps"]
},
"Step": {
"type": "object",
"properties": {
"title": { "type": "string" },
"status": { "type": "integer", "enum": [0, 1, 2, 3, 4] },
"explanation": { "type": "string" },
"actions": { "type": "array", "items": { "$ref": "#/$defs/Action" } },
"startTime": { "type": "string", "format": "date-time" },
"duration": { "type": "string" },
"failureReasonCategory": { "type": "string" },
"profilingMetrics": { "$ref": "#/$defs/ProfilingMetrics" },
"executionMode": { "type": "integer", "enum": [0, 1, 2, 3, 4, 5, 6, 7] },
"cacheStatus": { "type": "integer", "enum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] },
"stepType": { "type": "integer", "enum": [0, 1, 2, 3] }
}
},
"Action": {
"type": "object",
"properties": {
"name": { "type": "string" },
"xCoordinate": { "type": "integer" },
"yCoordinate": { "type": "integer" },
"text": { "type": "string" },
"screenshotUrl": { "type": "string" },
"llmMessage": { "type": "string" },
"startTime": { "type": "string", "format": "date-time" },
"duration": { "type": "string" },
"element": { "$ref": "#/$defs/HTMLElement" },
"toolCallId": { "type": "string" },
"responseId": { "type": "string" },
"keys": { "type": "array", "items": { "type": "string" } },
"beforeUrl": { "type": "string" },
"afterUrl": { "type": "string" },
"button": { "type": "string" },
"type": { "type": "string" },
"path": {
"type": "array",
"items": {
"type": "object",
"properties": {
"x": { "type": "integer" },
"y": { "type": "integer" }
}
}
},
"scrollX": { "type": "integer" },
"scrollY": { "type": "integer" },
"toolCalls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"input": { "type": "string" },
"output": { "type": "string" }
}
}
},
"swipeParams": { "$ref": "#/$defs/SwipeParams" }
}
},
"HTMLElement": {
"type": "object",
"properties": {
"alt": { "type": "string" },
"ariaLabel": { "type": "string" },
"checked": { "type": "boolean" },
"className": { "type": "string" },
"disabled": { "type": "boolean" },
"href": { "type": "string" },
"id": { "type": "string" },
"options": { "type": "array", "items": { "type": "string" } },
"placeholder": { "type": "string" },
"readonly": { "type": "boolean" },
"required": { "type": "boolean" },
"selected": { "type": "boolean" },
"src": { "type": "string" },
"tagName": { "type": "string" },
"testpilotId": { "type": "string" },
"textContent": { "type": "string" },
"title": { "type": "string" },
"value": { "type": "string" },
"name": { "type": "string" },
"dataTestid": { "type": "string" },
"target": { "type": "string" },
"type": { "type": "string" },
"selectedValue": { "type": "string" },
"width": { "type": "integer" },
"height": { "type": "integer" }
}
},
"LLMMetrics": {
"type": "object",
"properties": {
"promptTokens": { "type": "integer" },
"completionTokens": { "type": "integer" },
"anthropicCachedInputTokens": { "type": "integer" },
"maxScreenshots": { "type": "integer" }
}
},
"ProfilingMetrics": {
"type": "object",
"properties": {
"totalDuration": { "type": "string" },
"llmDuration": { "type": "string" },
"toolDuration": { "type": "string" },
"attempts": { "type": "integer" }
}
},
"PlatformConfig": {
"type": "object",
"properties": {
"url": { "type": "string" },
"androidPkg": { "type": "string" }
}
},
"Viewport": {
"type": "object",
"properties": {
"width": { "type": "integer" },
"height": { "type": "integer" }
}
},
"SwipeParams": {
"type": "object",
"properties": {
"repetitions": { "type": "integer" },
"startX": { "type": "integer" },
"startY": { "type": "integer" },
"endX": { "type": "integer" },
"endY": { "type": "integer" }
}
}
}
}