Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I am running a recorded test plan. I have assigned 25 users in the Thread Group, with a Ramp-up Period of 25 and Loop Count of 1.

This is what happens:

  1. Start the test.
  2. While the test is running, in the upper right-hand corner the user number gets incremented to 9/25. At some level, the number remains constant 9/25 and then shows 8/25. After some time, the number automatically gets decremented by 1, 7/25....0/25.
  3. In Database, I see the login entries for only 9 users.

Why does my test plan not run for the 25 users?

share|improve this question
    
How much resources are being utilized on your machine when you run these tests? Are you using any plugins that may be consuming a large amount of memory, or cpu? When you tell it to run 25 threads, it will attempt to do so, but if there are not enough threads available, I'm not sure if it would error out or simply not use all of the threads like you describe. –  Sam Woods Jun 9 '14 at 17:09

2 Answers 2

The behavior is expected as when the thread has done its work and has nothing else to do it's getting stopped.

You need to provide enough users and loops (don't hesitate to set 100 to ensure that the users will be more or less unique) and use Constant Throughput Timer to orchestrate the load and set it 25 requests per second (or 1500 requests per minute).

share|improve this answer

Can you provide more details about values you have used in you Thread Group like it may be possible that you have used the setting 'Action to be taken after a Sampler error' as 'Stop Test' in this case as soon as JMeter encounters an error (which may be after 9 active users in your case) it will stop test and user count will start decreasing. But scenarios like these can be made more clear only after you provide complete information about the Thread Group and Setting of CSV file used (if any).

Regarding the expected behavior as mentioned in earlier response to this issue, even if thread has nothing else to do; then too it should log 25 entries i.e. one entry for each user, which is not the case, as only 9 entries are getting logged in database.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.