JMeter Proxy exclusion patterns still being recorded

前端 未结 2 634
走了就别回头了
走了就别回头了 2021-02-12 12:15

I am using JMeter to record traffic in my browser. In my URL Patterns to Exclude are:

.*\\.jpg, .*\\.js, .*\\.png

Which lo

相关标签:
2条回答
  • 2021-02-12 12:48

    Maybe you can do the oposite: leave blank the URL Patterns to exclude and negate those patterns in the URL Patterns to Include box:

    (?!..(bmp|css|js|gif|ico|jpe?g|png|swf|woff))(.)

    0 讨论(0)
  • 2021-02-12 13:13

    As already mentioned in the question comments it is probably a problem with the trailing characters. The pattern matcher is executed against the complete url including parameters. So an URL http://example.com/layout.css?id=123 is not matched against the pattern .*\.css
    The JMeter HTTP Request Sample seperates the Path and the Parameters so it might be not obvious when you look at the URL.

    Solution:
    Change the pattern to support trailing characters .*\.css.*

    Explained
    .* Any character
    \. Matching the . (dot) character
    css The character sequence css
    .* Any character

    0 讨论(0)
提交回复
热议问题