JsonMappingException: Could not read test result file allure-results
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- python
- 領域
- testing-qa
研究方向
首先,使用 allure generate --single-file allure-results --clean 命令重現此故障,並檢查報告中指出的 allure-results/03142bda-850b-4896-a93b-ca53751bdbc9-result.json 檔案。追蹤過大的 steps 參數值是如何處理的,並在此結果檔案不再導致產生失敗且報告已填入內容時,視為報告完成。
由索引模型根據 Issue 內容生成。
描述
Describe the Bug
Getting a JsonMappingException using Allure single file generation when the parameter value exceeds the maximum allowed. The report is generated, but empty.
I'm running on GitLab CI/CD.
Steps to Reproduce
- Try to get json file with params value more than maximum allowed (20000000)
- open cmd
- run
allure generate --single-file allure-results --clean
Expected Behaviour
The report is generated without errors.
Screenshots or Additional Context
Could not read test result file allure-results/03142bda-850b-4896-a93b-ca53751bdbc9-result.json
com.fasterxml.jackson.databind.JsonMappingException: String value length (20054016) exceeds the maximum allowed (20000000, from StreamReadConstraints.getMaxStringLength()) (through reference chain: io.qameta.allure.model.TestResult["steps"]->java.util.ArrayList[7]->io.qameta.allure.model.StepResult["parameters"]->java.util.ArrayList[3]->io.qameta.allure.model.Parameter["value"])
What Language are you using?
Python
What Framework/Allure Integration you are using?
Allure Pytest-BDD
What version of Allure Integration you are using?
2.13.5
What version of Allure Report you are using?
2.34
Code of Conduct
I agree to follow this project's Code of Conduct
- 主要語言
- Python
- 星號
- 820
- 分支
- 263
- 平均合併
- 1 小時 1 分鐘
- 30 天內合併 PR
- 2
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
allure-framework/allure-python 的其他 Issue
-
[allure-behave] Steps from tag-excluded scenarios bleed into the next matching scenario's result when hide_excluded=true可能已有人在做 @liuyaohui666 於 75 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 84/100
-
theme:pytest
難度 3/5 1-2 天 新手友好度 64/100
allure-framework/allure-python#929 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 30/100
allure-framework/allure-python#930 · 3 則留言 ·
-
Added Categories未關閉
難度 3/5 1-2 天 新手友好度 55/100
-
Phantom <lambda> teardown entries with unknown status when using pytest 9.1+可能已有人在做 @Mohanad49 於 80 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 58/100
allure-framework/allure-python#918 · 2 個 reaction ·
查看 allure-framework/allure-python 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
area:docs documentation effort:M ready-for-agent
難度 2/5 1-3 小時 新手友好度 76/100
mczielinski/ob-analytics#423 ·
維護者通常 1 天內回覆
-
infra
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 3 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 68/100
vllm-project/vllm-ascend#21033 ·
維護者通常 1 天內回覆