Skip to content

JsonMappingException when doing allure:report with big data #2671

Discussion options

You must be logged in to vote

The issue is about having a large (20046850 characters) step parameter value. Step parameters are usually added from method arguments when using @Step annotation. Allure uses the toString method to create a parameter from the method argument.

To deal with the error, the rule of tump is always to consider the possible method arguments when putting the @Step annotation.

However, since it's not that convenient, there is a way to do it automatically by using Allure LifecycleListener API:

import io.qameta.allure.listener.StepLifecycleListener;
import io.qameta.allure.model.Parameter;
import io.qameta.allure.model.StepResult;

import java.util.Objects;

public class StepParameterShortenerListener 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by baev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants