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
[email protected]


-----Original Message-----
From: Prakash Palnati [mailto:[email protected]] 
Sent: Wednesday, April 13, 2016 8:55 AM
To: JMeter Users List <[email protected]>
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 <[email protected]> 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
> [email protected]
>
> -----Original Message-----
> From: Prakash Palnati [mailto:[email protected]]
> Sent: Wednesday, April 13, 2016 7:42 AM
> To: JMeter Users List <[email protected]>
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to