You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by James Hill <ev...@gmail.com> on 2007/07/03 07:28:16 UTC

Retrieving embedded resources vs. proxy recording

Hi list.

I have a question about the proxy recorder. When I use it to hit a
page it retrieves everything on that page, including .js, images,
.aspx, etc. etc. I can then put this into a test plan. More on that in
a bit.

When I just hit the page in question with a HTTP Request and tick the
"Retrieve All Embedded Resources from HTML Files" option and view the
results in a tree, I don't retrieve the same amount of data that I do
using the proxy. At first I thought it was because I wasn't retrieving
data that wasn't in the domain (i.e. called from an external site,
usually in the form of javascript) but some of the embedded resources
are sourced externally.

What would be the reason for the discrepancy?

The test plan I'm using could probably do with some work too but I
don't know how to set it up any better than it currently is. For the
content gathered using the proxy recorder:

Thread Group
+ HTTP Request (homepage)
+ + HTTP Request (homepage element 1)
|
|
|
|
+ + HTTP Request (homepage element x)

All other homepage elements are children of the original request to
the homepage. Is there a better way of organising it? I'm simply
trying to get the response time for this page, but the figures tend to
differ markedly depending on whether I use the above plan or the one
that only hits the homepage but also grabs the embedded resources.

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


Re: Retrieving embedded resources vs. proxy recording

Posted by sebb <se...@gmail.com>.
On 03/07/07, James Hill <ev...@gmail.com> wrote:
> Hi list.
>
> I have a question about the proxy recorder. When I use it to hit a
> page it retrieves everything on that page, including .js, images,
> .aspx, etc. etc. I can then put this into a test plan. More on that in
> a bit.
>
> When I just hit the page in question with a HTTP Request and tick the
> "Retrieve All Embedded Resources from HTML Files" option and view the
> results in a tree, I don't retrieve the same amount of data that I do
> using the proxy. At first I thought it was because I wasn't retrieving
> data that wasn't in the domain (i.e. called from an external site,
> usually in the form of javascript) but some of the embedded resources
> are sourced externally.
>
> What would be the reason for the discrepancy?

The Proxy records what the browser requests.
The HTTP Request has to scan the page for the resources to downloaded,
and it may not find all the same resources. This could either be
because of a bug in the scanning code (some have been fixed since 2.2)
or because JMeter does not interpret Javascript.

> The test plan I'm using could probably do with some work too but I
> don't know how to set it up any better than it currently is. For the
> content gathered using the proxy recorder:
>
> Thread Group
> + HTTP Request (homepage)
> + + HTTP Request (homepage element 1)
> |
> |
> |
> |
> + + HTTP Request (homepage element x)
>
> All other homepage elements are children of the original request to
> the homepage. Is there a better way of organising it? I'm simply
> trying to get the response time for this page, but the figures tend to
> differ markedly depending on whether I use the above plan or the one
> that only hits the homepage but also grabs the embedded resources.

The response time for a page depends on a lot of factors, not least
the browser that is used - some browsers are quicker than others.

JMeter is primarily a server testing tool, and is not a browser emulator.

> ---------------------------------------------------------------------
> 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