Professional Documents
Culture Documents
BPC 10 For NetWeaver LoadRunner Toolkit
BPC 10 For NetWeaver LoadRunner Toolkit
Toolkit
Applies to:
SAP BusinessObjects Planning and Consolidation 10, version for SAP NetWeaver SP1 and higher, EPM
Add-In, SP3 and higher. For more information, visit the Enterprise Performance Management homepage.
Summary
This how to guide provides a utility that streamlines the process of creating LoadRunner scripts for SAP
BusinessObjects Planning and Consolidation 10, version for NetWeaver as well as a detailed explanation of
the utilities features.
Author:
Daniel Settanni
Author Bio
Daniel Settanni has worked SAP Labs in the EPM CSA for the last 5 years. He specializes in SAP
BusinessObjects Planning and Consolidation, version for NetWeaver.
Table of Contents
Business Scenario .............................................................................................................................................. 3
Background Information...................................................................................................................................... 3
Prerequisites ....................................................................................................................................................... 4
How-To Use the BPC Toolkit for LoadRunner.................................................................................................... 4
Recording Requests with Fiddler .................................................................................................................... 4
Installing the BPC Toolkit for LoadRunner ...................................................................................................... 7
Using the BPC Toolkit for LoadRunner ........................................................................................................... 8
Step by Step Instructions ............................................................................................................................................. 9
Business Scenario
In the course of promoting a new solution into production many clients verify their landscapes using HP Load
Runner for stress, volume, and/or performance testing.
This How-To guide documents a toolkit created within the CSA Business Analytics team that enables rapid
script creation and assists with platform specific challenges related to LoadRunner.
Background Information
This How-To guide consists of the guide you are reading now, as well as a utility named the SAP
BusinessObjects Planning and Consolidation 10, version for NetWeaver (hereafter referred to as BPC 10 or
BPC) LoadRunner Toolkit. The utility allows you to translate interactions with the web and office clients
recorded with Fiddler, a third party (freely available) tool, into LoadRunner scripts.
During the translation process the utility performs the following operations:
Parses the following from the Fiddler (http://fiddler2.com/fiddler2/) SAZ file for each Representational
State Transfer (REST) request and response:
o
Set-Cookie Requests
Formats the REST request so that it is compatible with a C style string. For example, backslash
characters \ are automatically escaped and newline characters are added where necessary.
Creates a LoadRunner script for the requested protocol, either Web Services or Web (HTTP/HTML).
Creates LoadRunner transactions for each request allowing you to identify specific requests causing
bottlenecks.
o
It can optionally create transactions based on specially formatted comments in the Fiddler
SAZ file. If these are found, individual requests are created as sub-transactions.
Ignores any unsuccessful (non HTTP-200/300 status) SOAP/HTTP requests when creating the
LoadRunner script.
Ignores any requests that are not valid for the Web Service protocol. It places a comment in the
LoadRunner script identifying that a request was skipped.
Ignores any requests that are not valid for the Web (HTTP/HTML) / SAP - Web protocols. It places a
comment in the LoadRunner script identifying that a request was skipped.
Splits the SOAP request body string into shorter string if it exceeds 10,000 characters. The lines are
split at known delimiters (; and |) to ensure dimension member names are not truncated.
Prerequisites
Web (HTTP/HTML)
SAP + Web
Web Services
Fiddler
o
Available at http://www.fiddler2.com/fiddler2/
SAP BusinessObjects Planning and Consolidation, version for SAP NetWeaver version 10
Fiddler allows you to store comments on a request. By using special prefixes in comments, you can
influence how the toolkit creates transactions in the LoadRunner script.
There are currently three prefixes recognized by the toolkit:
Note: Use the keyword (startTrans/endTrans/startEndTrans) followed by a colon, followed by your transaction name.
For example, startEndTrans:SEC10K Report would result in a transaction in LoadRunner named SEC10K
Report containing the HTTP request you set the comment on.
The remainder of this session will step you through creating a Fiddler recording.
1. Launch Fiddler and make sure that it is capturing traffic (F12 or File > Capture Traffic)
2. Launch the BPC client you wish to record. Either Internet Explorer for the web client or Excel for the
EPM Add-in.
3. Start interacting with the client. Notice that Fiddler will display HTTP requests as you interact with
BPC.
Note: You can group individual requests into transactions using the startTrans/endTrans/startEndTrans keywords in
comments as described in the beginning of this section.
4. Complete all of the client side interactions you wish to include in the script and save the Fiddler
session by navigating to File > Save > All Sessions
.
5. Save the file as type Session Archive.
Once downloaded, unzip the installation package and copy the file ICSharpCode.SharpZipLib.dll from the
net-20 subdirectory to the directory containing the toolkits executable.
6. Navigate to the SAZ file you created during the recording process. Select it and click Open.
7. The output directory will default to the path containing the SAZ file previously selected. You can
change this by clicking the Browse button and selecting a new path.
9. Detailed information about the conversion process can be found in the Status text box
10. You can now view the LoadRunner script by opening the output file in any text editor.
3. Select the same LoadRunner protocol you selected in the previous section and click Create.
Note: We skip this because the script recording process was already completed in the previous two steps.
5. Open the file created by the toolkit in a text editor. Select and copy all of the text from this file.
6. Switch back to the Virtual User Generator (VuGen) application and replace the content in the Action
section with content from the toolkits output file.
7. Scroll down to the line containing the web_set_user function call and enter your test accounts
username, password and host:port.
Note: You can find the hostname and port (if required) in the first LoadRunner request following the lr_start_transaction
function.
8. If the script captured interactions with the web client you will also need to update the password in
one of the web requests. A comment will be placed before the request that sends the username and
password. You dont have to change this unless parameterizing the usernames and the passwords
in the script.
10. Select the desired path; enter a file name and click Save.
Related Content
How-To Use the SAP BusinessObjects Planning and Consolidation (BPC) Toolkit for LoadRunner (version
7.x)
How-To Plan and Execute LoadRunner Scenarios for SAP BusinessObjects Planning and Consolidation
(version 7.x)
For more information, visit the Enterprise Performance Management homepage
Copyright
Copyright 2012 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.
The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9,
iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server,
PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes,
BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,
Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of
Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts
Institute of Technology.
Java is a registered trademark of Oracle Corporation.
JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned
herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and
other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document
serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP
Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the
express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an
additional warranty.