Search code examples
jsonjenkinsnewman

Postman json collection runing from jenkins with newman batch command. Binary getting populated in jenkins screen, Please guide me to fix this issue


I have developed a postman collection. exported as json and runing from jenkins with batch command as.... "newman -c CollectionName.json -O output.json – H Reports.html". Binary getting populated in jenkins screen....

Example... [90m┌─────────────────────────[39m[90m┬──────────[39m[90m┬──────────�[39m [90m│[39m [90m│[39m executed [90m│[39m failed [90m│[39m [90m├─────────────────────────[39m[90m┼──────────[39m[90m┼──────────┤[39m [90m│[39m [32miterations[39m [90m│[39m 1 [90m│[39m 0 [90m│[39m [90m├─────────────────────────[39m[90m┼──────────[39m[90m┼──────────┤[39m


Solution

  • Did you try the option --disable-unicode in your newman command? So, your newman command should look like the following:

    newman run --disable-unicode "CollectionName.json"....<other arguments as required>
    

    (Here's a link that can be used as a guide for newman commands).

    By the way, in general, on Jenkins, if you want to totally solve this issue regarding special characters, you may take at look at this.