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

[Bug] Request body type file is showing the latest item of the array #438

Open
1 task done
apisit110 opened this issue Jul 8, 2024 · 3 comments
Open
1 task done
Labels
state: triaged This issue has been triaged type: bug Something isn't working

Comments

@apisit110
Copy link

apisit110 commented Jul 8, 2024

Is There An Existing Issue

What Are You Seeing

make a request and declare form-data with key type = File and add file to the input more then 1 file
when run command like newman run my-collection.json -r htmlextra
the request body section value of this key will show latest item of array

Steps To Reproduce The Issue

1.run command like newman run my-collection.json -r htmlextra
2.got the file report, open up
3.see the Total Requests section, REQUEST BODY must show array that contain path of file

Screenshot 2567-07-08 at 16 34 07

Screenshot 2567-07-08 at 16 33 47

Screenshot 2567-07-08 at 16 35 57

Full Newman Command Or Node Script

newman run my-collection.json -r htmlextra

HTMLEXTRA Version

1.23.1

Newman Version

^6.1.2

Additional Context

No response

@apisit110 apisit110 added state: needs-triage This issue needs to be triaged type: bug Something isn't working labels Jul 8, 2024
Copy link

github-actions bot commented Jul 8, 2024

Hey @apisit110: 👋 - Thanks for helping to make the reporter better by raising this ticket. I will take a look as soon as I can and get back to you. Cheers, Danny.

@DannyDainton DannyDainton changed the title [Bugfix] request body type file is show latest item of array [Bug] Request body type file is showing the latest item of the array Jul 8, 2024
@DannyDainton DannyDainton added state: triaged This issue has been triaged and removed state: needs-triage This issue needs to be triaged labels Jul 8, 2024
@DannyDainton
Copy link
Owner

Hey @apisit110

Could you provide a sample Collection to demo the behaviour please - You can use a dummy API like https://httpbin.org/anything or https://postman-echo.com/post.

What do you see in the terminal if you attaching the CLI reporter and the verbose flag? Does that return the expected body?

newman run my-collection.json -r htmlextra,cli --verbose

@apisit110
Copy link
Author

i try pass options --verbose
can't see the request params detail!

Screenshot 2567-07-08 at 17 58 07
Screenshot 2567-07-08 at 17 58 22
Screenshot 2567-07-08 at 17 58 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: triaged This issue has been triaged type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants