解决jmeter中参数为空和请求API返回结果404

来源:互联网 发布:北京东京 知乎 编辑:程序博客网 时间:2024/05/17 04:51

jmeter请求API返回结果是这样的话:



Error 404 Not Found

HTTP ERROR 404


Problem accessing /offline/version_contrl/model_versions%20. Reason:

    Not Found


Powered by Jetty://

1、有可能API的URL有误
2、 有可能在HTTP Header Manager中没设置 Content-Type application/json

Get请求时的参数可以为NUll,则URL不传这参数:
这里写图片描述

0 0