allure-framework / allure-framework/allure-python

JsonMappingException: Could not read test result file allure-results

オープン
#863 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
814
フォーク
260
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、`allure generate --single-file allure-results --clean` コマンドで失敗を再現し、報告された `allure-results/03142bda-850b-4896-a93b-ca53751bdbc9-result.json` ファイルを調査します。`steps` パラメーターのサイズ超過した値がどのように処理されるかを追跡し、この結果ファイルが原因で生成に失敗しなくなり、レポートが作成されれば、レポートは完成したものとみなします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。