You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Prakash Palnati <pr...@snapwiz.com> on 2016/04/13 14:41:38 UTC

Retrieve All Embedded Resources from HTML files not working

Hi,

The checkbox "Retrieve All Embedded Resources from HTML files" not working
..it doesn't download any embedded resources.

I have build a complex tesplan  with multiple scenarios in it. Now I want
to run the performance test with embedded resources included.It is
diffiuclt now to record each and every flow now to include them.

Thanks in advance.

Re: Retrieve All Embedded Resources from HTML files not working

Posted by Bob <b....@gmail.com>.
I would probably add manually all sub-requests and group them inside 
Transaction Controller. Any other ideas?

On 13/04/16 18:55, Prakash Palnati wrote:
> It looks like our dev team is not loading embedded resources by URL mapping
> instead they use some require.js to load the css and js files.


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


Re: Retrieve All Embedded Resources from HTML files not working

Posted by Prakash Palnati <pr...@snapwiz.com>.
Yes. Figured that out yesterday.Worked when I call the page along with GET
or POST.All embedded resources were downloaded when the page is loaded and
stored in cache.

Thanks Robin, Bob.



On Wed, Apr 13, 2016 at 8:07 PM, Robin D. Wilson <rw...@gmail.com> wrote:

> I think you answered your own question. The Retrieve All Embedded
> Resources doesn't execute any JavaScript or CSS, it just gets the things
> that are directly included in pure HTML tags within the page, so things
> like:
>
>         <script src=...>
>         <img src=...>
>         <link rel="stylesheet" type="text/css" href=...>
>
> etc.
>
> Anything that is supposed to happen because of a JavaScript, CSS, Flash,
> etc. type of "code execution" - that will not happen with "Retrieve all
> Embedded Resources".
>
> For the CSS and JavaScript type files, you would probably need to directly
> request them as separate HTTP requests. The trick to it is that none of
> that stuff will actually matter for your tests - since none of it gets
> processed like a browser anyway.
>
> --
> Robin D. Wilson
> Voice: 512-426-3929
> rwilson2@gmail.com
>
>
> -----Original Message-----
> From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com]
> Sent: Wednesday, April 13, 2016 8:55 AM
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Re: Retrieve All Embedded Resources from HTML files not working
>
> Hi,
>
> It looks like our dev team is not loading embedded resources by URL
> mapping instead they use some require.js to load the css and js files.
>
> Robin,
>
> Thank you and please find my answers below,
> 1)     What version of JMeter are you using? ... 2.13
>
> 2)     How are you using it (command-line, GUI)?... GUI
>
> 3)     Which OS are you running JMeter from (Windows, Linux, etc.)?..
> Ubuntu
>
> 4)     How are you observing the behavior (e.g., why do you think it isn't
> working)?
>
> No resources (css,js) in the view results tree listener.
>
> 5)     How is your Embed setup (there is a field for a regex to match
> patterns you want to retrieve - did you setup a pattern for this, and
> there are other options - what are they set to)?.. they use require.is to
> download embedded resources.
>
>
>
> Thanks for the quick  reply.
>
> Tried with simple registration in our webapp. doesn’t seem to be
> downloading anything.
>
> Will there be any other reasons or pre-requisites to make this happen.
>
> PFA of my jmx file.
>
> On Wed, Apr 13, 2016 at 6:28 PM, Robin D. Wilson <rw...@gmail.com>
> wrote:
>
> > Have you tried a simplified test with a single page retrieving all
> > embedded resources? I'm guessing the error is not in the feature that
> > works for everyone else - but somewhere else in your 'complex testplan'.
> >
> > The best way to figure out this stuff is to isolate the problem to the
> > simplest test case first, then that will give you a place to focus
> > your attention in your complex test cases.
> >
> >
> > --
> > Robin D. Wilson
> > Voice: 512-426-3929
> > rwilson2@gmail.com
> >
> > -----Original Message-----
> > From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com]
> > Sent: Wednesday, April 13, 2016 7:42 AM
> > To: JMeter Users List <us...@jmeter.apache.org>
> > Subject: Retrieve All Embedded Resources from HTML files not working
> >
> > Hi,
> >
> > The checkbox "Retrieve All Embedded Resources from HTML files" not
> > working ..it doesn't download any embedded resources.
> >
> > I have build a complex tesplan  with multiple scenarios in it. Now I
> > want to run the performance test with embedded resources included.It
> > is diffiuclt now to record each and every flow now to include them.
> >
> > Thanks in advance.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

RE: Retrieve All Embedded Resources from HTML files not working

Posted by "Robin D. Wilson" <rw...@gmail.com>.
I think you answered your own question. The Retrieve All Embedded Resources doesn't execute any JavaScript or CSS, it just gets the things that are directly included in pure HTML tags within the page, so things like:

	<script src=...>
	<img src=...>
	<link rel="stylesheet" type="text/css" href=...>

etc.

Anything that is supposed to happen because of a JavaScript, CSS, Flash, etc. type of "code execution" - that will not happen with "Retrieve all Embedded Resources".

For the CSS and JavaScript type files, you would probably need to directly request them as separate HTTP requests. The trick to it is that none of that stuff will actually matter for your tests - since none of it gets processed like a browser anyway.

--
Robin D. Wilson
Voice: 512-426-3929
rwilson2@gmail.com


-----Original Message-----
From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com] 
Sent: Wednesday, April 13, 2016 8:55 AM
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: Retrieve All Embedded Resources from HTML files not working

Hi,

It looks like our dev team is not loading embedded resources by URL mapping instead they use some require.js to load the css and js files.

Robin,

Thank you and please find my answers below,
1)     What version of JMeter are you using? ... 2.13

2)     How are you using it (command-line, GUI)?... GUI

3)     Which OS are you running JMeter from (Windows, Linux, etc.)?.. Ubuntu

4)     How are you observing the behavior (e.g., why do you think it isn't
working)?

No resources (css,js) in the view results tree listener.

5)     How is your Embed setup (there is a field for a regex to match
patterns you want to retrieve - did you setup a pattern for this, and there are other options - what are they set to)?.. they use require.is to download embedded resources.



Thanks for the quick  reply.

Tried with simple registration in our webapp. doesn’t seem to be downloading anything.

Will there be any other reasons or pre-requisites to make this happen.

PFA of my jmx file.

On Wed, Apr 13, 2016 at 6:28 PM, Robin D. Wilson <rw...@gmail.com> wrote:

> Have you tried a simplified test with a single page retrieving all 
> embedded resources? I'm guessing the error is not in the feature that 
> works for everyone else - but somewhere else in your 'complex testplan'.
>
> The best way to figure out this stuff is to isolate the problem to the 
> simplest test case first, then that will give you a place to focus 
> your attention in your complex test cases.
>
>
> --
> Robin D. Wilson
> Voice: 512-426-3929
> rwilson2@gmail.com
>
> -----Original Message-----
> From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com]
> Sent: Wednesday, April 13, 2016 7:42 AM
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Retrieve All Embedded Resources from HTML files not working
>
> Hi,
>
> The checkbox "Retrieve All Embedded Resources from HTML files" not 
> working ..it doesn't download any embedded resources.
>
> I have build a complex tesplan  with multiple scenarios in it. Now I 
> want to run the performance test with embedded resources included.It 
> is diffiuclt now to record each and every flow now to include them.
>
> Thanks in advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>


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


Re: Retrieve All Embedded Resources from HTML files not working

Posted by Prakash Palnati <pr...@snapwiz.com>.
Hi,

It looks like our dev team is not loading embedded resources by URL mapping
instead they use some require.js to load the css and js files.

Robin,

Thank you and please find my answers below,
1)     What version of JMeter are you using? ... 2.13

2)     How are you using it (command-line, GUI)?... GUI

3)     Which OS are you running JMeter from (Windows, Linux, etc.)?.. Ubuntu

4)     How are you observing the behavior (e.g., why do you think it isn't
working)?

No resources (css,js) in the view results tree listener.

5)     How is your Embed setup (there is a field for a regex to match
patterns you want to retrieve - did you setup a pattern for this, and there
are other options - what are they set to)?.. they use require.is to
download embedded resources.



Thanks for the quick  reply.

Tried with simple registration in our webapp. doesn’t seem to be
downloading anything.

Will there be any other reasons or pre-requisites to make this happen.

PFA of my jmx file.

On Wed, Apr 13, 2016 at 6:28 PM, Robin D. Wilson <rw...@gmail.com> wrote:

> Have you tried a simplified test with a single page retrieving all
> embedded resources? I'm guessing the error is not in the feature that works
> for everyone else - but somewhere else in your 'complex testplan'.
>
> The best way to figure out this stuff is to isolate the problem to the
> simplest test case first, then that will give you a place to focus your
> attention in your complex test cases.
>
>
> --
> Robin D. Wilson
> Voice: 512-426-3929
> rwilson2@gmail.com
>
> -----Original Message-----
> From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com]
> Sent: Wednesday, April 13, 2016 7:42 AM
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Retrieve All Embedded Resources from HTML files not working
>
> Hi,
>
> The checkbox "Retrieve All Embedded Resources from HTML files" not working
> ..it doesn't download any embedded resources.
>
> I have build a complex tesplan  with multiple scenarios in it. Now I want
> to run the performance test with embedded resources included.It is
> diffiuclt now to record each and every flow now to include them.
>
> Thanks in advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

RE: Retrieve All Embedded Resources from HTML files not working

Posted by "Robin D. Wilson" <rw...@gmail.com>.
That is hard to say in a void... So many questions come to mind:

 

1)     What version of JMeter are you using?

2)     How are you using it (command-line, GUI)?

3)     Which OS are you running JMeter from (Windows, Linux, etc.)?

4)     How are you observing the behavior (e.g., why do you think it isn't working)?

5)     How is your Embed setup (there is a field for a regex to match patterns you want to retrieve - did you setup a pattern for this, and there are other options - what are they set to)?

 

Try to think of all the information you would need to figure out something like this - and then try to provide that as part of your question.

 

--

Robin D. Wilson

Voice: 512-426-3929

 <ma...@gmail.com> rwilson2@gmail.com

 

From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com] 
Sent: Wednesday, April 13, 2016 8:13 AM
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: Retrieve All Embedded Resources from HTML files not working

 

Thanks for the quick  reply.

Tried with simple registration in our webapp. doesn’t seem to be downloading anything. 

Will there be any other reasons or pre-requisites to make this happen.

PFA of my jmx file.

 

On Wed, Apr 13, 2016 at 6:28 PM, Robin D. Wilson <rwilson2@gmail.com <ma...@gmail.com> > wrote:

Have you tried a simplified test with a single page retrieving all embedded resources? I'm guessing the error is not in the feature that works for everyone else - but somewhere else in your 'complex testplan'.

The best way to figure out this stuff is to isolate the problem to the simplest test case first, then that will give you a place to focus your attention in your complex test cases.


--
Robin D. Wilson
Voice: 512-426-3929
rwilson2@gmail.com <ma...@gmail.com> 


-----Original Message-----
From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com <ma...@snapwiz.com> ]
Sent: Wednesday, April 13, 2016 7:42 AM
To: JMeter Users List <user@jmeter.apache.org <ma...@jmeter.apache.org> >
Subject: Retrieve All Embedded Resources from HTML files not working

Hi,

The checkbox "Retrieve All Embedded Resources from HTML files" not working ..it doesn't download any embedded resources.

I have build a complex tesplan  with multiple scenarios in it. Now I want to run the performance test with embedded resources included.It is diffiuclt now to record each and every flow now to include them.

Thanks in advance.



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

 


Re: Retrieve All Embedded Resources from HTML files not working

Posted by Prakash Palnati <pr...@snapwiz.com>.
Thanks for the quick  reply.

Tried with simple registration in our webapp. doesn’t seem to be
downloading anything.

Will there be any other reasons or pre-requisites to make this happen.

PFA of my jmx file.

On Wed, Apr 13, 2016 at 6:28 PM, Robin D. Wilson <rw...@gmail.com> wrote:

> Have you tried a simplified test with a single page retrieving all
> embedded resources? I'm guessing the error is not in the feature that works
> for everyone else - but somewhere else in your 'complex testplan'.
>
> The best way to figure out this stuff is to isolate the problem to the
> simplest test case first, then that will give you a place to focus your
> attention in your complex test cases.
>
>
> --
> Robin D. Wilson
> Voice: 512-426-3929
> rwilson2@gmail.com
>
> -----Original Message-----
> From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com]
> Sent: Wednesday, April 13, 2016 7:42 AM
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Retrieve All Embedded Resources from HTML files not working
>
> Hi,
>
> The checkbox "Retrieve All Embedded Resources from HTML files" not working
> ..it doesn't download any embedded resources.
>
> I have build a complex tesplan  with multiple scenarios in it. Now I want
> to run the performance test with embedded resources included.It is
> diffiuclt now to record each and every flow now to include them.
>
> Thanks in advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

RE: Retrieve All Embedded Resources from HTML files not working

Posted by "Robin D. Wilson" <rw...@gmail.com>.
Have you tried a simplified test with a single page retrieving all embedded resources? I'm guessing the error is not in the feature that works for everyone else - but somewhere else in your 'complex testplan'.

The best way to figure out this stuff is to isolate the problem to the simplest test case first, then that will give you a place to focus your attention in your complex test cases.


--
Robin D. Wilson
Voice: 512-426-3929
rwilson2@gmail.com

-----Original Message-----
From: Prakash Palnati [mailto:prakash.palnati@snapwiz.com] 
Sent: Wednesday, April 13, 2016 7:42 AM
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Retrieve All Embedded Resources from HTML files not working

Hi,

The checkbox "Retrieve All Embedded Resources from HTML files" not working ..it doesn't download any embedded resources.

I have build a complex tesplan  with multiple scenarios in it. Now I want to run the performance test with embedded resources included.It is diffiuclt now to record each and every flow now to include them.

Thanks in advance.


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


Re: Retrieve All Embedded Resources from HTML files not working

Posted by UBIK LOAD PACK Support <su...@ubikloadpack.com>.
Hi,
Most probably your regexp is wrong.

Regards

On Wednesday, April 13, 2016, Prakash Palnati <pr...@snapwiz.com>
wrote:

> Hi,
>
> The checkbox "Retrieve All Embedded Resources from HTML files" not working
> ..it doesn't download any embedded resources.
>
> I have build a complex tesplan  with multiple scenarios in it. Now I want
> to run the performance test with embedded resources included.It is
> diffiuclt now to record each and every flow now to include them.
>
> Thanks in advance.
>


-- 

Regards
Ubik Load Pack <http://ubikloadpack.com> Team
Follow us on Twitter <http://twitter.com/ubikloadpack>


Cordialement
L'équipe Ubik Load Pack <http://ubikloadpack.com>
Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>