【问题标题】:Multiple iterations in the htmlextra report with newman使用 newman 在 htmlextra 报告中进行多次迭代
【发布时间】:2023-03-10 13:40:01
【问题描述】:

我对使用 newman 还很陌生,我正试图弄清楚如何在一份报告中准确地创建多个迭代。 我无法在我的笔记本电脑(Win 10)上本地的任何地方找到 htmlextra.js 文件来更改该字段:https://hub.docker.com/r/dannydainton/htmlextra

image

谁能帮助我了解如何为记者添加超过 1 次迭代到集合中?

非常感谢大家,很抱歉用这个基本问题打扰大家,但我就是想不通。

【问题讨论】:

  • 迭代是通过 newman 而不是 htmlextra report 设置的,因为你可以添加 newman run collection.json -n 5 -r htmlextra。运行收集 5 次。你在寻找与 docker 相关的东西吗?

标签: postman newman


【解决方案1】:

迭代是通过 newman 而不是 htmlextra report 设置的,你可以通过 -n 标志添加迭代计数。

newman run collection.json -n 5 -r htmlextra

这将运行收集 5 次

https://www.npmjs.com/package/newman 将显示所有纽曼特定标志和

https://www.npmjs.com/package/newman-reporter-htmlextra 显示所有 htmlextra 特定标志

-n , --iteration-count 指定与迭代结合使用时集合必须运行的次数 数据文件。

【讨论】:

    猜你喜欢
    • 2021-09-09
    • 2021-12-27
    • 1970-01-01
    • 2020-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-28
    • 2021-04-23
    相关资源
    最近更新 更多