jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Jasieniecki <nasth...@gmail.com>
Subject Re: Ignore only certain images
Date Mon, 10 Sep 2012 20:57:43 GMT
I ended up using this regex (parts of which are redundant i think but still)

(?=http://|https://)((?!illegalThings|OtherIllegalThings).*)

On Mon, Sep 10, 2012 at 3:27 PM, Oliver Lloyd <oliver_lloyd@hotmail.com>wrote:

> There is. At the bottom of the HTTP Sampler you'll see a field with a
> label of 'Embedded URLs must match'. Enter a regex in here that matches
> everything except the request you want to filter.
>
> Eg. (and this is crude) you could use:
>
> .*[^http://www.mysite.com/static/css/idontexist.css].*
>
> .* is everything
> ^ means negate the search
>
> You should probably refine this regex to be more reliable.
>
> You can also create a variable equal to this regex and then put a
> reference to the var in each HTTP Samper, then you only have to edit one
> value. Later releases of JMeter will allow you to enter this filter string
> in the HTTP Request Defaults which will make this even easier.
>
>
> On 10 Sep 2012, at 21:10, Nicholas Jasieniecki wrote:
>
> > For my test plan, there is one embedded image that always 404s, and i
> > basically want to ignore ONLY that resource and pull the rest. Is there a
> > good way to do that?
> >
> > Thanks,
> > Nick Jasieniecki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message