Define test workloads

This section provides an overview of factors that impact performance test workload.

 

Define a test workload overview

When you create a performance test you need to define a workload for the test. Defining a workload involves selecting a type of workload for the test, creating Vuser groups that emulate groups of users running on the application, and configuring how they should behave during the test. Alternatively, you can define the goals you want your test to achieve, and LoadRunner Enterprise automatically builds a schedule for you based on these goals.

You select a workload depending on the type of schedule and schedule run mode you want to use to run your test, and depending on how you want to distribute the Vusers among the Vuser groups in your test.

For details on defining a workload for your performance test, see Define a performance test workload.

For details on distributing Vusers in a performance test among the Vuser groups, see Distribute Vusers among Vuser groups.

Back to top

Noise generator scripts

You can approach performance testing in the following ways:

  • Create a performance test that runs complex Vuser scripts. These scripts perform a business process and contain transactions, complex flows, checkpoints, and so forth.

  • Create a load on the server by having a large number of users (real or virtual) access the same URL simultaneously. This is commonly known as Noise Testing.

The first approach uses a standard Vuser script generated with VuGen. The script performs the full business process and gathers the metrics. After the test run, you can retrieve meaningful information from the Analysis graphs and reports.

The second approach, noise testing, only allows you to determine the response times and whether the server can handle the load without crashing.

When creating a performance test, you can use both types of scenarios. You set up a noise generator script from the Scripts Tree Pane by specifying the URL of the server you want to access. During the performance test run, Vusers access the URL simultaneously.

You can specify noise generator scripts when defining the test workload. For details, see Define a performance test workload.

Back to top

Rendezvous points

During a test run, you can instruct multiple Vusers to perform tasks simultaneously by using rendezvous points. A rendezvous point creates intense user load on the server, enabling you to measure server performance under load.

For details, see Set rendezvous policies.

Back to top

Define a performance test workload

This task describes how to define a performance test workload.

  1. Prerequisite

    Create a performance test. For details, see Design performance tests.

  2. Select a workload

    1. From the LoadRunner Enterprise navigation toolbar, click and select Test Management (under Testing). Select a performance test in the test management tree and click Edit Test.

    2. In the Performance Test Designer window, click Groups & Workload.

    3. Click the Select Workload Type button adjacent to the Workload type box, and select a type of workload for the test. The type of workload you choose determines the type of schedule by which the test will run, and how the Vusers will be distributed at runtime.

      For details on distributing Vusers in a performance test among the Vuser groups, see Distribute Vusers among Vuser groups.

      For details about the workload types, see Vuser distribution methods.

  3. Select a Controller

    1. Click the Select Controller button adjacent to the Controller box, and select a host to act as the Controller for the test.

      Note:  

      • You select only one Controller for a performance test.

      • Due to possible heavy load on the Controller and load generator hosts during a performance test, if you select a C+LG host for Controller functionality, it is best practice not to assign it as a load generator as well.

    1. Select a host type:

      Automatch: Dedicated Controller

      At runtime, an available Controller host in the host pool of the project is allocated for the test run, and is dedicated for Controller functionality. Because it is a dedicated Controller, it cannot be allocated as a load generator as well.

      For details about host allocation, see Allocate hosts.

      Specific

      Select this option if you want a specific Controller host. The grid lists the specific Controller hosts available in the project's host pool.

      Note: If a host is marked with a red asterisk (*), it is already assigned to a Vuser group as a load generator. Due to possible heavy load on the Controller and load generator hosts during a performance test, if a host is assigned to a Vuser group, it is best practice not to select it as a Controller as well.

  4. Select an automatic trending option

    Click the Select Automatic Trending Options button adjacent to the Trending box to configure trend settings for a test. LoadRunner Enterprise uses these settings to automatically publish trend results without you having to manually run the collate, analyze, or publish process. For user interface details, see Trend Settings dialog box.

  5. Create Vuser groups and distribute Vusers to the groups

    1. In the Groups pane, select scripts from the Scripts Tree pane on the right to run in the test. If the Scripts Tree pane is not open, click .

      1. In the Scripts Tree pane, click the Scripts tab to add VuGen scripts.

        Tip: You can select complete folders of scripts, or select multiple scripts while holding down the Ctrl key on your keyboard.

      2. To add Noise Generator scripts, click the Noise tab.

      For user interface details about the Scripts Tree pane, see Scripts tree pane.

    2. (Optional) For each selected script, a Vuser group is created in the Groups grid and is given, by default, the same name as the selected script. You can change the group name if desired.

    3. Distribute Vusers among the Vuser groups according to the Vuser distribution method you selected in the workload type. For details, see Distribute Vusers among Vuser groups.

    Note: Non-English national characters are not supported in group names.

  6. Distribute load generators among the Vuser groups

    Specify which load generators to distribute to which groups. For details, see Distribute load generators among Vuser groups in a test.

  7. Define a schedule for the performance test

    Schedule how the Vuser groups are to run in the test. For details, see Define a schedule for the test.

  8. Configure test settings - optional

    You can configure the following optional settings for your test:

    Optional Test Setting

    Description

    Command line arguments

    Sending command line arguments enables you to configure test settings without the need to manually define them in the UI.

    In the Groups pane, click the Edit Command Line button. For details, see Edit Command Line in the Performance Test Designer > Workload Tab.

    Rendezvous Points

    When you add Vuser groups to the test, their associated scripts are scanned for rendezvous points.

    To view and manage the rendezvous points, click the View Rendezvous button. For user interface details, see Set rendezvous policies.

    Runtime Settings Configuration

    You can configure the runtime settings of uploaded Vuser scripts. Runtime settings are applied to Vusers when the script runs.

    To open the Runtime Settings dialog box, in the Groups pane toolbar, click the Edit Runtime Settings button. For details, see Configure runtime settings.

    Runtime Settings Duplication

    You can copy runtime settings from one script in the test to other scripts of the same script type. In the Groups pane toolbar, click the Duplicate Runtime Settings button.

    For details, see Duplicate Runtime Settings in the Performance Test Designer > Groups & Workload Tab.

    Network Virtualization

    Network Virtualization enables you to emulate probable network effects over your network, thereby creating a more realistic performance test.

    To open the Network Virtualization Settings dialog box, in the Groups pane toolbar, select . For user interface details, see Virtual Location Editor dialog box.

    Services Virtualization

    Instead of loading actual services, Service Virtualization enables you to use simulated services in your test run.

    To open the Services Virtualization dialog box, in the Groups pane toolbar, select Advanced > Services Virtualization. For user interface details, see Service Virtualization dialog box.

    Note: The integration with Service Virtualization is supported in LoadRunner Enterprise 2020 only.

    PAL Reports

    Enables you open a PAL production report. To open the Select PAL Report dialog box, select Advanced > Open PAL Report. For more details on PAL, see Performance Application Lifecycle (PAL).

    Note: The PAL feature is not available in this release of LoadRunner Enterprise.

    Analysis Template Enables you to select a customized template for the analysis report of your performance test. To open the Analysis Template Options dialog box, select Advanced > Analysis Template Options. For user interface details, see Customize analysis templates.

    Terminal Services

    When using manual load generator distribution, you can open terminal services sessions on the load generators, enabling you to run multiple GUI Vusers simultaneously on the same application. For details, see Configure terminal sessions.

  9. Edit script parameters - optional

    For details, see Edit script parameters.

  10. Define topology, monitoring, and diagnostics options

    For task details, see Design performance tests.

Back to top