Performance Application Lifecycle (PAL)

This topic describes the Performance Application Lifecycle (PAL) solution for end-to-end testing.

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

About PAL

Performance Application Lifecycle (PAL) allows for complete end-to-end testing and DevOps feedback. Users can accurately compare performance test results with real production data benchmarks. Analysis of these results provides a framework to assist you in creating performance test scenarios to resemble realistic environments as closely as possible, which reduces test assumptions and risks.

PAL enables you to use user traffic and system monitoring data in production to design a performance test that closely resembles production behavior. You can import production data from Microsoft IIS W3C Extended Log Format (IIS W3C), Apache, and Micro Focus Real User Monitor (RUM).

PAL’s importance stems from the basic need to correctly plan testing initiatives. Without a clear understanding of what users are doing in production, and how the production system behaves, it is very difficult to:

  • focus testing on the most widely used business cases and scenarios
  • test the system under appropriate loads
  • define testing targets (for example, Service Level Agreements)

Back to top

PAL workflow

The PAL flow includes the following main steps:

Step

Description

Import Import a data set from a production system. Different production monitoring systems provide different data which may influence which information is available to the user.
Create

After uploading your data set to LoadRunner Enterprise, it analyzes the data and creates a PAL scenario with business flows. You can translate each business flow into a script. If a flow has no significance, you can exclude it from your script. After you are done translating your business flows to scripts, you create your performance test and assign to it your scripts.

Run

Run your performance test.

Compare Compare performance test results with your production data. If necessary, readjust and rerun your test.

Back to top

Create a testing environment using PAL

This task describes how to create a testing environment similar to your real production environment using PAL.

  1. Prerequisites

    Create a data set based on production data benchmarks.

    For information on how to create data sets using IIS W3C, Google Analytics, Webtrends, Apache, or RUM, see Create PAL data sets.

    For information on how to create APM data sets, see Create PAL data sets from APM.

  2. Open PAL

    From the LoadRunner Enterprise navigation toolbar, click and select PAL (under Applications).

  3. Import production data

    1. In the Data Set tab, select a data set folder and click Import. The Upload Production Data Set Dialog Box opens. For user interface details, see Upload Production Data Set dialog box.
    2. Upload the data set file. The data file is stored as a .zip file.

  4. Create the scenario analysis

    1. Start scenario analysis.
      1. In the Data Set tab, select your data set.

      2. In the Scenario tab, click Start Scenario Analysis. PAL samples the data set and displays a suggested scenario.

        Note: Scenario Analysis supports the following data set types: IIS W3C, Apache, and RUM.

        To analyze Google Analytics, Webtrends and BSM data sets, create a PAL report. For details, see the Run the performance test step.

    2. Adjust your scenario.

      Review your business flows and adjust your coverage as needed. For user interface details, see Data Sets - Scenario Sub-tab.

    3. Assign business flows to scripts.
        • To assign a business flow to an existing script, hover over it and click . The Assign Script dialog box opens. Select a script and click OK.
        • To assign a business flow to a new script, hover over it and click to download a template script. Edit the script in VuGen and upload it to LoadRunner Enterprise. For more details on editing scripts, see the Virtual User Generator Help Center. For more details on uploading scripts, see Manage scripts.

          In PAL, select the business flow to assign it to your new script, click . The Assign Script dialog box opens. Select a script and click OK.

        • To hide a business flow, hover over it and click Hide .
        • To display a hidden business flow, hover over it and click Show .
    4. Include virtual locations in the performance test - optional (available only in RUM data sets).
      1. Click Options. For user interface details, see Data Sets - Scenario Sub-tab.
      2. In the Location tab, select Include locations as part of the test. For more details on working with NV, see Integrate Network Virtualization.
    5. Create the performance test.
      1. In the Scenario tab, click Create Test to create a performance test. The Create Test dialog box opens. For user interface details, see Create a test.
      2. In the Performance Test Designer window, define the performance test. For details, see Performance Test Designer window.
  5. Run the performance test

    In the Performance Test Designer window, click Run Test. The Run dialog box opens. For details, see Run a test.

  6. Edit your PAL report

    1. Click the Reports tab and select a PAL report. For user interface details, see <Report Name> PAL report.

      Note: When creating a scenario analysis, PAL automatically creates a PAL report.

      For Google Analytics, Webtrends and BSM data sets, click New PAL Report. The Create New Performance Application Lifecycle Report Dialog Box opens. For user interface details, see Create New Performance Application Lifecycle Report dialog box.

    2. Click Add Testing Data to add the test run data to the report. For user interface details, see Data Sources tab.
    3. Click the report sub-tabs to view and compare production and performance test behavior. For user interface details, see PAL report view tabs.
    4. Based on your comparison, you can adjust your performance test to closely resemble your production and rerun your test.

  7. Export the test run data

    1. Open the Test Run Pane. For user interface details, see Manage test results.
    2. View the result information for the selected test run.
    3. To export your test run data, click Export PAL Data . For user interface details, see Export PAL Data dialog box.

Back to top

Create PAL data sets

This task describes how to create the following data sets: IIS W3C, Apache, RUM, Google Analytics, and Webtrends.

Create data sets from IIS W3C

This task describes how to create IIS W3C data sets.

  1. Create log files

    1. Open the Internet Information Services (IIS) Manager window.
    2. Under Connections, select a Website (not a virtual directory).
    3. In the right pane, select Logging.
    4. In the Log File section, under Format, verify that W3C is selected.
    5. Click the Select Fields button and select the following fields: Date, Time, Client IP Address, ServerName, Server IP Address, Server Port, Method, URI Stem, URI Query, ProtocolStatus, Time Taken, Host, UserAgent, Cookie, and Referer.
    6. Under Directory, set the directory location for storing the logs.
  2. Create the IIS data set file

    Open the PAL Data Set Creator wizard to create the IIS data set file. For user interface details, see PAL Data Set Creator wizard.

Create Apache data sets

This task describes how to create Apache data sets.

  1. Configure the Apache log parameters

    1. To edit the Apache log configuration file, navigate to <apache_install_folder>\conf\httpd.conf.
    2. Under LogFormat, define you configuration.

      The section should contain the following parameters:

      • %t
      • %T or %D
      • %{Cookie}i or %{your_cookie_name}C

      Typical configuration example: %h %l %u %t %T \"%{Cookie}i\" \"%{Set-Cookie}o\" \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"

    3. To complete the configuration process, restart the Apache service.

  2. Create the Apache data set file

    Open the PAL Data Set Creator wizard to create the Apache data set file. For user interface details, see PAL Data Set Creator wizard.

Create RUM data sets

The RUM data export file is located in: <install dir>\conf\datapublisher\pc_integration.xml.

The data export file defines the default output folder (C:\RUM_Export\pc_integration) and the maximum default folder size (2 Gb) among other information.

For information about the RUM data export function, see the Real User Monitor Administration Guide.

  1. Copy the data export configuration file from <install dir>\conf\datapublisher\pc_integration.xml

    to <install dir>\conf\datapublisher\consumers\pc_integration.xml

  2. From the RUM web console, click Tools > Monitoring configuration information.

  3. Click Sync all configuration.

  4. Create the RUM data set file

    Open the PAL Data Set Creator wizard to create the RUM data set file. For user interface details, see PAL Data Set Creator wizard.

Create data sets from Google Analytics

This task describes how to create Google Analytics data sets.

  1. Create a new custom report

    1. From Google Analytics, click the Customization tab.
    2. Click the New Custom Report button.
    3. Add a title name.
    4. In the Type section, select Flat Table.
    5. In the Dimensions section, add Time > Hour of Day.
    6. In the Metric Groups section, add Users > Pageviews.
    7. In the Views section, select Web sites.
    8. Click Save.
  2. Export the report

    Open the report, and select Export > CSV.

  3. Create the Google Analytics data set file

    Open the PAL Data Set Creator wizard to create the Google Analytics data set file. For user interface details, see PAL Data Set Creator wizard.

Create Webtrends data sets

Open the PAL Data Set Creator wizard to create the Webtrends data set file. For user interface details, see PAL Data Set Creator wizard.

Back to top

Create PAL data sets from APM

This task describes how to create and export a .zip file of application related data and monitoring tools configuration (such as actions, transactions, load, traffic, RUM topology, and SiteScope monitors) from Application Performance Management (previously known as Business Service Management or BSM) to LoadRunner Enterprise.

You export the data for a specific application and for a selected time range. If the time range you select is greater than one hour, Application Performance Management (APM) calculates the busiest hour within the selected time range (based on the number of actions) and exports the data for that one hour period only. The data is exported to a number of different files, contained in a .zip file with the default name of <selected application name>_<selected start date and time>_<selected end date and time>.zip.

For more details on creating data sets from APM, see the APM Application Administration Guide.

  1. Open APM

    Select Admin > Integrations > Application Lifecycle Management Integration > Export to ALM.

  2. Define a filter

    Select the required time frame from the View drop-down list. If you select the custom view, configure the From and To dates and times.

  3. Select an application

    Select the application for which you want to export data. In the list of applications, only HTTP Web based applications and applications monitored by SiteScope are enabled for data export.

    Note: You can only select a single application for data export.

  4. Select an export method

    Select whether you want to download or send zip file by email. Click Generate.

Back to top