Jmeter- Need to download one time retrieving embedded resources for request












-1















My application contains home page and login page, each page contains 4 request
suppose 1 request contains 14 embedded resources, 2 request also contains same embedded resources + other additional resources, 3 request also smae
but here my question is how to download only one time in 1 request, if embedded resources are repeated for 2/3/4 request..i simply need to ignore or should take from cache..so that response time can be manager as same as in browser.



Thanks in advance for your help and appreciated
Bhaskar










share|improve this question























  • The Title can be updated to "Pick embedded resources from cache for Jmeter", also add some examples of what the emebedded resources are like js/css etc. It will help if request 1, request 2 is made into a numbered list.

    – Mahesh
    Nov 16 '18 at 8:57













  • thanks you, Mahesh..Actually my application contains lot of request..each request contains similar kind of embedded resources+other unique resources...but i need similar embedded resources should be download at once, remaining request needs simply ignore to download them and unique embedded resources to be downloaded...why because response time is very high as compared to browser

    – Bhaskar T
    Nov 16 '18 at 14:30
















-1















My application contains home page and login page, each page contains 4 request
suppose 1 request contains 14 embedded resources, 2 request also contains same embedded resources + other additional resources, 3 request also smae
but here my question is how to download only one time in 1 request, if embedded resources are repeated for 2/3/4 request..i simply need to ignore or should take from cache..so that response time can be manager as same as in browser.



Thanks in advance for your help and appreciated
Bhaskar










share|improve this question























  • The Title can be updated to "Pick embedded resources from cache for Jmeter", also add some examples of what the emebedded resources are like js/css etc. It will help if request 1, request 2 is made into a numbered list.

    – Mahesh
    Nov 16 '18 at 8:57













  • thanks you, Mahesh..Actually my application contains lot of request..each request contains similar kind of embedded resources+other unique resources...but i need similar embedded resources should be download at once, remaining request needs simply ignore to download them and unique embedded resources to be downloaded...why because response time is very high as compared to browser

    – Bhaskar T
    Nov 16 '18 at 14:30














-1












-1








-1








My application contains home page and login page, each page contains 4 request
suppose 1 request contains 14 embedded resources, 2 request also contains same embedded resources + other additional resources, 3 request also smae
but here my question is how to download only one time in 1 request, if embedded resources are repeated for 2/3/4 request..i simply need to ignore or should take from cache..so that response time can be manager as same as in browser.



Thanks in advance for your help and appreciated
Bhaskar










share|improve this question














My application contains home page and login page, each page contains 4 request
suppose 1 request contains 14 embedded resources, 2 request also contains same embedded resources + other additional resources, 3 request also smae
but here my question is how to download only one time in 1 request, if embedded resources are repeated for 2/3/4 request..i simply need to ignore or should take from cache..so that response time can be manager as same as in browser.



Thanks in advance for your help and appreciated
Bhaskar







jmeter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 16 '18 at 8:31









Bhaskar TBhaskar T

11




11













  • The Title can be updated to "Pick embedded resources from cache for Jmeter", also add some examples of what the emebedded resources are like js/css etc. It will help if request 1, request 2 is made into a numbered list.

    – Mahesh
    Nov 16 '18 at 8:57













  • thanks you, Mahesh..Actually my application contains lot of request..each request contains similar kind of embedded resources+other unique resources...but i need similar embedded resources should be download at once, remaining request needs simply ignore to download them and unique embedded resources to be downloaded...why because response time is very high as compared to browser

    – Bhaskar T
    Nov 16 '18 at 14:30



















  • The Title can be updated to "Pick embedded resources from cache for Jmeter", also add some examples of what the emebedded resources are like js/css etc. It will help if request 1, request 2 is made into a numbered list.

    – Mahesh
    Nov 16 '18 at 8:57













  • thanks you, Mahesh..Actually my application contains lot of request..each request contains similar kind of embedded resources+other unique resources...but i need similar embedded resources should be download at once, remaining request needs simply ignore to download them and unique embedded resources to be downloaded...why because response time is very high as compared to browser

    – Bhaskar T
    Nov 16 '18 at 14:30

















The Title can be updated to "Pick embedded resources from cache for Jmeter", also add some examples of what the emebedded resources are like js/css etc. It will help if request 1, request 2 is made into a numbered list.

– Mahesh
Nov 16 '18 at 8:57







The Title can be updated to "Pick embedded resources from cache for Jmeter", also add some examples of what the emebedded resources are like js/css etc. It will help if request 1, request 2 is made into a numbered list.

– Mahesh
Nov 16 '18 at 8:57















thanks you, Mahesh..Actually my application contains lot of request..each request contains similar kind of embedded resources+other unique resources...but i need similar embedded resources should be download at once, remaining request needs simply ignore to download them and unique embedded resources to be downloaded...why because response time is very high as compared to browser

– Bhaskar T
Nov 16 '18 at 14:30





thanks you, Mahesh..Actually my application contains lot of request..each request contains similar kind of embedded resources+other unique resources...but i need similar embedded resources should be download at once, remaining request needs simply ignore to download them and unique embedded resources to be downloaded...why because response time is very high as compared to browser

– Bhaskar T
Nov 16 '18 at 14:30












1 Answer
1






active

oldest

votes


















0














It should be enough to add HTTP Cache Manager to your Test Plan





  • Without the HTTP Cache Manager JMeter will request all the embedded resources for each HTTP Request



    enter image description here




  • And if you add the HTTP Cache Manager JMeter will execute the calls for the embedded resources only if the relevant images, scripts, styles, fonts, etc. are not present in cache, in other words JMeter will respect Cache-Control and friends.



    enter image description here




This is exactly what real browsers do. Check out Using the HTTP Cache Manager article for more detailed information if needed.






share|improve this answer
























  • Thanks a lot, Dmitri, Actually it's downloading every time and calculating into response time hence it leads very high response time as compared to browser..I configured as you mentioned that adding https cache manager and selected retrieved embedded resources parallel download-6...but still it's not matching response time with browser..Please help how can i make it as close real to browser behaviour

    – Bhaskar T
    Nov 20 '18 at 11:59











  • No one will be able to help unless you share more information, i.e. request details. One thing I can think of is that your browser doesn't make actual requests and returns embedded resources from its cache. Try clearing your browser history including cache and retry the request in browser. Other reason could be that browser sends Accept-Encoding header therefore receives compressed response. You can achieve the same using HTTP Header Manager

    – Dmitri T
    Nov 20 '18 at 12:05













  • Thanks Dmitri for Clarifying the issue, i have added images in following google drive link drive.google.com/open?id=10UZfhWzme-o9ILSMyWcco-ePxhipxIxV

    – Bhaskar T
    Nov 20 '18 at 18:02











  • My application first Transaction-1,2,3,4,5 requests contain lot of embedded resources within it....2nd transaction having 4 requests contain similar kind of embedded resources + additional embedded resources....but it's downloading all the time and counting the time in everywhere. please have a look at screen shots and you get to know and please let me know how to configure effectively...Thanks a lot for your help!!1

    – Bhaskar T
    Nov 20 '18 at 18:08











  • Hi Dimtri, here is the code JMX file..drive.google.com/open?id=18iWX36mBsQkASW9BPdyy0OnqvqZm_ujA I see the big difference in browser and jmeter when I run them.please suggest how to configure to simulate to real browser and similar response times in both jmeter and browser, Thank you so much for your effort to debug this issue

    – Bhaskar T
    Nov 21 '18 at 7:34











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53334066%2fjmeter-need-to-download-one-time-retrieving-embedded-resources-for-request%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














It should be enough to add HTTP Cache Manager to your Test Plan





  • Without the HTTP Cache Manager JMeter will request all the embedded resources for each HTTP Request



    enter image description here




  • And if you add the HTTP Cache Manager JMeter will execute the calls for the embedded resources only if the relevant images, scripts, styles, fonts, etc. are not present in cache, in other words JMeter will respect Cache-Control and friends.



    enter image description here




This is exactly what real browsers do. Check out Using the HTTP Cache Manager article for more detailed information if needed.






share|improve this answer
























  • Thanks a lot, Dmitri, Actually it's downloading every time and calculating into response time hence it leads very high response time as compared to browser..I configured as you mentioned that adding https cache manager and selected retrieved embedded resources parallel download-6...but still it's not matching response time with browser..Please help how can i make it as close real to browser behaviour

    – Bhaskar T
    Nov 20 '18 at 11:59











  • No one will be able to help unless you share more information, i.e. request details. One thing I can think of is that your browser doesn't make actual requests and returns embedded resources from its cache. Try clearing your browser history including cache and retry the request in browser. Other reason could be that browser sends Accept-Encoding header therefore receives compressed response. You can achieve the same using HTTP Header Manager

    – Dmitri T
    Nov 20 '18 at 12:05













  • Thanks Dmitri for Clarifying the issue, i have added images in following google drive link drive.google.com/open?id=10UZfhWzme-o9ILSMyWcco-ePxhipxIxV

    – Bhaskar T
    Nov 20 '18 at 18:02











  • My application first Transaction-1,2,3,4,5 requests contain lot of embedded resources within it....2nd transaction having 4 requests contain similar kind of embedded resources + additional embedded resources....but it's downloading all the time and counting the time in everywhere. please have a look at screen shots and you get to know and please let me know how to configure effectively...Thanks a lot for your help!!1

    – Bhaskar T
    Nov 20 '18 at 18:08











  • Hi Dimtri, here is the code JMX file..drive.google.com/open?id=18iWX36mBsQkASW9BPdyy0OnqvqZm_ujA I see the big difference in browser and jmeter when I run them.please suggest how to configure to simulate to real browser and similar response times in both jmeter and browser, Thank you so much for your effort to debug this issue

    – Bhaskar T
    Nov 21 '18 at 7:34
















0














It should be enough to add HTTP Cache Manager to your Test Plan





  • Without the HTTP Cache Manager JMeter will request all the embedded resources for each HTTP Request



    enter image description here




  • And if you add the HTTP Cache Manager JMeter will execute the calls for the embedded resources only if the relevant images, scripts, styles, fonts, etc. are not present in cache, in other words JMeter will respect Cache-Control and friends.



    enter image description here




This is exactly what real browsers do. Check out Using the HTTP Cache Manager article for more detailed information if needed.






share|improve this answer
























  • Thanks a lot, Dmitri, Actually it's downloading every time and calculating into response time hence it leads very high response time as compared to browser..I configured as you mentioned that adding https cache manager and selected retrieved embedded resources parallel download-6...but still it's not matching response time with browser..Please help how can i make it as close real to browser behaviour

    – Bhaskar T
    Nov 20 '18 at 11:59











  • No one will be able to help unless you share more information, i.e. request details. One thing I can think of is that your browser doesn't make actual requests and returns embedded resources from its cache. Try clearing your browser history including cache and retry the request in browser. Other reason could be that browser sends Accept-Encoding header therefore receives compressed response. You can achieve the same using HTTP Header Manager

    – Dmitri T
    Nov 20 '18 at 12:05













  • Thanks Dmitri for Clarifying the issue, i have added images in following google drive link drive.google.com/open?id=10UZfhWzme-o9ILSMyWcco-ePxhipxIxV

    – Bhaskar T
    Nov 20 '18 at 18:02











  • My application first Transaction-1,2,3,4,5 requests contain lot of embedded resources within it....2nd transaction having 4 requests contain similar kind of embedded resources + additional embedded resources....but it's downloading all the time and counting the time in everywhere. please have a look at screen shots and you get to know and please let me know how to configure effectively...Thanks a lot for your help!!1

    – Bhaskar T
    Nov 20 '18 at 18:08











  • Hi Dimtri, here is the code JMX file..drive.google.com/open?id=18iWX36mBsQkASW9BPdyy0OnqvqZm_ujA I see the big difference in browser and jmeter when I run them.please suggest how to configure to simulate to real browser and similar response times in both jmeter and browser, Thank you so much for your effort to debug this issue

    – Bhaskar T
    Nov 21 '18 at 7:34














0












0








0







It should be enough to add HTTP Cache Manager to your Test Plan





  • Without the HTTP Cache Manager JMeter will request all the embedded resources for each HTTP Request



    enter image description here




  • And if you add the HTTP Cache Manager JMeter will execute the calls for the embedded resources only if the relevant images, scripts, styles, fonts, etc. are not present in cache, in other words JMeter will respect Cache-Control and friends.



    enter image description here




This is exactly what real browsers do. Check out Using the HTTP Cache Manager article for more detailed information if needed.






share|improve this answer













It should be enough to add HTTP Cache Manager to your Test Plan





  • Without the HTTP Cache Manager JMeter will request all the embedded resources for each HTTP Request



    enter image description here




  • And if you add the HTTP Cache Manager JMeter will execute the calls for the embedded resources only if the relevant images, scripts, styles, fonts, etc. are not present in cache, in other words JMeter will respect Cache-Control and friends.



    enter image description here




This is exactly what real browsers do. Check out Using the HTTP Cache Manager article for more detailed information if needed.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 '18 at 15:35









Dmitri TDmitri T

70.4k33458




70.4k33458













  • Thanks a lot, Dmitri, Actually it's downloading every time and calculating into response time hence it leads very high response time as compared to browser..I configured as you mentioned that adding https cache manager and selected retrieved embedded resources parallel download-6...but still it's not matching response time with browser..Please help how can i make it as close real to browser behaviour

    – Bhaskar T
    Nov 20 '18 at 11:59











  • No one will be able to help unless you share more information, i.e. request details. One thing I can think of is that your browser doesn't make actual requests and returns embedded resources from its cache. Try clearing your browser history including cache and retry the request in browser. Other reason could be that browser sends Accept-Encoding header therefore receives compressed response. You can achieve the same using HTTP Header Manager

    – Dmitri T
    Nov 20 '18 at 12:05













  • Thanks Dmitri for Clarifying the issue, i have added images in following google drive link drive.google.com/open?id=10UZfhWzme-o9ILSMyWcco-ePxhipxIxV

    – Bhaskar T
    Nov 20 '18 at 18:02











  • My application first Transaction-1,2,3,4,5 requests contain lot of embedded resources within it....2nd transaction having 4 requests contain similar kind of embedded resources + additional embedded resources....but it's downloading all the time and counting the time in everywhere. please have a look at screen shots and you get to know and please let me know how to configure effectively...Thanks a lot for your help!!1

    – Bhaskar T
    Nov 20 '18 at 18:08











  • Hi Dimtri, here is the code JMX file..drive.google.com/open?id=18iWX36mBsQkASW9BPdyy0OnqvqZm_ujA I see the big difference in browser and jmeter when I run them.please suggest how to configure to simulate to real browser and similar response times in both jmeter and browser, Thank you so much for your effort to debug this issue

    – Bhaskar T
    Nov 21 '18 at 7:34



















  • Thanks a lot, Dmitri, Actually it's downloading every time and calculating into response time hence it leads very high response time as compared to browser..I configured as you mentioned that adding https cache manager and selected retrieved embedded resources parallel download-6...but still it's not matching response time with browser..Please help how can i make it as close real to browser behaviour

    – Bhaskar T
    Nov 20 '18 at 11:59











  • No one will be able to help unless you share more information, i.e. request details. One thing I can think of is that your browser doesn't make actual requests and returns embedded resources from its cache. Try clearing your browser history including cache and retry the request in browser. Other reason could be that browser sends Accept-Encoding header therefore receives compressed response. You can achieve the same using HTTP Header Manager

    – Dmitri T
    Nov 20 '18 at 12:05













  • Thanks Dmitri for Clarifying the issue, i have added images in following google drive link drive.google.com/open?id=10UZfhWzme-o9ILSMyWcco-ePxhipxIxV

    – Bhaskar T
    Nov 20 '18 at 18:02











  • My application first Transaction-1,2,3,4,5 requests contain lot of embedded resources within it....2nd transaction having 4 requests contain similar kind of embedded resources + additional embedded resources....but it's downloading all the time and counting the time in everywhere. please have a look at screen shots and you get to know and please let me know how to configure effectively...Thanks a lot for your help!!1

    – Bhaskar T
    Nov 20 '18 at 18:08











  • Hi Dimtri, here is the code JMX file..drive.google.com/open?id=18iWX36mBsQkASW9BPdyy0OnqvqZm_ujA I see the big difference in browser and jmeter when I run them.please suggest how to configure to simulate to real browser and similar response times in both jmeter and browser, Thank you so much for your effort to debug this issue

    – Bhaskar T
    Nov 21 '18 at 7:34

















Thanks a lot, Dmitri, Actually it's downloading every time and calculating into response time hence it leads very high response time as compared to browser..I configured as you mentioned that adding https cache manager and selected retrieved embedded resources parallel download-6...but still it's not matching response time with browser..Please help how can i make it as close real to browser behaviour

– Bhaskar T
Nov 20 '18 at 11:59





Thanks a lot, Dmitri, Actually it's downloading every time and calculating into response time hence it leads very high response time as compared to browser..I configured as you mentioned that adding https cache manager and selected retrieved embedded resources parallel download-6...but still it's not matching response time with browser..Please help how can i make it as close real to browser behaviour

– Bhaskar T
Nov 20 '18 at 11:59













No one will be able to help unless you share more information, i.e. request details. One thing I can think of is that your browser doesn't make actual requests and returns embedded resources from its cache. Try clearing your browser history including cache and retry the request in browser. Other reason could be that browser sends Accept-Encoding header therefore receives compressed response. You can achieve the same using HTTP Header Manager

– Dmitri T
Nov 20 '18 at 12:05







No one will be able to help unless you share more information, i.e. request details. One thing I can think of is that your browser doesn't make actual requests and returns embedded resources from its cache. Try clearing your browser history including cache and retry the request in browser. Other reason could be that browser sends Accept-Encoding header therefore receives compressed response. You can achieve the same using HTTP Header Manager

– Dmitri T
Nov 20 '18 at 12:05















Thanks Dmitri for Clarifying the issue, i have added images in following google drive link drive.google.com/open?id=10UZfhWzme-o9ILSMyWcco-ePxhipxIxV

– Bhaskar T
Nov 20 '18 at 18:02





Thanks Dmitri for Clarifying the issue, i have added images in following google drive link drive.google.com/open?id=10UZfhWzme-o9ILSMyWcco-ePxhipxIxV

– Bhaskar T
Nov 20 '18 at 18:02













My application first Transaction-1,2,3,4,5 requests contain lot of embedded resources within it....2nd transaction having 4 requests contain similar kind of embedded resources + additional embedded resources....but it's downloading all the time and counting the time in everywhere. please have a look at screen shots and you get to know and please let me know how to configure effectively...Thanks a lot for your help!!1

– Bhaskar T
Nov 20 '18 at 18:08





My application first Transaction-1,2,3,4,5 requests contain lot of embedded resources within it....2nd transaction having 4 requests contain similar kind of embedded resources + additional embedded resources....but it's downloading all the time and counting the time in everywhere. please have a look at screen shots and you get to know and please let me know how to configure effectively...Thanks a lot for your help!!1

– Bhaskar T
Nov 20 '18 at 18:08













Hi Dimtri, here is the code JMX file..drive.google.com/open?id=18iWX36mBsQkASW9BPdyy0OnqvqZm_ujA I see the big difference in browser and jmeter when I run them.please suggest how to configure to simulate to real browser and similar response times in both jmeter and browser, Thank you so much for your effort to debug this issue

– Bhaskar T
Nov 21 '18 at 7:34





Hi Dimtri, here is the code JMX file..drive.google.com/open?id=18iWX36mBsQkASW9BPdyy0OnqvqZm_ujA I see the big difference in browser and jmeter when I run them.please suggest how to configure to simulate to real browser and similar response times in both jmeter and browser, Thank you so much for your effort to debug this issue

– Bhaskar T
Nov 21 '18 at 7:34


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53334066%2fjmeter-need-to-download-one-time-retrieving-embedded-resources-for-request%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()