PC Quick Start
PC Quick Start
Quick Start
Legal Notices
Warranty
The only warranties for HP products and services are set forth in the express warranty
statements accompanying such products and services. Nothing herein should be construed
as constituting an additional warranty. HP shall not be liable for technical or editorial errors
or omissions contained herein.
The information contained herein is subject to change without notice.
Restricted Rights Legend
Confidential computer software. Valid license from HP required for possession, use or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software,
Computer Software Documentation, and Technical Data for Commercial Items are licensed
to the U.S. Government under vendor's standard commercial license.
Copyright Notices
Copyright 1992 - 2013 Hewlett-Packard Development Company, L.P.
Trademark Notices
Adobe is a trademark of Adobe Systems Incorporated.
Microsoft, Windows, Windows XP, and Windows Vista are U.S registered trademarks
of Microsoft Corporation.
Documentation Updates
The title page of this document contains the following identifying information:
Document Release Date, which changes each time the document is updated.
Software Release Date, which indicates the release date of this version of the software.
To check for recent updates, or to verify that you are using the most recent edition of a
document, go to:
http://h20230.www2.hp.com/selfsolve/manuals
This site requires that you register for an HP Passport and sign-in. To register for an HP
Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
Or click the New users - please register link on the HP Passport login page.
You will also receive updated or new editions if you subscribe to the appropriate product
support service. Contact your HP sales representative for details.
Support
Visit the HP Software Support web site at:
http://www.hp.com/go/hpsoftwaresupport
This web site provides contact information and details about the products, services, and
support that HP Software offers.
HP Software online support provides customer self-solve capabilities. It provides a fast and
efficient way to access interactive technical support tools needed to manage your business.
As a valued support customer, you can benefit by using the support web site to:
Most of the support areas require that you register as an HP Passport user and sign in.
Many also require a support contract. To register for an HP Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
To find more information about access levels, go to:
http://h20230.www2.hp.com/new_access_levels.jsp
Table of Contents
Welcome to This Guide .........................................................................7
Lesson 1: Introducing ALM Performance Center ...............................15
The ALM Performance Center Testing Process ...................................16
Performance Testing Applications ......................................................17
Lesson 2: Creating Vuser Scripts .........................................................19
Recording Vuser Scripts .......................................................................20
Lesson 3: Creating and Designing Performance Tests .......................29
Logging in to ALM...............................................................................30
Adding Vuser Scripts to ALM ..............................................................31
Creating Profiles for Monitoring Resources ........................................36
Creating Performance Tests.................................................................38
Designing Performance Tests ..............................................................39
Lesson 4: Running Performance Tests ................................................45
Creating Test Sets ................................................................................46
Reserving Timeslots .............................................................................48
Running Performance Tests ................................................................50
Lesson 5: Post-run Analysis and Trending ..........................................53
Analyzing Performance Test Run Results............................................54
Viewing Performance Improvements and Regressions.......................63
Lesson 6: Summary..............................................................................69
Table of Contents
Note:
This guide assumes that your ALM Performance Center environment has
been fully installed and configured, and that a domain and project have
been set up. For more information, contact your Performance Center
administrator.
This Quick Start only describes how to work with the ALM features
associated with performance testing. For a comprehensive guide to
working with ALM, refer to the HP Application Lifecycle Management
Tutorial.
Description
Lesson I: Introducing
ALM Performance Center
Lesson 4: Running
Performance Tests
Lesson 5: Post-run
Analysis and Trending
Lesson 6: Summary
ALM Help
ALM Help is an online help system that describes how to use ALM. You can
access ALM Help in the following ways:
Click Documentation Library in the ALM Help menu to open the ALM
Help home page. The home page provides quick links to the main help
topics.
Click Help on this page in the ALM Help menu to open the ALM Help to
the topic that describes the current page.
Description
Whats New?
Movies
Readme
Description
HP ALM
Administrator Guide
HP ALM Lab
Management Guide
HP ALM Tutorial
HP ALM Installation
and Upgrade Guide
Guide
Description
HP ALM Lab
Management
Troubleshooting
Guide
HP ALM Business
Views Microsoft
Excel Add-in User
Guide
HP Business Process
Testing User Guide
10
10
Guide
Description
HP ALM Performance
Center Quick Start
HP ALM Performance
Center Guide
HP ALM Performance
Center Installation
Guide
HP ALM Performance
Center
Troubleshooting
Guide
Description
HP ALM Agile
Testing Best Practices
Guide
HP ALM Business
Models Module Best
Practices Guide
HP ALM Database
Best Practices Guide
HP ALM Entities
Sharing Best
Practices Guide
HP ALM Project
Planning and
Tracking Best
Practices Guide
HP ALM Project
Topology Best
Practices Guide
HP ALM Upgrade
Best Practices Guide
HP ALM Versioning
and Baselining Best
Practices Guide
HP ALM Workflow
Best Practices Guide
11
11
Description
HP Performance
Center of Excellence
Best Practices
HP Performance
Monitoring Best
Practices
12
12
Guide
Description
HP ALM Project
Database Reference
HP ALM Site
Administration API
Reference
HP ALM COM
Custom Test Type
Developer Guide
HP ALM .NET
Custom Test Type
Developer Guide
Description
Troubleshooting &
Knowledge Base
HP Software Support
13
13
Part
Description
Add-ins
Opens the HP Application Lifecycle Management Addins Page, which offers integration and synchronization
solutions with HP and third-party tools.
Tools
14
14
1
Introducing ALM Performance Center
This lesson provides a brief overview of HP ALM Performance Center, and of
the applications that are involved in the testing process.
Notes:
The Quick Start describes how to run a performance test with a single
host functioning as both a load generator and a Controller (C+LG).
However, due to possible heavy load on the Controller and load
generator hosts during a performance test, it is best practice to assign
these functions to separate host machines.
15
These processes are explained in more detail in the lessons that follow.
16
16
Description
HP Analysis
17
17
18
18
2
Creating Vuser Scripts
This lesson explains the steps involved in recording Vuser scripts using HP
Virtual User Generator.
In this lesson you will learn about:
19
20
20
21
21
22
22
f Click Start Recording. A new web browser opens and displays the HP
Web Tours site.
Note: If there is an error opening the site, make sure that the Web
server is running. To start the server, select Start > All Programs > HP
LoadRunner > Samples > Web > Start Web Server.
The floating Recording toolbar opens.
23
23
a Keep the rest of the default settings and click Continue. The search
results appear.
4 Select a flight.
Click Continue to accept the default flight selection. The Payment Details
page opens.
5 Enter payment information and book flight.
a In the Credit Card box, enter 12345678.
b In the Exp Date box, enter 01/13.
c Click Continue. The Invoice page opens, displaying your invoice.
6 Check the itinerary.
In the left pane, click itinerary. The Itinerary page opens displaying the
itinerary for flight you booked above.
7 Log off the HP Web Tours Site
In the left pane, click Sign Off.
8 Stop recording.
Click the Stop button on the floating toolbar to stop the recording
process.
VuGen generates the required code and inserts the code into the Vuser
script.
If the Design Studio opens, click Close to close the Design Studio.
24
24
This tab provides you structured access to the various parts of a Vuser
script, as well as to a number of files that are associated with the Vuser
script.
25
25
The Step Navigator displays an icon-based view of the script that lists the
actions of the Vuser as steps. For each action you performed during
recording, VuGen generated a corresponding step in the Step Navigator.
The Step Navigator displays a snapshot icon to indicate that a specific step
contains a snapshot.
26
26
In the Editor, the actions of the Vuser are listed as API functions. VuGen
uses color-coding to show the functions and their argument values in the
script. You can type C or API functions, as well as control flow statements,
directly into the script.
27
27
28
28
3
Creating and Designing Performance
Tests
This lesson explains how to manage test assets in ALM, and the steps
involved in creating and designing a performance test.
In this lesson you will learn about:
29
Logging in to ALM
You log into ALM as follows:
1 In your Web browser, enter the ALM Performance Center URL.
2 On the Login page, enter your username and password, and click
Authenticate.
3 Select the required Domain and Project and click Login.
30
30
31
31
4 On the module toolbar, click the Upload Vugen Script button. The
Upload VuGen Scripts dialog box opens.
5 In the Select Folder box, select the scripts folder you created above.
6 Click one of the Select buttons and navigate to the location of the zipped
script file.
7 Click Upload to upload the script.
32
32
33
33
6 Click Close.
7 In VuGen, select File > Save Script As. The Save Script dialog box opens.
34
34
8 Select ALM Test Plan, and then select your scripts folder as the location to
which to save the script.
35
35
36
36
6 Select the monitor profile, and in the right pane, select the Monitors
Configuration tab.
7 Click the Add Monitor button. The Add New Monitor dialog box opens.
8 Select Windows Resources. The Edit Monitor dialog box opens, enabling
you to select the Windows Resources counters you want to monitor.
9 Enter the desired information, and click Save. The monitor is added to
your monitor profile.
You will add the monitor profile to the test as part of the test design
process.
37
37
38
38
39
39
c From the list that appears, select the host machine that has been
assigned the Controller and load generator (C+LG) purpose.
b In the Scripts Tree, select the script and click the left arrow to add it to
the test. The script appears in the Groups pane.
40
40
b In the Groups Pane, in the Load Generators column, click the Select
load generators link.
41
41
42
42
Initialize.
Start Vusers.
Duration.
Stop Vusers.
43
43
44
44
4
Running Performance Tests
This lesson explains the steps that are necessary before you run the
performance test, and how to begin test execution.
In this lesson you will learn about:
45
46
46
d Select the folder you created above, and click the New Test Set button.
The New Test Set dialog box opens.
e Enter the required information, and make sure that in the Type box,
you select Performance.
f Click OK. The test set is added to the test set folder.
c In the Test Plan Tree, select the script and click the Add Test to Test Set
button to add it to the Execution Grid tab.
47
47
Reserving Timeslots
Before you run the test, you reserve a timeslot to ensure that the resources
needed will be available for the duration of the test.
48
48
Start. Choose Manually as the method for executing tests. The timeslot
reservation reserves testing resources only.
Select a test instance. Navigate to the test set you created above, and
select the test to link it to the timeslot. The number of Vusers and
hosts that were defined as part of the test design process are
automatically displayed.
Duration. Set the start time, and enter a duration for the test.
49
49
50
50
Description
51
51
52
52
Pane
Description
Online Graphs
Topology
5
Post-run Analysis and Trending
This lesson explains how to analyze test run data using HP LoadRunner
Analysis, and how to view performance improvements and regressions using
the Trend Report feature.
In this lesson you will learn about:
53
54
54
55
55
e Select your domain and project and click Login. The dialog box should
look as follows:
f Click Close.
56
56
57
57
58
58
59
59
3 Click Open Graph. The Average Transaction Response Time graph opens
in the graph viewing area.
60
60
61
61
The Running Vusers and Average Transaction Response Time graphs are now
represented by one graph which opens in the graph viewing area.
Another Analysis tool, Auto Correlate, merges all graphs containing data
that could have had an effect on a given transaction. Correlations of the
transaction with each element are displayed, allowing you to deduce which
elements had the greatest effect on the given transaction.
62
62
The filtered graph displays only the check_itinerary transaction and hides all
the other transactions.
63
63
Step 1 - Creating the trend report. Creating the basic trend report by
defining its name and description and then selecting a template.
Step 2 - Adding test runs to the trend report. Extracting test run data
from Analysis to the trend report.
Step 3 - Viewing trend report data. Opening the trend view and
analyzing the trending information.
64
64
In the General Details pane, enter a name and description for the
trend report.
b Click Create to create the trend report. The Select Test Runs to Trend
Report dialog box superimposes on the Trend Overview tab.
65
65
Select those analyzed instances of the test that you want to add to the
trend report, and click Add. Performance Center uploads the test runs
from Analysis and adds them to the trend report. The trend report opens
displaying the Trend Overview tab.
Notes:
66
66
To add test runs to the trend report, there must be a data processor in
your projects host pool. For details, contact the Administrator.
67
67
In test run 6, the average transaction response time for TRX_01 was 1.05,
which represents a a faster response time that test run 3, and therefore a
performance improvement. The percentage difference between the two
figures is displayed in parenthesis, in this case -48.66%.
68
68
6
Summary
ALM Performance Center enables you to manage the following phases of
the testing process: Creating and designing performance tests, preparing to
run performance tests, running performance tests, and post-run analysis.
69
Lesson 6 Summary
70
70
Phase
Description
Creating and
Designing
Performance Tests
Preparing to Run
Performance Tests
Running
Performance Tests
Post-Run Analysis