Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postman 邮递员如何在newman命令中显示执行时间_Postman_Postman Collection Runner_Newman - Fatal编程技术网

Postman 邮递员如何在newman命令中显示执行时间

Postman 邮递员如何在newman命令中显示执行时间,postman,postman-collection-runner,newman,Postman,Postman Collection Runner,Newman,我使用NewMan命令让PostMan定期执行请求,如下所示: newman run TestHitinProd.postman_collection.json -n 10000 --delay-request 300000 --verbose 我想显示执行的时间,但上面没有显示,即使使用--verbose。 我的问题是,如何通过命令行显示执行时间NewMan run 谢谢您是指测试运行完成所需的总时间还是测试运行开始的时间点?Martin H.,不是总时间,我指的是每次迭代的时间,您可

我使用NewMan命令让PostMan定期执行请求,如下所示:

newman run TestHitinProd.postman_collection.json   -n 10000 --delay-request 300000  --verbose
我想显示执行的时间,但上面没有显示,即使使用--verbose。 我的问题是,如何通过命令行显示执行时间
NewMan run

谢谢

您是指测试运行完成所需的总时间还是测试运行开始的时间点?Martin H.,不是总时间,我指的是每次迭代的时间,您可以向集合变量添加2个变量,一个包含迭代开始时的时间戳,另一个包含在集合中的最后一个请求中添加的时间戳。然后,您可以计算迭代完成所需的时间,并通过
console.log()
,将其输出到您的CLI中。