0

I have test cases properly created and compiled in JMeter using the badboy. I ran the test for 1 Thread 1 ramp-up period and 1 Loop count (screenshot of the settings are attached with the query) and the test runs completely fine. Now I increased the Threads to 20 and it runs fine but when I start increasing it more like 50 or 80 threads then after few test cases the script logs out. I am testing an application based on JSF and I have taken care of the faces issue where the ViewState have to be passed to every next request being sent so the session is maintained. The problem here is that when the number of threads increases the application takes me to the login screen after a few steps.

I have also tried by un-ticking the option "Delay Thread creation until needed" Kindly suggest a solution

JMeter Version: 3.2

Thanks and regards, Prasad Iyer

[Thread Setting for 1 user][1] [1]: https://i.stack.imgur.com/bcVub.jpg

[Thread Setting for 80 users][2] [2]: https://i.stack.imgur.com/rJ4gA.jpg

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
Prasad
  • 3
  • 2
  • 1
    What d'ya mean by "script logs out"? – Yuri G Jul 19 '17 at 20:24
  • Not enough information to suggest any solution. – timbre timbre Jul 19 '17 at 22:07
  • By script logs out I mean that if there are 30 test cases in the script and if I run the script for only one Thread(user) then all of them run as expected but when I increase the threads to 50 then only the first two test cases work rest all just show the login in screen. – Prasad Jul 20 '17 at 13:40

1 Answers1

0

Blind shot: add HTTP Cookie Manager to handle JSESSIONID and other cookies (in some installations you will need HTTP URL Re-writing Modifier)

If it is already there (or does not help) inspect your application under test logs, most probably you will find some errors there (you might need to increase logs verbosity)

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Can you please elaborate, by test logs do you mean Jmeter.log because if I try to debug the "view results tree" there is no error that I get. HTTP Cookie Manager is already included to maintain the JSESSIONID I will try using HTTP URL Re-writing and get back – Prasad Jul 20 '17 at 13:35
  • As suggested I tried using HTTP URL Re-write but it still logs out Find attached the screenshot of HTTP URL Re-Write URL Re-Write: https://i.stack.imgur.com/2u5Ga.jpg Sample value: https://i.stack.imgur.com/MQAbH.jpg – Prasad Jul 20 '17 at 15:13