Interface: Test
June 6, 2026 ยท View on GitHub
CTRF / Test
Interface: Test
Defined in: types.ts:105
Individual test result
Properties
id?
optionalid?:string
Defined in: types.ts:107
Unique test identifier (UUID)
name
name:
string
Defined in: types.ts:109
Test name
status
status:
TestStatus
Defined in: types.ts:111
Test execution status
duration
duration:
number
Defined in: types.ts:113
Test duration in milliseconds
start?
optionalstart?:number
Defined in: types.ts:115
Start timestamp (Unix epoch milliseconds)
stop?
optionalstop?:number
Defined in: types.ts:117
Stop timestamp (Unix epoch milliseconds)
suite?
optionalsuite?:string[]
Defined in: types.ts:119
Test suite hierarchy
message?
optionalmessage?:string
Defined in: types.ts:121
Error message (for failed tests)
trace?
optionaltrace?:string
Defined in: types.ts:123
Stack trace (for failed tests)
snippet?
optionalsnippet?:string
Defined in: types.ts:125
Code snippet where failure occurred
ai?
optionalai?:string
Defined in: types.ts:127
AI-generated analysis or suggestion
line?
optionalline?:number
Defined in: types.ts:129
Line number where test is defined or failed
rawStatus?
optionalrawStatus?:string
Defined in: types.ts:131
Original status from the test framework
tags?
optionaltags?:string[]
Defined in: types.ts:133
Tags for categorization
type?
optionaltype?:string
Defined in: types.ts:135
Test type (e.g., 'unit', 'integration', 'e2e')
filePath?
optionalfilePath?:string
Defined in: types.ts:137
Path to the test file
retries?
optionalretries?:number
Defined in: types.ts:139
Number of retry attempts
retryAttempts?
optionalretryAttempts?:RetryAttempt[]
Defined in: types.ts:141
Details of each retry attempt
flaky?
optionalflaky?:boolean
Defined in: types.ts:143
Whether the test is flaky
stdout?
optionalstdout?:string[]
Defined in: types.ts:145
Standard output captured during test
stderr?
optionalstderr?:string[]
Defined in: types.ts:147
Standard error captured during test
threadId?
optionalthreadId?:string
Defined in: types.ts:149
Thread/worker ID that ran this test
browser?
optionalbrowser?:string
Defined in: types.ts:151
Browser name (for browser tests)
device?
optionaldevice?:string
Defined in: types.ts:153
Device name (for device tests)
screenshot?
optionalscreenshot?:string
Defined in: types.ts:155
Base64 encoded screenshot
attachments?
optionalattachments?:Attachment[]
Defined in: types.ts:157
File attachments
parameters?
optionalparameters?:Record<string,unknown>
Defined in: types.ts:159
Test parameters (for parameterized tests)
steps?
optionalsteps?:Step[]
Defined in: types.ts:161
Test steps
insights?
optionalinsights?:TestInsights
Defined in: types.ts:163
Test-level insights
extra?
optionalextra?:Record<string,unknown>
Defined in: types.ts:165
Custom metadata