坚持使用纽曼变量?

时间:2018-07-12 13:22:01

标签: environment-variables postman newman postman-collection-runner

我知道使用Postman中的Collection Runner,您可以选中“ Persist variables”复选框。使用他们的cli工具Newman有什么办法实现这一目标?

1 个答案:

答案 0 :(得分:1)

最终发现,您可以像这样添加--export-environment来获得预期的结果:

newman run coll.json -e env.json --export-environment env.json

链接到Github发行的here

相关问题