
332
|
Chapter 10, Work with Visual Studio Tools
#79 Stress Test Web Applications
HACK
8. You will now see that the test script file (e.g., TestName.vbs) has been
opened up in the editor and has been added under your ACT Project in
the Solution Explorer.
One thing to understand before creating your tests: all ACT
tests are either VBScript or JScript, and you have the option
of letting ACT generate the scripts for you (recommended)
or writing the test scripts yourself. If you let ACT autogener-
ate the test scripts, they will be created using VBScript.
Test Properties
Now that you’ve created your ACT Project and added some tests, you need
to set the properties of those tests. The Properties window is where you set
your load levels, test duration, and test iterations. To view these settings,
right-click on a test and select Properties. The Properties window appears, as
shown in Figure 10-5.
By default, a brand-new test is set up to run one browser connection for five
minutes (Connections = 1, RunTime = 300; RunTime is in seconds). This
default configuration is actually a good “smoke test” to get started.
To gather a wide range of metrics, it’s best to perform tests with varying
load based on duration and iterations. A test based on duration will tell you
Figure 10-5. The Properties window of a test