DannyDainton / newman-reporter-htmlextra

A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better custom templates.
Apache License 2.0
356 stars 137 forks source link

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

Open apisit110 opened 2 months ago

apisit110 commented 2 months ago

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

github-actions[bot] commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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