Is there a way to hide some requests from the postman report

I am using a python script to run newman to execuete the postman collection.

newman run {collectionURL} --folder {folderName} -e {environmentURL} -d {jsonDataFile} --reporters cli,json,htmlextra --reporter-json-export {jsonReport} --reporter-htmlextra-export {htmlReport}

I have some requests that I make to prepare my test data befroe hitting the APIs Im actually testing.

In my report the results are shown based on all the calls I made. Is there a way to omit the requests I make to get the test data and only keep the requests that I make to the APIs that I am testing?

That way my test report shows more realistic view.

Thanks

Hey @asanke-corto :wave:

Welcome to the Postman community :postman:

In htmlextra, you could use either of these flags in the command.

Skip Folders:

newman run collection.json -r htmlextra --reporter-htmlextra-skipFolders "folder name with space,folderWithoutSpace"

Skip Requests:

newman run collection.json -r htmlextra --reporter-htmlextra-skipRequests "request name with space,requestWithoutSpace"

You can find all of the other commands, with examples, on the readme.

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