
Stress Test Web Applications #79
Chapter 10, Work with Visual Studio Tools
|
333
HACK
how many requests were served in the specified time. A test based on itera-
tions will tell you how long it took to run the test the specified number of
times.
Duration example. To configure a test to run 10 connections for one hour,
enter 10 for Connections, 3,600 for the RunTime, and blank out Iterations.
Iterations example. To set up a test to run 1,000 iterations using five connec-
tions, enter 1,000 for Interations, 5 for Connections, and blank out RunTime.
Running a Test
The last thing to do at this point is run your test. To do this:
1. Right-click the test in the Solution Explorer and select Start Test.
2. The Output window now appears and displays statistics for the test as it
is running. A sample is shown in Figure 10-6.
3. You now have two options: let the test run its course or stop it manu-
ally, which can be done by right-clicking on the test in the Solution
Explorer and selecting Stop Test from the context menu that appears.
Viewing Test Results
After your test has finished running, you can view the results by right-click-
ing on the test and selecting View Results. A new window will appear that
resembles the one shown in Figure 10-7.
The test results window provides a quick view of the statistics for the test
run. You can see items such as total run time, total number of iterations,
and average requests ...