Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

browser cache emulation in jmeter?

Running some user-load tests with jmeter, and noticed that for each page load after the first load, the load sizes are similar. This leads me to believe that jmeter's simulation does not use browser cache emulation (e.g. the caching of css and javascript). Anyone know of a method for emulating browser cache in jmeter?

like image 422
tester Avatar asked Jul 14 '10 19:07

tester


People also ask

What makes JMeter a browser?

JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages.

Can do caching and offline analysis in JMeter?

Full multi-threading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by separate thread groups. Caching and offline analysis/replaying of test results. Highly Extensible core: Pluggable Samplers allow unlimited testing capabilities.


1 Answers

Try adding the Config Element HTTP Cache Manager introduced in JMeter v2.3.2

An example is here:

http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cache_Manager

like image 63
JoseK Avatar answered Oct 16 '22 05:10

JoseK