Setting test iterations using Newman (Postman)



We can set test iterations using Newman with the help of the option –n.Newman's command to list down all options is − newman run –h. Options in Newman is grouped into these categories −

  • Utility

  • Basic setup

  • Request options

  • Other Misc. Options

Thus complete command to set iterations for two times should be −

newman run Collection1.json -n 2

Or,

newman run Collection1.json --iteration-count 2


Advertisements