HTTP API monitor based on postman and newman. It provides webui for newman, and some other useful things.
This is the "distribute" version of monitor-man, for deploy monitor-man in multi IDC(create one collection then running in multi IDC)
- setup monitor-man
- export your collection, data file, enviroment from postman, then upload to monitor-man
- monitor-man will setup a newman for monitor your test
- git clone this project
- run
npm install
oryarn install
- run
npm run build
- change listening port
export PORT=9200
(default 8889) - set redis info
export REDIS_WHOST=127.0.0.1;export REDIS_RHOST=127.0.0.1;export REDIS_PORT=6379;export REDIS_AUTH=foobar123;export REDIS_DB=0
(monitor-man rely on redis to store all information) - set log level
export LOG_LEVEL=debug
, default to debug - run
node app.js
docker pull yangxikun/monitor-man-distribute
(https://hub.docker.com/r/yangxikun/monitor-man-distribute/)docker run --name monitor-man-distribute --env REDIS_WHOST=10.17.16.5 --env REDIS_RHOST=10.17.16.5 --env REDIS_PORT=6379 --env REDIS_DB=1 --env REDIS_AUTH=foobar123 --env TIMEZONE=Asia/Shanghai --env IDC=shlt -p 8889:8889 yangxikun/monitor-man-distribute:2.0.1
- now, visit http://127.0.0.1:8889
build docker image:
- git clone this project
- npm install
- wget https://nodejs.org/dist/v8.4.0/node-v8.4.0-linux-x64.tar.xz
- docker build -t yangxikun/monitor-man-distribute:2.0.1 .
- PORT: listen port
- REDIS_RHOST: redis slave
- REDIS_WHOST: redis master
- REDIS_PORT
- REDIS_AUTH
- REDIS_DB
- TIMEZONE: see
/usr/share/zoneinfo/
(docker only) - LOG_LEVEL: default debug, see log4js
- IDC: the environment variable used by monitor-man to distinguish different data center(the env var name is custom)
see Wiki
- How to write automated tests for APIs using Postman – Part 1
- How to write automated tests for APIs with Postman – Part 2
- Writing automated tests with Postman – Part 3
- API testing tips from a Postman professional
This software is licensed under MIT. See the LICENSE file for more information.