Thank you
PS: I did not find the answer in Google or JMeter GUI.
So add To user.properties:
> cache_manager.cached_resource_mode = RETURN_CUSTOM_STATUS
> RETURN_CUSTOM_STATUS.code = 304
> RETURN_CUSTOM_STATUS.message = cached resources
See:< /p>
> https://jmeter.apache.org/usermanual/properties_reference.html#cache_manager
I need to aggregate data for my non-cached load test Compare the aggregated data with the cache load test to calculate the cache efficiency of my website. I have successfully performed the non-cached and cached tests. The problem I encountered is that when using the cache manager, the aggregation does not include the use of cache The number of requests does not include cache retrieval time. This is a problem because the throughput in the aggregate report is the same for both non-cached and cached load tests, and I cannot compare efficiency without doing a lot of manual calculations. Now, I understand that throughput means that the actual request hits the server and receives the response, but it is not as useful as the throughput including the number and time of cache retrieval. Is there a way to achieve this goal?
Thank you
PS: I did not find the answer in Google or JMeter GUI.
I think what you are looking for is to modify the HTTP cache manager so that it returns a SampleResult, because it won’t by default.
So add to user.properties:
> cache_manager.cached_resource_mode = RETURN_CUSTOM_STATUS
> RETURN_CUSTOM_STATUS.code = 304
> RETURN_CUSTOM_STATUS.message = cached resources
See:
> https://jmeter .apache.org/usermanual/properties_reference.html#cache_manager