mock-带参数的post、get方法实现

2018-09-03  本文已影响0人  小well

1、post方法

json源码:

在jemter中新建线程组-http请求-查看结果树,配置好参数信息

(mac jemter启动:进入jemter bin目录下执行sh jemter)

执行成功

2、get方法

json代码:

命令行进入当前文件夹路径下,执行:

java -jar ./moco-runner-0.11.0-standalone.jar http -p 8888 -c startup1.json

启动成功后在浏览器中输入:

http://localhost:8888/getwithparam 即运行成功

上一篇 下一篇

猜你喜欢

热点阅读