You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Léon Keijser <le...@smile.eu> on 2015/01/02 20:16:57 UTC
logging 404's
Hi,
We're trying to come up with a way to let JMeter request some pages,
while retrieving embedded content and log each request that returns a
'http 404 not found' code. So far, all I've come up with is logging a
request if the main sample returns 404, but not when retrieving embedded
content, such as a missing image file.
My question is, is what I want even possible? I have no idea if
beanshell can do what I want, since I don't really understand it :)
Thanks in advance!
--
Kind Regards, Met vriendelijke groet,
*Léon Keijser*
Technical Consultant
*SMILE BV*
Goeman Borgesiuslaan 77 | 3515 ET Utrecht
T +31 (0)30 22.87.995 | F +31 (0)30 22.87.997
nl.smile.eu <http://nl.smile.eu/>
Re: logging 404's
Posted by Sergio Boso <se...@bosoconsulting.it>.
Hi Leon,
it should be feasible by using a Regular expression extractor.
You must apply it to "main sample and sub-sample".
You should match result 404 and extract the URL, and return it to a variable.
Then you have to log the variable value.
The main defect of this approach is that you have to replicate the regex to each and every HTTP sample.
HTH
Sergio
Il 05/01/2015 09.05, Léon Keijser ha scritto:
> Hi,
>
> The view results tree listener displays the 404's, yes. What I would like is to have something write these errors to a separate
> log file.
>
> I have specified a filename in the listener, but it only writes the error if the entire sample fails, not when for example an
> image is missing (404).
>
> regards,
>
> Léon
>
>
>
> On 01/03/2015 12:37 AM, Shmuel Krakower wrote:
>> Hi
>> I'm not sure what logging is, I assume you are referring to log errors only
>> in the view results tree listener.
>>
>> If that is right I think that someone just ask for that few days ago in
>> this mailing list and the answer was to use a beanshell post processor.
>>
>> If that's not what you need, please explain in more details what you are
>> trying to achieve.
>>
>> Best
>> Shmuel.
>>
>> www.beatsoo.org - free application performance monitoring from world wide
>> locations.
>> On Jan 2, 2015 9:17 PM, "Léon Keijser" <le...@smile.eu> wrote:
>>
>>> Hi,
>>>
>>> We're trying to come up with a way to let JMeter request some pages, while
>>> retrieving embedded content and log each request that returns a 'http 404
>>> not found' code. So far, all I've come up with is logging a request if the
>>> main sample returns 404, but not when retrieving embedded content, such as
>>> a missing image file.
>>>
>>> My question is, is what I want even possible? I have no idea if beanshell
>>> can do what I want, since I don't really understand it :)
>>>
>>> Thanks in advance!
>>>
>>> --
>>> Kind Regards, Met vriendelijke groet,
>>>
>>> *Léon Keijser*
>>> Technical Consultant
>>>
>>>
>>> *SMILE BV*
>>> Goeman Borgesiuslaan 77 | 3515 ET Utrecht
>>> T +31 (0)30 22.87.995 | F +31 (0)30 22.87.997
>>> nl.smile.eu <http://nl.smile.eu/>
>>>
>>>
>
--
Ing. Sergio Boso
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: logging 404's
Posted by Léon Keijser <le...@smile.eu>.
Hi,
The view results tree listener displays the 404's, yes. What I would
like is to have something write these errors to a separate log file.
I have specified a filename in the listener, but it only writes the
error if the entire sample fails, not when for example an image is
missing (404).
regards,
Léon
On 01/03/2015 12:37 AM, Shmuel Krakower wrote:
> Hi
> I'm not sure what logging is, I assume you are referring to log errors only
> in the view results tree listener.
>
> If that is right I think that someone just ask for that few days ago in
> this mailing list and the answer was to use a beanshell post processor.
>
> If that's not what you need, please explain in more details what you are
> trying to achieve.
>
> Best
> Shmuel.
>
> www.beatsoo.org - free application performance monitoring from world wide
> locations.
> On Jan 2, 2015 9:17 PM, "Léon Keijser" <le...@smile.eu> wrote:
>
>> Hi,
>>
>> We're trying to come up with a way to let JMeter request some pages, while
>> retrieving embedded content and log each request that returns a 'http 404
>> not found' code. So far, all I've come up with is logging a request if the
>> main sample returns 404, but not when retrieving embedded content, such as
>> a missing image file.
>>
>> My question is, is what I want even possible? I have no idea if beanshell
>> can do what I want, since I don't really understand it :)
>>
>> Thanks in advance!
>>
>> --
>> Kind Regards, Met vriendelijke groet,
>>
>> *Léon Keijser*
>> Technical Consultant
>>
>>
>> *SMILE BV*
>> Goeman Borgesiuslaan 77 | 3515 ET Utrecht
>> T +31 (0)30 22.87.995 | F +31 (0)30 22.87.997
>> nl.smile.eu <http://nl.smile.eu/>
>>
>>
--
Kind Regards, Met vriendelijke groet,
*Léon Keijser*
Technical Consultant
*SMILE BV*
Goeman Borgesiuslaan 77 | 3515 ET Utrecht
T +31 (0)30 22.87.995 | F +31 (0)30 22.87.997
nl.smile.eu <http://nl.smile.eu/>
Re: logging 404's
Posted by Shmuel Krakower <sh...@gmail.com>.
Hi
I'm not sure what logging is, I assume you are referring to log errors only
in the view results tree listener.
If that is right I think that someone just ask for that few days ago in
this mailing list and the answer was to use a beanshell post processor.
If that's not what you need, please explain in more details what you are
trying to achieve.
Best
Shmuel.
www.beatsoo.org - free application performance monitoring from world wide
locations.
On Jan 2, 2015 9:17 PM, "Léon Keijser" <le...@smile.eu> wrote:
> Hi,
>
> We're trying to come up with a way to let JMeter request some pages, while
> retrieving embedded content and log each request that returns a 'http 404
> not found' code. So far, all I've come up with is logging a request if the
> main sample returns 404, but not when retrieving embedded content, such as
> a missing image file.
>
> My question is, is what I want even possible? I have no idea if beanshell
> can do what I want, since I don't really understand it :)
>
> Thanks in advance!
>
> --
> Kind Regards, Met vriendelijke groet,
>
> *Léon Keijser*
> Technical Consultant
>
>
> *SMILE BV*
> Goeman Borgesiuslaan 77 | 3515 ET Utrecht
> T +31 (0)30 22.87.995 | F +31 (0)30 22.87.997
> nl.smile.eu <http://nl.smile.eu/>
>
>