You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Craig Flichel <cf...@novator.com> on 2009/11/11 19:34:37 UTC

How do i get the HTTPSampler to download resources defined in CSS styles referenced on the result?

I can't find any documentation on CSS other than how to tell JMeter to 
download externally referenced CSS.

What I desire is more of a simulation of the browser requests that would 
come in when evaluating a style referenced on a page and that style 
references an image e.g. background-image:url("");
That URL should be requested.

Any way to do that?
Thanks,
Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: How do i get the HTTPSampler to download resources defined in CSS styles referenced on the result?

Posted by sebb <se...@gmail.com>.
On 18/11/2009, Adrian Speteanu <as...@gmail.com> wrote:
> hi,
>
>  shouldn't the checkbox "Retrieve all embeded resources" help download all
>  required resources? (including imagines, .js files, xml files, etc)

Yes and no.

JMeter will download the CSS file (if this is selected), but it won't
process the CSS file to download any files referenced by the CSS.

>
>
>  On Wed, Nov 11, 2009 at 11:49 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
>  > hi
>  > I dont think you can do this directly/ dynamically. Statically if you
>  > record
>  > tests/ check browser sniffers you can determine which images are referenced
>  > from which pages and request those urls explicitly.
>  >
>  > You could request the CSS and post process out all background-image urls ,
>  > but it would be pretty hard to figure which classes are being referred to
>  > in
>  > the document.
>  >
>  > regards
>  > deepak
>  >
>  > On Wed, Nov 11, 2009 at 10:34 AM, Craig Flichel <cflichel@novator.com
>  > >wrote:
>  >
>  > > I can't find any documentation on CSS other than how to tell JMeter to
>  > > download externally referenced CSS.
>  > >
>  > > What I desire is more of a simulation of the browser requests that would
>  > > come in when evaluating a style referenced on a page and that style
>  > > references an image e.g. background-image:url("");
>  > > That URL should be requested.
>  > >
>  > > Any way to do that?
>  > > Thanks,
>  > > Craig
>  > >
>  > > ---------------------------------------------------------------------
>  > > 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: How do i get the HTTPSampler to download resources defined in CSS styles referenced on the result?

Posted by Adrian Speteanu <as...@gmail.com>.
hi,

shouldn't the checkbox "Retrieve all embeded resources" help download all
required resources? (including imagines, .js files, xml files, etc)


On Wed, Nov 11, 2009 at 11:49 PM, Deepak Shetty <sh...@gmail.com> wrote:

> hi
> I dont think you can do this directly/ dynamically. Statically if you
> record
> tests/ check browser sniffers you can determine which images are referenced
> from which pages and request those urls explicitly.
>
> You could request the CSS and post process out all background-image urls ,
> but it would be pretty hard to figure which classes are being referred to
> in
> the document.
>
> regards
> deepak
>
> On Wed, Nov 11, 2009 at 10:34 AM, Craig Flichel <cflichel@novator.com
> >wrote:
>
> > I can't find any documentation on CSS other than how to tell JMeter to
> > download externally referenced CSS.
> >
> > What I desire is more of a simulation of the browser requests that would
> > come in when evaluating a style referenced on a page and that style
> > references an image e.g. background-image:url("");
> > That URL should be requested.
> >
> > Any way to do that?
> > Thanks,
> > Craig
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>

Re: How do i get the HTTPSampler to download resources defined in CSS styles referenced on the result?

Posted by Deepak Shetty <sh...@gmail.com>.
hi
I dont think you can do this directly/ dynamically. Statically if you record
tests/ check browser sniffers you can determine which images are referenced
from which pages and request those urls explicitly.

You could request the CSS and post process out all background-image urls ,
but it would be pretty hard to figure which classes are being referred to in
the document.

regards
deepak

On Wed, Nov 11, 2009 at 10:34 AM, Craig Flichel <cf...@novator.com>wrote:

> I can't find any documentation on CSS other than how to tell JMeter to
> download externally referenced CSS.
>
> What I desire is more of a simulation of the browser requests that would
> come in when evaluating a style referenced on a page and that style
> references an image e.g. background-image:url("");
> That URL should be requested.
>
> Any way to do that?
> Thanks,
> Craig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>