我正在使用 Jmeter 代理记录我在浏览器中执行的步骤。是否有可能设置代理服务器只是为了监听一个特定的页面?
我只想记录在 www.test123.com 上采取的步骤
谢谢
使用 Include 模式来限制记录的请求。
根据http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Proxy_Server
The include and exclude patterns are treated as regular expressions (using Jakarta ORO). They will be matched against the host name, port (actual or implied) path and query (if any) of each browser request. If the URL you are browsing is
"http://jmeter.apache.org/jmeter/index.html?username=xxxx" ,
then the regular expression will be tested against the string:
"jmeter.apache.org:80/jmeter/index.html?username=xxxx" .
Thus, if you want to include all .html files, your regular expression might look like:
".*\.html(\?.*)?" - or ".*\.html" if you know that there is no query string or you only want html pages without query strings.
“www.test123.com.*”应该只记录来自给定 URL 的请求。