1.安裝node.js
1.1配置環境變數
![]()
1.1.2安裝Newman
1.1.3配置環境變數

2. Newman 的命令
2.1 常見的引數
|
-e:
|
使用環境變數
|
|
-g:
|
使用全域變數
|
|
-d:
|
使用
csv
,
text,json
資料驅動
|
|
-n:
|
回圈次數
|
|
-r :
|
cli,html,json,junit --reporter-html-export
|
2.2 命令
輸入命令執行postman批量執行匯出檔案

3.生成測驗報告
執行命令
newman run C:\Users\jack\Desktop\postman_collection.json -r html --reporter-html-
4.2手動獲取

4.3成功查看終端日志

4.4 去C盤 查看生成的報告

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/374709.html
標籤:其他
上一篇:Charles實作mock的方法
