Interface Test Tools - SecondMan (continuous integration with Jenkins)

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.

Intelligent Recommendation

jenkins+ant+jmeter build a continuous integration interface test platform

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...

Jenkins+Ant+Jmeter build a continuous integration interface test platform (transfer)

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...

Postman+Newman+Git+Jenkins realizes interface automation test continuous integration

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...

Interface Automation Test Jenkins Continuous Integration Configuration Git

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 ...

Jenkins builds PO design interface automation test + CI continuous integration

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...

More Recommendation

Jenkins implements Python + Jenkins + Allure Report interface automation test continuous integration, and generates allure-report test report ...

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 tools Travis CI and Jenkins

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

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...

Chapter 1 Continuous Integration of Jenkins Tools for Deployment

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...

Learning tools - Jenkins continuous integration tool

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...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top