How to Define Service Level Agreements

This task describes how to define service level agreements (SLAs). SLAs measure performance test goals over time intervals during a test run, or over a whole performance test run.

Note: This task is part of a higher-level task. For details, see How to Design a Performance Test.

Tip: For a use-case scenario related to this task, see Use-Case Scenario.

  1. Prerequisites

    Create a performance test. For details, see How to Design a Performance Test.

    Note: To define Average Transaction Response Time or Transaction Response Time Percentile SLAs, your performance test must include a script that contains at least one transaction.

  2. Run through the SLA wizard

    In the Performance Test Designer, click Summary. In the Service Level Agreement pane, click New to open the Service Level Agreement wizard. For user interface details, see Service Level Agreement Wizard.

    1. Select a measurement for the SLA.

    2. If you are defining an SLA for Transaction Response Time (Average/ Percentile), select the transactions to include in your goal.

    3. (Optional) When evaluating SLA statuses over a timeline, select a load criterion to take into account and define appropriate load value ranges for the load criterion.

    4. Set thresholds for the measurements.

      • If the values of Transaction Response Time (Average/Percentile) or Errors per Second exceed the defined thresholds, Analysis will produce a Failed SLA status.

      • If the values of Total Hits, Average Hits per Second, Total Throughput, or Average Throughput are lower than the defined threshold, Analysis will produce a Failed SLA status.

  3. Define a tracking period - optional

    For measurements whose SLA statuses are determined over time intervals, you need to define the frequency of the time intervals, known as the tracking period. For details, see Tracking Period.

    For user interface details, see Tracking Period Dialog Box.

  4. Results

    During post test run analysis, LoadRunner Analysis compares the data collected from the test run against the settings defined in the SLAs, and determines SLA statuses which are included in the default Summary Report and the SLA Report.

    To learn more, see Service Level Agreements Overview and the Analysis section of the LoadRunner Help Center (select the relevant version).

Back to top