美文网首页
postman-使用newman生成html报告

postman-使用newman生成html报告

作者: 车陂IT仔 | 来源:发表于2019-05-10 16:20 被阅读0次
    第一步:下载安装nodejs

    下载地址:https://nodejs.org/zh-cn/
    按照默认安装就完事了
    配置环境变量到path路径下:

    path 检查是否安装完成
    第二步:安装newman和html
    npm install -g newman
    npm install newman-reporter-html
    
    第三步:在postman内保存接口并导出为json格式文件
    导出文件
    第四步:在导出文件目录执行如下命令
    newman run test_weibo.postman_collection.json -k -r html --reporter-html-export result1.html
    
    第五步:查看测试报告

    相关文章

      网友评论

          本文标题:postman-使用newman生成html报告

          本文链接:https://www.haomeiwen.com/subject/kwvaoqtx.html