allure-framework / allure-framework/allure-csharp

JsonMappingException: Could not read test result file allure-results

Open
#482 11 comments 0 reactions 0 assignees View on GitHub
theme:core
Dominant language
C#
Stars
125
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
18

Description

### Describe the Bug

Getting JsonMappingException using allure serve when parameters value is more than maximum allowed. But report is generated

### Steps to Reproduce

1. Try to get json file with params value more than maximum allowed(20000000)
2. open cmd
3. run allure serve

### Expected Behaviour

There is no error

### Screenshots or Additional Context

```
Could not read test result file allure-results\065735e26ab94a27b7912691bf93fc82-result.json
com.fasterxml.jackson.databind.JsonMappingException: String value length (20051112) exceeds the maximum allowed (20000000, from `StreamReadConstraints.getMaxStringLength()`) (through reference chain: io.qameta.allure.model.TestResult["parameters"]->java.util.ArrayList[0]->io.qameta.allure.model.Parameter["value"])
```

### What Language are you using?

C#

### What Framework/Allure Integration you are using?

nunit 4

### What version of Allure Integration you are using?

2.12

### What version of Allure Report you are using?

2.27

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with the oversized parameter described in the issue, then run `allure serve` against the generated `allure-results/065735e26ab94a27b7912691bf93fc82-result.json`. Compare the observed JsonMappingException with the expected behavior of reading the result without an error, using the reported Allure C# integration 2.12 and Allure Report 2.27 versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.