Re: Purpose of EXTRARES in Vugen Script? (690 Views)
Reply
qz
Occasional Advisor
qz
Posts: 30
Registered: ‎07-31-2013
Message 1 of 6 (893 Views)

Purpose of EXTRARES in Vugen Script?

[ Edited ]

Hi Experts,

 

 EXTRARES generally contains non-html resources, Does that need to commented or kept in a script what is the best practice.

 

Suppose I comment out EXTRARES, and my script gives me some 5 sec as response time, and if I don't if I have 9 sec as response time. 

 

How to I find out that which way is the correct...

CASE 1: Commenting out EXTRARES - suppose 5 sec response time is achieved in loadtesting, whereas in real time if it is taking 7 sec to load completely, then my entire loadtest is a failure if my SLA is 6 and I am getting response time as 5 sec, whereas bottleneck of high response time is not solved with reference to SLA here.

 

CASE 2: Having EXTRARES - suppose 9 sec response time is achieved with EXTRARES and in real time it takes 6 sec to load a particular page which is within SLA, then my entire loadtest is a failure here since I would be trying to think there is a bottleneck with high response time in loadtest.

 

So is it best practice to use EXTRARES or not in load testing and what is its impact?      

Occasional Advisor
Mabola
Posts: 6
Registered: ‎05-21-2012
Message 2 of 6 (865 Views)

Re: Purpose of EXTRARES in Vugen Script?

Hello,

EXTRARES are usually the gifs, images and javascripts that you have running on the page that you are trying to capture. These get recorded as part of your script based on your recording option. You can choose not to record these components also. The EXTRARES are loaded parallely as your page gets loaded in order to get the complete page. The EXTRARES has a significant impact on your response time of the page and you can check this by commenting out the EXTRARES part.It is normally advisable to keep the EXTRARES and work as it simulates the actual page loading and hence gives you the right performance numbers.

 

I want to add that this reponse was given by Prashanth Thimmavajjala from another similar topic, however I wanted to share it with you.

 

Hope can helps you.

Occasional Advisor
DagoCR
Posts: 7
Registered: ‎01-17-2014
Message 3 of 6 (862 Views)

Re: Purpose of EXTRARES in Vugen Script?

hi, this would be a complex answer.

 

- As you may know, the EXTRARES means, EXTRA Resources. When client application send the first request, server send the main frame back. However, resources like images, applets, CSS files, Javascript, are commonly found in different locations. So, each of them needs an additional GET call to download those resources. Each of those GET are an EXTRARES line. Said this, we are user see just one call, while the application can make as much calls as resources needs to download.

 

- Recording EXTRARES or not recording doens't mean, download or not download those EXTRARES during replay. This just change the way as we see the script.

 

- What is the best practice? We don't have best practice. This depends on how your application and environment behaves. So that, you can make the script to behave similar to the real browser or application through Run- Time Settings. For example:

     

1.    * What is the browser used in your environment? or the browser used by the users that access the application?

 

- This can be changed in Run-Time Settings--Browser Emulation. Changing the browser change how the Caché memory is handled, number of concurrent connections, cookies and headers. So, this may affect.

 

2.   * Do the users access the application frequently and have rights to save temp files during the navigation? I

 

- If so, that means the extra resources are saved in temp files for the browser and they are not downloaded again after the first time. So, downloading the page will be faster. In this case, we can change settings like:

/ Simulate Browser Cache

/ Download non-HTML Resources

/ Simulate a new user on each iteration - Clear cache on each iteration.

 

3.   * Emulate the proper Network Spped in Run-Time Settings--Network-- Speed Simulation

 

 

Finally, consider that LoadRunner reports the transaction time from the moment in which client sends the request until the moment in which the last buffer was received from the server. Depending on the application, and of course, the browser, there is an additional time for rendering the page. So, this is client side and is not related to server response. So, we as users can see the application is taking more time than Vugen (commonly). 

 

I hope this helps. Please let me know if you have more questions.

qz
Occasional Advisor
qz
Posts: 30
Registered: ‎07-31-2013
Message 4 of 6 (856 Views)

Re: Purpose of EXTRARES in Vugen Script?

Hi,

 

Thanks for the reply.

 

I am trying to understand the 50-100% difference between the Repsonse times of same trasacations based on - including and removal of EXTRARES in the script.

 

 What do you mean by "Recording EXTRARES or not recording doens't mean, download or not download those EXTRARES during replay. This just change the way as we see the script."

 

Do you mean that when an action is performed at browser end, there will be a request generated for that particular action and it will be processed to the server and from the server end with respect to EXTRARES, the web container will fetch required components and will send them in server response, which are been recorded as EXTRARES in the script.

 

So while replaying the script these EXTRARES, which are beem recorded in the script are creating additional handshake to the server every time when script runs, like you siad ""Each of them needs an additional GET call to download those resources. Each of those GET are an EXTRARES line ".

whereas eventhough when we comment out/remove these EXTRARES in script.... while replaying the script, the server response by default will contain EXTRARES info which are already listed out in script that are been commented out.

 

Thanks 

 

 

 

Occasional Contributor
Nilesh_PT_Exprt
Posts: 3
Registered: ‎02-28-2014
Message 5 of 6 (782 Views)

Re: Purpose of EXTRARES in Vugen Script?

HI Dago ,

Its really a nice answer . Still i have confusion between the commenting the extrares while replaying . How it is related to downloading the static component. Its very confusing . Please clarify in detail .
Frequent Visitor
skokiedon
Posts: 2
Registered: ‎04-09-2014
Message 6 of 6 (690 Views)

Re: Purpose of EXTRARES in Vugen Script?

[ Edited ]

I've also noticed that even if EXTRARES have been commented out, resources are still downloaded during vugen replay that were present during recording. (ie images).  Can someone answer what defining EXTRARES does vs the "Download non-HTML resources" option in the Run-Time Settings?

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.