You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2007/08/09 02:14:20 UTC
Re: Proxy exclude pattern doesn't work
JMeter uses regular expression matching on the whole of the URL, so
you need to use something like
.*\.gif
.* - match anything
\. - match a dot only
.gif would match only
.gif
agif
xgif
etc.
On 28/07/07, VijayKumar.Nandam@cognizant.com
<Vi...@cognizant.com> wrote:
> Use *\.jpg or the extensions u need to exclude...
>
>
> Thanks,
> Vijay Nandam
>
>
> -----Original Message-----
> From: Jonathan Goldstein [mailto:goldstein.jonathan@gmail.com]
> Sent: Thursday, July 26, 2007 3:18 PM
> To: JMeter Users List
> Subject: Fwd: Proxy exclude pattern doesn't work
>
> OK, nobody answered...
>
> Has anyone else encountered such a problem?
>
> ---------- Forwarded message ----------
> From: Jonathan Goldstein <go...@gmail.com>
> Date: Jul 22, 2007 9:55 AM
> Subject: Proxy exclude pattern doesn't work
> To: JMeter Users List <jm...@jakarta.apache.org>
>
>
> Hi,
>
> When recording with a proxy server, I try to exclude files like '.gif',
> '.js', '.jsp' since they aren't needed when I run the test. However, the
> filtering works only partially. Less files are recorded, but I still get
> '.gif', '.jsp' and '.js' files. Anyone know why this is happening?
>
>
> Thanks,
> Jon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Proxy exclude pattern doesn't work
Posted by sebb <se...@gmail.com>.
On 7 September 2010 13:18, SanderW <sa...@performancearchitecten.nl> wrote:
>
> Hi,
>
> It was a while ago since the last response.
> I just ran into the same issue where I excluded javascript-files (with
> .*\.js), but still saw some js-files being recorded.
>
> It seems to be related if the Path starts with '/_', because I noticed the
> following behaviour:
>
> /Pages/seach.js --> Not recorded, hence correctly excluded
> /Pages/_layouts/seach.js --> Not recorded, hence correctly excluded
> /_layouts/seach.js --> Still being recorded.
>
> After I added .*\_.* to URL Patters to exclude the javascript-files were not
> recorded anymore.
There must be some other cause for this.
.*\.js
will match
/_layouts/seach.js
as can be seen by using the ORO demo application at
http://jakarta.apache.org/oro/demo.html
The additional pattern .*\_.* (which can equally well be written as
.*_.*) will match any string with an underscore in it.
>
>
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Proxy-exclude-pattern-doesn-t-work-tp530175p2805989.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Proxy exclude pattern doesn't work
Posted by SanderW <sa...@performancearchitecten.nl>.
Hi,
It was a while ago since the last response.
I just ran into the same issue where I excluded javascript-files (with
.*\.js), but still saw some js-files being recorded.
It seems to be related if the Path starts with '/_', because I noticed the
following behaviour:
/Pages/seach.js --> Not recorded, hence correctly excluded
/Pages/_layouts/seach.js --> Not recorded, hence correctly excluded
/_layouts/seach.js --> Still being recorded.
After I added .*\_.* to URL Patters to exclude the javascript-files were not
recorded anymore.
--
View this message in context: http://jmeter.512774.n5.nabble.com/Proxy-exclude-pattern-doesn-t-work-tp530175p2805989.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Proxy exclude pattern doesn't work
Posted by sebb <se...@gmail.com>.
On 14/01/2009, venn <dm...@gmail.com> wrote:
>
>
> sebb-2-2 wrote:
> >
> > JMeter uses regular expression matching on the whole of the URL, so
> > you need to use something like
> >
> > .*\.gif
> >
> > .* - match anything
> > \. - match a dot only
> >
> >
> > .gif would match only
> >
> > .gif
> > agif
> > xgif
> >
> > etc.
> >
> > On 28/07/07, VijayKumar.Nandam@cognizant.com
> > <Vi...@cognizant.com> wrote:
> >> Use *\.jpg or the extensions u need to exclude...
> >>
> >>
> >> Thanks,
> >> Vijay Nandam
> >>
> >>
> >> -----Original Message-----
> >> From: Jonathan Goldstein [mailto:goldstein.jonathan@gmail.com]
> >> Sent: Thursday, July 26, 2007 3:18 PM
> >> To: JMeter Users List
> >> Subject: Fwd: Proxy exclude pattern doesn't work
> >>
> >> OK, nobody answered...
> >>
> >> Has anyone else encountered such a problem?
> >>
> >> ---------- Forwarded message ----------
> >> From: Jonathan Goldstein <go...@gmail.com>
> >> Date: Jul 22, 2007 9:55 AM
> >> Subject: Proxy exclude pattern doesn't work
> >> To: JMeter Users List <jm...@jakarta.apache.org>
> >>
> >>
> >> Hi,
> >>
> >> When recording with a proxy server, I try to exclude files like '.gif',
> >> '.js', '.jsp' since they aren't needed when I run the test. However, the
> >> filtering works only partially. Less files are recorded, but I still get
> >> '.gif', '.jsp' and '.js' files. Anyone know why this is happening?
> >>
> >>
> >> Thanks,
> >> Jon
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
>
>
> Hello, can you help me with similar situation? I want to exclude requests on
> "*.gif" files from Test. I add pattern ".*\.gif" into URL patterns for
> exclude. Next action - restart of proxy.
That should work.
> After recoring a sequance of
> actions, I can see, that tree has request on getting for "__utm.gif" file.
> Why it is happened?
No idea, unless there is perhaps some spurious white space before or
after the RE.
> May be symbol '_' should be include with help '\'? For
> example "\/*\_*\_*\d*\w*\.gif" or "\/[\_A-z0-9]+\.gif"(now this is not
> working)...
No, _ is not special - it is included in ".".
> --
> View this message in context: http://www.nabble.com/Proxy-exclude-pattern-doesn%27t-work-tp11728852p21458959.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Proxy exclude pattern doesn't work
Posted by venn <dm...@gmail.com>.
sebb-2-2 wrote:
>
> JMeter uses regular expression matching on the whole of the URL, so
> you need to use something like
>
> .*\.gif
>
> .* - match anything
> \. - match a dot only
>
>
> .gif would match only
>
> .gif
> agif
> xgif
>
> etc.
>
> On 28/07/07, VijayKumar.Nandam@cognizant.com
> <Vi...@cognizant.com> wrote:
>> Use *\.jpg or the extensions u need to exclude...
>>
>>
>> Thanks,
>> Vijay Nandam
>>
>>
>> -----Original Message-----
>> From: Jonathan Goldstein [mailto:goldstein.jonathan@gmail.com]
>> Sent: Thursday, July 26, 2007 3:18 PM
>> To: JMeter Users List
>> Subject: Fwd: Proxy exclude pattern doesn't work
>>
>> OK, nobody answered...
>>
>> Has anyone else encountered such a problem?
>>
>> ---------- Forwarded message ----------
>> From: Jonathan Goldstein <go...@gmail.com>
>> Date: Jul 22, 2007 9:55 AM
>> Subject: Proxy exclude pattern doesn't work
>> To: JMeter Users List <jm...@jakarta.apache.org>
>>
>>
>> Hi,
>>
>> When recording with a proxy server, I try to exclude files like '.gif',
>> '.js', '.jsp' since they aren't needed when I run the test. However, the
>> filtering works only partially. Less files are recorded, but I still get
>> '.gif', '.jsp' and '.js' files. Anyone know why this is happening?
>>
>>
>> Thanks,
>> Jon
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
Hello, can you help me with similar situation? I want to exclude requests on
"*.gif" files from Test. I add pattern ".*\.gif" into URL patterns for
exclude. Next action - restart of proxy. After recoring a sequance of
actions, I can see, that tree has request on getting for "__utm.gif" file.
Why it is happened? May be symbol '_' should be include with help '\'? For
example "\/*\_*\_*\d*\w*\.gif" or "\/[\_A-z0-9]+\.gif"(now this is not
working)...
--
View this message in context: http://www.nabble.com/Proxy-exclude-pattern-doesn%27t-work-tp11728852p21458959.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org