Newman Run for multiple collection does not generate Report

Hi All,

I am trying to run multiple collection through newman with below command:

newman run API1.postman_collection.json && newman run API2.postman_collection.json --reporters cli,junit --reporter-junit-export ./Results/junitReport.xml

but in case of Assertion failure in the API1 the test stops , API2 is not executed and no Report is generated

can someone please help me with this?

Regards,
Vikrant

Hey @smrtyviks :wave:

Welcome to the Postman Community! :postman:

The command you posted, the first command would run the Collection and only use the cli reporter (by default if one is not added to the command) but it would create a file for the run.

The second command would run the Collection with the cli and junit reporter and output the xml file to your specified location. Only the second newman run command creates a report.

Unsure what you’re trying to achieve here, was the expectation to see 2 different reports created for each newman run command?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.