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 即运行成功
网友评论