【发布时间】:2018-12-20 18:07:26
【问题描述】:
我知道在 Postman 中使用 Collection Runner 您可以选中“持久变量”复选框。使用他们的 cli 工具 Newman 时有什么方法可以实现这一点?
【问题讨论】:
标签: environment-variables postman newman postman-collection-runner
我知道在 Postman 中使用 Collection Runner 您可以选中“持久变量”复选框。使用他们的 cli 工具 Newman 时有什么方法可以实现这一点?
【问题讨论】:
标签: environment-variables postman newman postman-collection-runner
最终发现你可以像这样添加--export-environment得到想要的结果:
newman run coll.json -e env.json --export-environment env.json
链接到 Github 问题 here。
【讨论】: