User group overview

User groups enable you to group tests in a logical order.

With user groups, you can control test execution in several ways:
  • Group tests by characteristics. For example, you could have two user groups—a Buyers group and a Browsers group—that represent the types of users on your system.
  • Influence the order in which tests are run. When you run a VU Schedule, the first test in each user group runs—in parallel, not sequentially. After the first test in a user group is completed, the second test runs, then the third, and so on.
The following VU Schedule contains one user group.

Schedule with a user group called Browsers and Buyers. The user group contains five tests: Open, Browse, Open, Browse, Bid.

If you run this VU Schedule with 10 users, they are assigned to the only user group—Browsers and Buyers. When the run starts, the 10 virtual users start running the first test in parallel. As soon as one test is finished, a virtual user moves to the second test. Thus, you have 10 virtual users, all starting at the same time and running each test sequentially. This does not give you much control over the run.

The following VU Schedule contains the same tests in the same order, but they are divided between two user groups. Conceptually, this VU Schedule is easier to understand, because the user's tasks are grouped logically—the Browsers browse, and the Buyers browse and then bid on a product. But, even more important, this one gives a more accurate representation of the types of users on your system, because each user group contains tests that represent the actions that they do, and the proportions of the user groups (70% and 30%) represent the proportions of the users on your system.

Schedule with two user groups. Browsers group contains two tests: Open and Browse. Buyers group contains three tests:  Open, Browse, Bid.

If you run this VU Schedule with 10 users, seven are assigned to the Browsers group, and three are assigned to the Buyers group. When the run starts, the seven Browsers and the three Buyers start in parallel. Thus, you have seven Browsers, each running two tests sequentially, and three Buyers, each running three tests sequentially.