【问题标题】:Receiving could not find “htmlextra” reporter when i run it on my local (Linux) neman html report generation当我在本地 (Linux) neman html 报告生成上运行它时,接收找不到“htmlextra”报告器
【发布时间】:2021-08-30 13:36:39
【问题描述】:

我在运行 Newman 时收到以下消息,运行带有参数 -r HTML extra 的命令。我已经使用 -g (全局)安装了 HTML extra。但是当我创建一个 Newman .js 文件时,我可以执行。请告知可能出了什么问题。

" 纽曼:找不到“htmlextra”记者 确保reporter与newman安装在同一目录下 请使用 npm 安装记者 "

【问题讨论】:

  • 您是否在 js 脚本中使用 Newman 作为库?您需要将报告器安装为 package.json 文件中的依赖项。请给我看一下剧本好吗?
  • @DannyDainton 我正在尝试在终端中运行邮递员集合。终端命令是“ newman run Seven.json -e Ev2.json -d CSVDataPostman.csv -r htmlextra”
  • 不知道你为什么提到js脚本????我会完全卸载纽曼和记者的npm uninstall -g newman newman-reporter-htmlextra,然后再次安装npm install -g newman newman-reporter-htmlextra,有时这就是这里所需要的。
  • @DannyDainton 卸载节点并重新安装。并用一个小改动更新了命令,现在它工作正常。终端命令:“sudo newman run Seven.json -e Ev2.json -d CSVDataPostman.csv -r htmlextra”。

标签: postman report newman


【解决方案1】:

使用以下命令从 node.js 命令提示符安装 newmanhtmlextra

npm install -g newman
npm install -g newman-reporter-htmlextra

安装成功后,运行以下命令

newman run ""Reqres.postman_collection.json" --reporters=cli,htmlextra

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-09-09
    • 1970-01-01
    • 2022-01-18
    • 2023-03-21
    • 2021-08-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多