一、安装postman

Download Postman | Get Started for Free
Postman-win64-Setup.7z

二、安装nodejs

1.安装nodejs

nodejs
node-v18.14.2-x64.7z

2.安装xmysql

  1. # 是postman(node.js)链接mysql的工具
  2. cnpm install -g xmysql

3.安装newman

  1. # postman的一个插件,用于在命令行执行测试
  2. cnpm install -g newman

4.安装newman-reporter-html

  1. # 是postaman的一个插件,用于生成html测试报告
  2. cnpm install -g newman-reporter-html

5.校验

  1. npm list -g --depth 0
  2. # +-- cnpm@9.0.1
  3. # +-- newman-reporter-html@1.0.5
  4. # +-- newman@5.3.2
  5. # +-- npm@8.19.2
  6. # `-- xmysql@0.5.1