Schedule a workload
One of the keys to a successful performance test is the ability to accurately model the anticipated system workload. Software systems typically have various types of users that perform varied tasks. Performance Tester provides a graphical interface to enable you to model your user activities.
- Expand the Schedules folder and double-click the
AdventureBuilderLoadTest schedule to open it in the Schedule Editor
view. This is a schedule that has been partially completed for you.
Figure 17. AdventureBuilderLoadTest schedule in Test Navigator view
- Two user groups have already been defined in this schedule. As you can see
from the annotations on the Schedule Contents, browsers represent 20 percent
of your emulated users while buyers represent 80 percent.
Figure 18. Schedule Contents shows defined user groups
- Expand the Browsers user group and all contained elements in the
Figure 19. Details of the Browsers user group
Performance Tester offers many advanced constructs to help you test the impact of a realistic load on your system. The hierarchy under the Browsers user group can be interpreted as follows: Each browser will peruse three adventure packages. Browsers will randomly choose to look at either mountain adventures or western adventures but are twice as likely to look at mountain adventures. The action of browsing the adventure category is emulated by tests that were recorded in much the same way you recorded your test. After looking at each category, a browser will wait 1000 milliseconds before browsing another category.
- The Buyers group has not been completed. Use the test you recorded earlier as an implementation for the Buyers test. Click the Buyers user group.
- Click Add > Test and select PurchaseIslandAdventure from the Select Performance Tests window. Save the AdventureBuilderLoadTest schedule.