
Linux 离线安装node.js+newman+postman
root@localhost tools]# newman run postmanjenkins.postman_collection.json -r htmlextra --reporter-html-export /root改目录没好用,生成到和node的平级newman。修改Newman下newman.js的权限 newman的bin目录下 /usr/tools/nodev14/lib/no
下载node.js Download | Node.js 历史版本Index of /dist/v14.21.1/ (nodejs.org)



配置环境变量


执行source /etc/profile
node -v npm -v

linux安装newman
在想要安装的目录下执行 npm -g install newman

newman 文档官网newman - npm

Tags · postmanlabs/newman (github.com)

NewMan卸载命令 npm uninstall -g newman
离线安装newman
我这里是把连网下载的newman复制过去的,
复制node安装目录下的lib/node_modules/neman

这是newman的目录结构网上下载的没有node_modules

修改Newman下newman.js的权限 newman的bin目录下 /usr/tools/nodev14/lib/node_modules/newman/bin
chmod 775 newman.js 在node安装路径下建立Newman的软连接

npm -g install newman-reporter-html 下载报告模板
执行脚本如下
[root@localhost tools]# newman run postmanjenkins.postman_collection.json -r html --reporter-html-export /root 可以指定生成到某个目录下


下载高级报告模板
npm install -g newman-reporter-htmlextra
[root@localhost tools]# newman run postmanjenkins.postman_collection.json -r htmlextra --reporter-html-export /root 改目录没好用,生成到和node的平级newman




这是刚下载两个模板的插件,在node的lib/node_modules目录下
jenkins持续集成
jenkins新建job,把执行脚本命令写在shell里

安装xmysql
在linux系统上执行npm install -g xmysql --registry=http://maven......(xmysql地址)window 和linux都用通一个命令

然后连接到mysql数据库



更多推荐
所有评论(0)