JMeter script has file view scenario.

  1.  User is logging into WebApp application.
  2.  Go to folder.
  3.  Click on word file to view the file in pdfTron viewer
  4.  Once it gets viewed
  5.
Then logout

Some background:
There are two instances (using LB with sticky session) so when you make a 
request to view the file, the request goes to any one of instances, it checks 
the cached file and if cached file is available then it will be viewed. Cached 
files either available in any one of servers (cached file will not be available 
in both the instances)
Problem statement:
When JMeter script runs it goes to any one server and sometimes gets response 
code 404 because I checked cached file is not available on that server. Hence, 
getting 404. If a cached file is available, then I am getting correct response 
in JMeter.
I tried to “clear cookies each iteration using Cookie manager” but still it’s 
not working.
I also ensured that “Request Headers” I put it with proper values and compared 
with browser as well.
Functionality is working fine from browser but not working from JMeter. Due to 
sticky session? something i have to add or missing something from my side?
Thanks in advance,
Rushabh


Reply via email to