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
Welcome to the Postman community
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.
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 cust...
system
(system)
Closed
May 11, 2024, 7:48am
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.