如何录制时在Jmeter中排除URL?

时间:2015-05-20 12:26:43

标签: url jmeter

我想在JMeter中录制时排除某些URL。 我已在URL模式中添加脚本记录器以排除我不想获得的URL。例如:

http://googleads.g.doubleclick.net
http://eu1-search.doofinder.com/

似乎没有考虑到它。 我能做什么?我哪里错了?

2 个答案:

答案 0 :(得分:1)

记录器的

URL Patterns to Exclude部分采用正则表达式来排除资源。如果要排除整个域,可以使用如下模式:

^((?!doofinder|doubleclick).)*$

如果整个网址中包含doofinderdoubleclick字样,则此表达式会排除整个网址。

答案 1 :(得分:1)

我相信Excluding Certain Domains from the Load Test指南就是您正在寻找的内容。