英文:
Jmeter - Constructing a URL in Jmeter with HTTP request
问题
我有一个具有以下格式的URL,我不太确定如何在使用Jmeter进行HTTP请求后生成这个“#”后面的URL。任何指导都将不胜感激。
${url}}/a/?case_type_category=cases#/case/list?cf={"case_type_category":"cases","case_manager":2}
英文:
I've got a URL with following format, I'm not quite sure how to generate this URL after "# " using an HTTP request using Jmeter, Any pointers would be highly appreciated.
${url}}/a/?case_type_category=cases#/case/list?cf={"case_type_category":"cases","case_manager":2}
答案1
得分: 0
-
只需将所有内容放入HTTP请求采样器的“Path”字段中,JMeter将对其进行解析。
-
您无需手动构建URL,可以使用HTTP(S)测试脚本记录器或JMeter Chrome扩展进行录制。
有关更多详情,请参阅URL.hash的MDN文档章节。
英文:
-
Just put everything into "Path" field of the HTTP Request sampler and JMeter will parse it
-
You don't need to construct URLs manually, they can be recorded using HTTP(S) Test Script Recorder or JMeter Chrome Extension
See URL.hash MDN documentation chapter for more details
专注分享java语言的经验与见解,让所有开发者获益!
评论