惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Security Latest
Security Latest
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AI
AI
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
S
Secure Thoughts
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
V
V2EX
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tenable Blog
T
Threat Research - Cisco Blogs
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
Lohrmann on Cybersecurity
F
Full Disclosure
H
Help Net Security
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Engineering at Meta
Engineering at Meta
A
Arctic Wolf
O
OpenAI News
S
Securelist

Newman - 标签 - cywhat's blog

Jenkins报错 Bash:newman:command Not Found Linux安装newman生成postman脚本报告 Linux/macos安装newman
newman生成好看的html报告
cywhat · 2021-08-18 · via Newman - 标签 - cywhat's blog

   约 234 字  预计阅读 1 分钟    次阅读     条评论

目录

PS:运行newman需要node 版本大于10

1.安装newman

2.安装普通html报告插件(建议安装)

1
npm install -g newman-reporter-html

3.安装美化html插件

1
npm install -g newman-reporter-htmlextra

4.newman命令详解

1
2
3
4
5
6
7
8
newman run  SX.postman_collection.json -e environment.json -r htmlextra,cli --reporter-htmlextra-title "实训平台接口 测试报告" --reporter-htmlextra-browserTitle "实训平台接口报告" --reporter-htmlextra-export Bapi.html
#参数解释:
run 后面跟接口脚本json格式的文件
-e 后面添加环境变量
-r 指定生成的报告格式
--reporter-htmlextra-title 指定生成的报告title
--reporter-htmlextra-browserTitle 指定生成的浏览器title
--reporter-htmlextra-export 指定生成的html文件名和路径

/img/img6.png

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏