shtriha
shtriha

Reputation: 283

How to increase test run speed in VS Test Project?

I'm trying to create a load test in VS Test Project. I have one empty test method which is called multiple times. At best my test runs 600 times per second.

How to increase the number of running tests per sec?

Upvotes: 1

Views: 588

Answers (1)

chaliasos
chaliasos

Reputation: 9793

At best my test runs 600 times per second.

I think this is limited by the machine where the Load test is executing. Perhaps, you can increase this number by:

  • adding more Virtual Users to your Load Test. Your test iterations will be shared to the virtual users and they will be executing them in parallel.
  • adding more Test Agents. If you are using a test rig for your Load Tests you can define more VM (if possible) as Test Agents.

See the following references for more details:

  1. Configuring Test Controllers and Test Agents for Load Testing
  2. About the Mix Control for Load Tests
  3. How to: Create a Test Setting for a Distributed Load Test

**If you add functionality to your empty test method I am afraid the runs/sec number will decreased again.

Upvotes: 1

Related Questions