Setting Test Iterations Using Newman in 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

Updated on: 2021-08-03T13:54:50+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements