Jenkins integrates Apifox automated interface testing tool

Jenkins integrates Apifox automated interface testing tool

1. Open the Jenkins plugin management and find the NodeJS plugin, install and restart
insert image description here
2. Go to the Jenkins server to install nodejs and npm and apifox-cli packages

yum -y install nodejs npm 
npm install -g apifox-cli

insert image description here

3. Create a new NodeJS in the global tool configuration , and configure the version number (requires >= v10)

insert image description here

Execute apifox automated interface tests

1. Create a new project and select the project type as Freestyle project
insert image description here

2. Add the build step Excute shell, copy the ApifoxCli command into it, save it and run it
insert image description here

output effect

insert image description here

Guess you like

Origin blog.csdn.net/Habo_/article/details/128017113