如何使用Moco模拟HTTP网络接口

来源:互联网 发布:mac install ipython 编辑:程序博客网 时间:2024/06/06 03:50

Moco独立运行环境:Java 环境、moco-runner-0.11.0-standalone.jar

模拟http接口:

1、打开命令行

2、cd到moco-runner-0.11.0-standalone.jar所在目录

3、输入java -jar moco-runner-0.11.0-standalone.jar http -p <monitor-port> -c < configuration -file>

<monitor-port>:http服务监听的端口

<configuration -file>:配置文件路径