Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deserialization issue when parameter value is array #638

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

strufkin
Copy link

@strufkin strufkin commented Dec 1, 2021

Context

If you have custom converter which makes an array from parameter string from feature file, allure will throw below exception upon report generation, hence we have to make this to be string back:

Could not read test result file allure\e3769575-aa8f-404e-9068-732f53e6db7c-result.json
com.fasterxml.jackson.databind.exc.MismatchedInputException: 
Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: (sun.nio.ch.ChannelInputStream); line: 1, column: 15070] 
 (through reference chain: io.qameta.allure.model.TestResult["parameters"]->java.util.ArrayList[2]->io.qameta.allure.model.Parameter["value"])
        at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)

Checklist

@CLAassistant
Copy link

CLAassistant commented Dec 1, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants