Search code examples
postmannewman

How to append Newman htmlextra results to existing htmlextra report file


I have two Newman commands

  1. newman run collection.json -e env.json --folder create_clients -d clients.csv -r htmlextra --htmlreporter-export reporter.html

  2. newman run collection.json -e env.json --folder create_orders -d orders.csv -r htmlextra --htmlreporter-export reporter.html

After command #2 is executed reporter.html is overwritten, I want results to be appended.

Is there any possibility, please suggest, thanks.


Solution

  • The reporter doesn't work in that way. You cannot append the results from a previous run as it creates a brand new report again.

    Contextually, those are 2 different Collection runs. It would be the same if you were to run those in the app and see the results in the Runner.

    If you wanted to see both reports individually, you would need to give them a different name, when exporting, or remove the export flag and the default filename would be created in the /newman directory.