0
votes

I want 100 concurrent users to hit login Action1 Action2 Action3 logout.

I created csv with 100 concurrent users. Threadcount=100 Rampup=1 Loop is Forever But when I execute the script for most of the time for Action1 I get login page in response. I believe it gets executed before login. Can somebody please help. It is siteinfinity application.

1

1 Answers

0
votes

Each JMeter thread (virtual user) executes Samplers upside down so if you have login sampler before action1 the login will always be executed first.

The reason of seeing the login page instead of action1 response is that your login request fails somewhere somehow

  1. Make sure to add HTTP Cookie Manager to your Test Plan
  2. Check your sitefinity security module settings, most probably you need to pass a special request parameter i.e. __RequestVerificationToken or something like this which needs to be extracted from the previous response using a suitable JMeter Post-Processor and added to the next request. Check out How to Load Test CSRF-Protected Web Sites article for comprehensive information and solution
  3. You might want to add Response Assertion to introduce custom pass/fail criteria, i.e. to check presence of Welcome text or absence of login button, this way you will get confidence that your test is doing what it is supposed to be doing and you're not getting "false positive" results