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: Convert response entries to JSON in junit reporter #3184

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

p21nc3
Copy link

@p21nc3 p21nc3 commented Dec 14, 2023

Fix #3182

Description:

This PR addresses an issue where the response entries in the junit reporter were being stored as binary data arrays, causing problems when the data was exported as JSON or XML.

Changes:

  • Modified the errors object in the junit reporter to store the response entries as JSON instead of binary data arrays.
  • Used the JSON.stringify() method to convert the response entries to JSON format.

Issue:

The issue was that the response entries were being stored as binary data arrays in the junit reporter. This caused problems when the data was exported as JSON or XML, as these formats could not correctly represent the binary data.

This fix ensures that the response entries are correctly converted to JSON format before they are exported, preventing any issues with the exported data format.

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

Successfully merging this pull request may close these issues.

JSON export file contains response entries as binary data array, even though it is meant to be JSON or XML
1 participant