Friday, March 20, 2009

Question on Test mix based on user pace - How many tests??

Hi, All
I met a problem when I using VSTS2008 SP1 to implement the loadtest.

First of all, I create two common unittest in the test project.
Then I add the loadtest to the test project, using a constant load of 2 Vusers. Selecting those unittests I had witten. In the "Test Mix" option. I choose the "Test mix based on user pace" model. I apply "60 Tests Per User Per Hour"
OK. run the loadtest for 10 min

Based on my scenario. The 2 vusers should run 120 tests in total per hour (60*2). If I run 10min, The total runs of the loadtest should be 20, but the actual test run is "40", double of the expected result.

Does my calculation wrong? or there are some other option I was missed.

Thank you.

-------------------------------------------------------------------------------------------------

Hi

This is a bit tricky. Note the definition of "tests per user per hour". It is used to configure the frequency of each test in the test mix. Since you added 2 unit tests, 2 users, 60 tests per user per hour and run 10 minutes, the calculation should be:
60 * 2 tests * 2 users = 240 tests per hour.
Since you run the load test for 10 minutes, so the total tests have run should be 240 / 6=40 tests.

No comments:

Unix/Linux Commands

  Flow control Syntax break Exit a loop. continue Exit the current iteration of the loop and proceed with the next iteration. Ctrl+C Key com...