简体   繁体   English

使用5个线程运行postman个文件夹

[英]Using 5 threads to run postman folders

Is there a way to execute postman folders in parallel in a testng way?有没有办法以 testng 的方式并行执行 postman 文件夹?

I have 5 collections, each one contains hundred of tests that are not dependent and use it's own data, so they can be parallalized.我有 5 个 collections,每个包含数百个不依赖的测试并使用它自己的数据,因此它们可以并行化。

Setting 5 threads can reduce execution time by almost five.设置 5 个线程可以将执行时间减少近 5 个。

I've seen this Run Postman (or Newman) collection runner iterations in parallel but it doesn't suite me because it doesn't dynamically know how much folder are in each collection我已经看到这个Run Postman (or Newman) collection runner iterations in parallel但它不适合我,因为它不知道每个集合中有多少文件夹

Is there a way to do so with newman?有没有办法用纽曼这样做? Or even with external tools?甚至使用外部工具?

You can use newman and GNU Parallel .您可以使用 newman 和GNU Parallel

The command would look like: parallel --jobs 5 < newman_commands.txt该命令如下所示: parallel --jobs 5 < newman_commands.txt

Where newman_commands.txt would contain the newman commands to run each folder.其中newman_commands.txt将包含运行每个文件夹的 newman 命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM