JsonMappingException: Could not read test result file allure-results

未關閉
#863 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

allure-framework/allure-python 的其他 Issue

查看 allure-framework/allure-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。