【问题标题】:Persist variables using Newman?使用 Newman 持久化变量?
【发布时间】:2018-12-20 18:07:26
【问题描述】:

我知道在 Postman 中使用 Collection Runner 您可以选中“持久变量”复选框。使用他们的 cli 工具 Newman 时有什么方法可以实现这一点?

【问题讨论】:

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


    【解决方案1】:

    最终发现你可以像这样添加--export-environment得到想要的结果:

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

    链接到 Github 问题 here

    【讨论】:

      猜你喜欢
      • 2011-11-02
      • 1970-01-01
      • 2014-07-12
      • 1970-01-01
      • 2019-12-27
      • 2019-12-17
      • 1970-01-01
      • 2010-09-16
      • 1970-01-01
      相关资源
      最近更新 更多