Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to access the iteration number in Postman REST Client?

Tags:

postman

I'm using postman for API testing. I'm running a large number of tests and I want to print the iteration number to the console on some of them. Is there a way to get the iteration number as an environment-like variable?

like image 626
toshiomagic Avatar asked Jun 19 '15 19:06

toshiomagic


1 Answers

According to Postman API Reference, pm.info.iteration - is the value of the current iteration being run.

Example:

console.log(pm.info.iteration);
like image 50
sergeidyga Avatar answered Oct 12 '22 15:10

sergeidyga