diff --git a/report/schemas/result.yaml b/report/schemas/result.yaml index b7b9f10..a31d22f 100644 --- a/report/schemas/result.yaml +++ b/report/schemas/result.yaml @@ -21,6 +21,13 @@ properties: stacktrace: type: string nullable: true + error_context: + type: string + nullable: true + description: >- + Free-form failure context captured by the reporter. For Playwright this is the content + of error-context.md, which may include rendered page content. Reporters may truncate + long values; Qase truncates at 262144 characters on upload. thread: type: string nullable: true diff --git a/testops-api/v2/paths/results_bulk.yaml b/testops-api/v2/paths/results_bulk.yaml index 5d78a16..e8308a5 100644 --- a/testops-api/v2/paths/results_bulk.yaml +++ b/testops-api/v2/paths/results_bulk.yaml @@ -45,5 +45,10 @@ post: description: Forbidden "404": description: Not Found + "413": + description: | + Payload Too Large. Returned when the request contains more than 2000 results, or when the + combined length of `execution.error_context` across the batch exceeds 4194304 characters. + In both cases the whole batch is rejected — no results are created. "422": description: Unprocessable Entity diff --git a/testops-api/v2/schemas/ResultExecution.yaml b/testops-api/v2/schemas/ResultExecution.yaml index ffe7224..dd23e8e 100644 --- a/testops-api/v2/schemas/ResultExecution.yaml +++ b/testops-api/v2/schemas/ResultExecution.yaml @@ -21,6 +21,15 @@ properties: stacktrace: type: string nullable: true + error_context: + type: string + nullable: true + description: >- + Free-form failure context captured by the reporter. For Playwright this is the content of + error-context.md (test info, error details, page snapshot), so it may include rendered page + content. Stored verbatim so it can be copied as raw text. Values longer than 262144 + characters are silently truncated by Qase and the request still succeeds. Write-only — not + returned by the result read endpoints. thread: type: string nullable: true