cui_ 发表于 2017-5-24 11:01:49

接口测试

url:httP:10.10.12.156/api/activity/addActivity
参数:{"id":"","theme":"TEST1","principal":"00013247","status":1,"type":2,"budget":"2588","courseProduct":"00093943","startTime":"2017-05-22 00:00:00","endTime":"2017-06-19 00:00:00","detail":"隔热而","activeTime":["2017-05-21T16:00:00.000Z","2017-06-18T16:00:00.000Z"],"channel":["SCHOOL_PI","28"],"activechannel":"","json":{}}
这个要是用Python来写接口测试,该如何写了,接口类型时post

most2008 发表于 2017-5-24 11:10:30

用selenium工具录制一下你的接口,然后转为Python代码是最快的选择。

fhhh_eyou 发表于 2017-5-24 11:53:34

建议最好设置变量灵活测试

jingzizx 发表于 2017-5-24 13:06:35

没用过Python

掉渣饼 发表于 2017-5-24 13:58:11

可以尝试使用Jmeter工具,采用数据分离方式进行接口测试
页: [1]
查看完整版本: 接口测试