I am receiving the below message when I run Newman run the command with parameter -r HTML extra. Where I have already installed HTML extra using -g (globally). But when I create a Newman .js file I am able to execute. Please advise what might have gone wrong.
" Newman: could not find "htmlextra" reporter ensure that the reporter is installed in the same directory as newman please install reporter using npm "
Install newman & htmlextra from the node.js command prompt using below commands:
npm install -g newman
npm install -g newman-reporter-htmlextra
After successful installation, run the below command
newman run ""Reqres.postman_collection.json" --reporters=cli,htmlextra
Single or double quotation marks ('',"") must be added in the --reporters args in order to take both args and run on cli and export HTML report at the same time.
newman run collectionName.json --reporters='cli,htmlextra'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With