tags: automation test tools postman
Postman has been briefly introduced before, whether it is developing or testing is a very good interface test tool, POSTMAN is simple and easy to play. However, if you want to further actually constantly integrate interface automation tests, it needs to be combined with Jenkins. So this exercise is how: implement interface automation test Postman and Jenkins continuous integration (Reference: https://blog.csdn.net/qq_14908027/Article/details/77923792)
Advantages: Realize the automation test of continuous interface
Required environment: NodeJS + Newman
NodeJS installation: official website download installation - http: //nodejs.cn/download/
After the installation is complete, view the version command:
node -v
npm -v

Newman command installation: sudo npm install newman -global

newman run /Volumes/Transcend/jenkins.postman_collection.json
/jenkins.postman_collection.json saves files for Postman's Import.

problem:
1. Run command with environment variables
NEWMAN RUN / VOLUMES / TRANSCEND / BAPP - Login .postman_collection.json -e /volumes/transcend/test.postman_environment.json

2, the runtime report: line 2: Newman: Command Not Found
Question: No newman is running, require environment variable configuration
Solution: Output Environment "Echo $ Ptath", put the output environment variables to "copy all the PATH value, then post it to Jenkins System Management - System Settings --Environment Variables - Key: Path Value: The value just path"
The results after running "Newman Run /Volumes/transcend/jenkins.postman_collection.json" are as follows:

3, run the generated report file
“newman run /Volumes/Transcend/jenkins.postman_collection.json --reporters html –reporter-html-export report.html”

Note: After the operation is completed, the file report.html file is not generated on the MAC this. The reason is not known, followed by continuing to track the reason.
2021-1-26 Note: Generate a newman folder in the current directory of the script, and the generated report file is automatically stored under the Newman folder.
1. The writing steps of jemter interface script are as follows: 1. Write interface request By recording or viewing interface documents, writing interface requests, debugging, and ensuring interfa...
Reprint address: http://www.cnblogs.com/zhengah/p/5208989.html 1. What isInterface test? Interface test is a test for testing the interface between system components. Interface testing is mainly use...
What is the common interface testing process for Postman tools? Use Postman+Newman+Git+Jenkins+Dingding/Email reminder -------------- The following are respectively explained: Newman installation unde...
Add key Server execution command 1. Get the key folder 2. View the public key and add to Git, Title will start 3.Jenkins Configure private key 2.Linux Install Git 3. Construct instances 1. Creating a ...
1, Jenkins environment Jenkins is not saying, online, one blockbuster 2, build projects First, new tasks Second, create a project Third, build options The command is a doc command, meaning to enter th...
Project Introduction Interface function test application:http://www.weather.com.cn/data/cityinfo/<city_code>.html Test function: Get weather forecast for the corresponding city Source: Python Fu...
Continuous Integration: CI, meaning that any change to the code base in any project will trigger the CI server to automatically build the project, run the test automatically, and even automatically de...
Continuous integration of deployment automation tools with Jenkins #Install RPM package yum -y install zip unzip net-tools gcc gcc-c++ make #Download tomcat, jdk, import and extract tar xf jdk-8u162-l...
1.1 Hardware Requirements Memory: at least 512MB Disk space: 10G JDK8 is best to install jre at the same time. Download the latest war package (Generic Java Package (.war)) from the official website h...
Foreword Jenkins is a powerful application that allows continuous integration and continuous delivery of projects, no matter what the platform. This is a free source code, you can handle continuous in...