Activate alerts

This section describes how to work with automatic notification alerts and actions to keep track of tests and test assets.

Alert rules

You can keep track of your tests as you perform your testing process. When a performance test starts, ends, or fails, a timeslot is idle for a period of time, or if a test host becomes non-operational, you can instruct LoadRunner Enterprise to notify those responsible. You can also set an alert action to release a timeslot after the timeslot has been idle for a specified period of time.

Note: Alerts notifications are disabled during LoadRunner Enterprise upgrades.

You can activate the following project alert notifications and actions:

Alert/Action Description
Test started

Sends an alert notification to the specified users when a test starts.

Enable this alert from Alerts > New Alerts Template/<existing alert> > Tests > Test Start.

Test finished

Sends an alert notification to the specified users when a test’s state changes from Running to any state, except for collate or analyze.

Enable this alert from Alerts > New Alerts Template/<existing alert> > Tests > Test Finish.

Test failed

Sends an alert notification to the specified users if a test fails.

Enable this alert from Alerts > New Alerts Template/<existing alert> > Tests > Test Failure.

Idle timeslot

Sends an alert notification to the specified users if the timeslot is idle for <x> minutes.

Enable this alert from Alerts > New Alerts Template/<existing alert> > Timeslots > Send email if timeslot is idle for X minutes.

Release timeslot

Releases the timeslot after the timeslot has been idle for <x> minutes.

Enable this action from Alerts > New Alerts Template/<existing alert> > Timeslots > Release timeslot if it was idle for X minutes.

Hosts are non-operational

Sends an alert notification to the specified users when test hosts become non-operational.

Enable this alert from Alerts > New Alerts Template/<existing alert> > Host Availability > Host become Non-Operational.

Back to top

Setting alert rules

To activate alerts or notifications:

  1. In LoadRunner Enterprise Administration, select Configuration > Alerts.

  2. Click New Template, and enter a name and description for the alert.

  3. Select the alerts and/or the release timeslot action you want to activate from the Tests, Timeslots, and Hosts Availability tabs. For details, see Alert rules.

    • For test, timeslot, and host availability alerts, select the alert recipients (Owner, Administrator, Other users), and enter the alert text. Use a comma (,) or semi-colon (;) to separate multiple email recipient addresses.

    • For timeslot alerts and/or the release timeslot action, enter the amount of time to wait before sending notification that the timeslot is idle, or before releasing the timeslot.

  4. In the Linked Projects pane, click Select Projects. Select the projects to assign to the alert in the Assign Projects to Alert dialog box, and click Assign. Projects associated with the alert are listed in the grid.

  5. Click Save to save the alert template.

  6. Use the Filter to display only those alerts that meet the criteria that you define. For details see Filter.

    Note: For very short tests (between 1-2 minutes), no statistics are displayed in the email alert.

Back to top

Alerts in a multi-tenant environment

To enable Alerts to work in a multi-tenant environment:

  1. Open the tenants.json file located in the <LR Enterprise server installation>\dat folder.

  2. Copy the Tenant Unique IDs from LoadRunner Enterprise or the Site Management console, and paste them into the tenants.json file in the following format:

    {
    "tenants": [
    { "id": "fa128c06-5436-413d-9cfa-9f04bb738df3" },
    { "id": "<GUID>" },
    { "id": "<GUID>" }
    ]
    }

    Where <GUID> is a tenant unique ID, taken from the Tenants page in the Site Management console. For details, see Manage tenants.

  3. Restart the LoadRunner Alerts Service.

Back to top