How-To Use the SAP BusinessObjects Planning and Consolidation(BPC) Toolkit for LoadRunner

Similar documents
How To... Promote Reports and Input Schedules Through Your System Landscape

How to Use Function Keys in Mobile Applications for Handhelds

How To Set up NWDI for Creating Handheld Applications in SAP NetWeaver Mobile 7.1

How To... Reuse Business Objects and Override Operations of a Business Object

SAP NetWeaver How-To Guide

How To Recover Login Module Stack when login to NWA or Visual Administrator is impossible

How To... Master Data Governance for Material: BADI USMD_SSW_SYSTEM_METHOD_CALLER to create successor change request

How To... Configure Integrated Configurations in the Advanced Adapter Engine

How To... Use the BPC_NW Mass User Management Tool

How To...Configure Integration of CUP with SPM

Simplified Configuration of Single System Update in Maintenance Optimizer

How To... Master Data Governance for Material: BADI USMD_SSW_PARA_RESULT_HANDLER to merge result of parallel workflow tasks

How-To... Add Sensitive Content into an Area

How To...Use a Debugging Script to Easily Create a Test Environment for a SQL-Script Planning Function in PAK

SAP NetWeaver How-To Guide How to use Process Execution Manager Using SAP Test Data Migration Server

How To... Configure Drill Through Functionality

How To...Custom BADI for rounding off values in SAP BUSINESSOBJECTS Planning and Consolidation, version for SAP NetWeaver.

SAP NetWeaver How-To Guide

Setting Up an Environment for Testing Applications in a Federated Portal Network

How To... Master Data Governance for Material: File Down- and Upload

How To Generate XSD Schemas from Existing MDM Repositories

SAP Composite Application Framework. Creating a Content Package Object

MDM Syndicator Create Flat Syndication File

SAP - How-To Guide MDG Custom Object Data Replication How to Configure Data Replication for MDG Custom Objects (Flex Option)

Process Control 2.5 Implementation Checklist

Visual Composer - Task Management Application

Install TREX for CAF Version 1.00 March 2006

SAP GRC Access Control: Configuring compliant user provisioning (formerly Virsa Access Enforcer) into CUA Systems

How To Troubleshoot SSL with BPC Version 1.01 May 2009

Do Exception Broadcasting

Use Business Objects Planning and Consolidation (version for the Microsoft platform) BPF services in Xcelsius

link SAP BPC Excel from an enterprise portal Version th of March 2009

configure an anonymous access to KM

SAP NetWeaver How-To Guide. SAP NetWeaver Gateway Virtualization Guide

How To Integrate the TinyMCE JavaScript Content Editor in Web Page Composer

Access Control 5.3 Implementation Considerations for Superuser Privilege Management ID-Based Firefighting versus Role-Based Firefighting Applies to:

How To Configure the Websocket Integration with SAP PCo in SAP MII Self Service Composition Environment Tool

How to do Breakdown Validation in SAP BPC 7.0 for the SAP NetWeaver Platform

How to Set Up and Use the SAP OEE Custom UI Feature

SAP Composite Application Framework. Creating an External Service type Callable Object in Guided Procedures

How To Customize the SAP User Interface Using Theme Editor

How To Extend User Details

What s New / Release Notes SAP Strategy Management 10.1

Create Partitions in SSAS of BPC Version 1.00 Feb 2009

Consuming Web Dynpro components in Visual Composer.

How To Enable Business Workflow for SAP NetWeaver Gateway 2.0

Integrating a Web Service in a Composite Application. SAP Composite Application Framework

A Step-By-Step Guide on File to File Scenario Using Xslt Mapping

Cache Settings in Web Page Composer

Web Page Composer anonymous user access

Data Validation in Visual Composer for SAP NetWeaver Composition Environment

How to Set Up and Use the SAP OEE Custom KPI Andons Feature

How to Create a New SAPUI5 Development Component

SAP Composite Application Framework. Creating a Callable Object in Group: Miscellaneous

SDN Contribution HOW TO CONFIGURE XMII BUILD 63 AND IIS 6.0 FOR HTTPS

Quick Reference Guide SAP GRC Access Control Compliant User Provisioning (formerly Virsa Access Enforcer): HR Triggers

Configure UD Connect on the J2EE Server for JDBC Access to External Databases

How to Upgr a d e We b Dynpro Them e s from SP S 9 to SP S 1 0

How to View Dashboards in the Self Service Composition Environment with Additional Metadata

Integrate a Forum into a Collaboration Room

How To Configure IDoc Adapters

Authentication of a WS Client Using a SAP Logon Ticket

SOA Security Scenarios: WebAS Java, Message Level Security with no Transport Guarantee

Building a Tax Calculation Application

How to Browse an Enterprise Services Registry in Visual Composer

How to Fast-Switch Integration Scenarios between SAP PI Runtimes Part II: Web Dispatcher

Extract Archived data from R3

Configure SSO in an SAP NetWeaver 2004s Dual Stack

Create Monitor Entries from an update routine

How to Translate a Visual Composer Model Part I

Create Monitor Entries from a Transformation routine

View Time Security for crystalreports.com

How to... Build a Planning Function that Deletes Comments in BW

How To Develop a Simple Web Service Application Using SAP NetWeaver Developer Studio & SAP XI 3.0

Work with Variables in SAP NetWeaver Visual Composer Version 1.00 May 2006

Enterprise Portal Logon Page Branding

How To Create Publications with SAP NetWeaver MDM Using MDM Publisher- Advanced Topics

Use the J2EE SOAP Adapter

Configure TREX 6.1 for Efficient Indexing. Document Version 1.00 January Applicable Releases: SAP NetWeaver 04

Introducing SAP Enterprise Services Explorer for Microsoft.NET

SAP How-To Guide. Master Data Governance for Material. How To... Adjust MDG Homepage. Applicable Releases: EhP6, MDG 6.1

Setting up Single Sign On Between xmii and Enterprise Portal

Transport in GP. How-to Guide Beginning with SAP NetWeaver 2004s SPS06. Version 2.00 January 2006

Send Multiple IDocs Within One XI Message

How To... Transport Forum Content Between SAP NetWeaver Systems

Consuming Directory API in ABAP

SAP MII: Leveraging the Data Buffering Feature for Connection Error Handling.

WDA - Custom themes for Web Dynpro ABAP applications without SAP Enterprise Portal integration

Using Business Graphics

Preview of Web Services Reliable Messaging in SAP NetWeaver Process Integration 7.1

Visual Composer Build Process

SAP Centralized Electronic Funds Transfer 1.8

Installation Guide Business Explorer

How-to Guide SAP EPM. How To Use Comments. Version 1.00 March Applicable Releases: EPM BPC 5.1 Microsoft & EPM BPC 7 Microsoft

Setup an NWDI Track for Composition Environment Developments

Monitoring System Landscapes Using the DBA Cockpit

Building a Composite Business Process from Scratch with SAP NetWeaver BPM Guide 2

How to receive and convert PDF-documents with SAP XI

Extracting Product Attributes in XML using Web Service

Visual Composer for NetWeaver CE: Getting Started with a Typical Workflow

Transcription:

SAP BusinessObjects EPM RIG How-To Guide How-To Use the SAP BusinessObjects Planning and Consolidation(BPC) Toolkit for LoadRunner Applicable Releases: SAP BusinessObjects Planning and Consolidation 7.0, version for SAP NetWeaver Platform SAP BusinessObjects Planning and Consolidation 7.0, version for the Microsoft Platform SAP BusinessObjects Planning and Consolidation 5.1, version for the Microsoft Platform IT Practice / Topic Area: Performance Testing Scalability Testing Version 0.97.1 July 2009 2

Copyright 2009 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, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/os, POWER, POWER5, OpenPower and PowerPC are trademarks or registered trademarks of IBM Corporation. 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 Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mysap, mysap.com, xapps, xapp, SAP NetWeaver, 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 in several other countries all over the world. 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. These materials are provided as is without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. SAP NetWeaver How-to Guides are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP NetWeaver. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings ( Code ) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent. Disclaimer Some components of this product are based on Java. Any code change in these components may cause unpredictable and severe malfunctions and is therefore expressively prohibited, as is any decompilation of these components. Any Java Source Code delivered with this product is only to be used by SAP s Support Services and may not be modified or altered in any way.

Document History Document Version Description 0.97.1 Internal release Updated 07/08

Typographic Conventions Icons Type Style Description Icon Description Example Text Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options. Caution Note or Important Example Recommendation or Tip Cross-references to other documentation Example text Emphasized words or phrases in body text, graphic titles, and table titles Example text File and directory names and their paths, messages, names of variables and parameters, source text, and names of installation, upgrade and database tools. Example text User entry texts. These are words or characters that you enter in the system exactly as they appear in the documentation. <Example text> Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. EXAMPLE TEXT Keys on the keyboard, for example, F2 orenter.

Table of Contents 1. Business Scenario...1 2. Background Information...1 3. Prerequisites...1 4. How-To use the BPC Fiddler Converter Component...2 4.1 Using Fiddler to Capture SAP BusinessObjects Planning and Consolidation Processes...2 4.2 Converting the Fiddler Trace file to a LoadRunner Script...4 4.3 Creating the LoadRunner Script...9 4.4 What does the Fiddler Converter do?... 12 5. BPC User Checksum Generator Component... 13 5.1 Creating User Checksums... 13 5.1.1 Creating a Checksum for a single user... 14 5.1.2 Creating Checksums for a User Range... 15 5.2 Using the Checksums in a LoadRunner Script... 16 6. BPC User Context Generator Component... 19 6.1 Creating User Contexts... 20 6.1.1 Creating Contexts for a Single User... 20 6.1.2 Creating Contexts for a User Range... 21 6.2 Using the Contexts in a LoadRunner Script... 22

1. Business Scenario In the course of promoting a new solution to production, many clients verify their landscapes using HP Load Runner for stress testing, volume testing, and/or performance testing. A companion How-To guide is available that describes the process of using LoadRunner with SAP BusinessObjects Planning and Consolidation in detail. This How-To guide documents a set of tools created within the EPM RIG that enable rapid script creation and assist with platform specific challenges related to LoadRunner. 2. Background Information This How-To guide consists of the guide you are reading now, as well as a utility named the BPC LoadRunner Toolkit. (Download) This application converts currently contains three components: 1. The Fiddler Converter utility transforms Fiddler traces of SAP BusinessObjects Planning and Consolidation operations into LoadRunner scripts for the Web Services, Web (HTTP/HTML) and SAP Web LoadRunner protocols. 2. The User Checksum Generator allows you to use multiple user accounts within LoadRunner scripts by generating user specific checksums. Important The User Checksum Generator is specific to the Microsoft releases. 3. The User Context Generator allows you to use multiple user accounts within LoadRunner scripts by generating user specific encrypted contexts. This also allows you to update the application set name with the encrypted context. Important The User Context Generator is specific to the SAP NetWeaver release. 3. Prerequisites HP LoadRunner licensed for one of the following protocols: Web (HTTP/HTML) SAP + Web Web Services Fiddler (for Fiddler Converter Component) A third party tool available at http://www.fiddler2.com/fiddler2/ SAP BusinessObjects Planning and Consolidation, version for SAP NetWeaver or SAP BusinessObjects Planning and Consolidation, version for SAP Microsoft

... 4. How-To use the BPC Fiddler Converter Component This section outlines the steps required to create LoadRunner scripts with the BPC Fiddler Converter utility. 4.1 Using Fiddler to Capture SAP BusinessObjects Planning and Consolidation Processes The first step in this process is to capture the SAP BusinessObjects Planning and Consolidation process that will be converted into a LoadRunner script. This is done with the appropriate SAP BusinessObjects Planning and Consolidation client application and Fiddler. For more information, refer to the How-To guide entitled How-To Use the SAP BusinessObjects Planning and Consolidation, version for SAP NetWeaver Load Runner Utility. 1. Close all applications that are generating HTTP traffic. This limits the amount of extraneous traffic that is captured. 2. Launch fiddler. 3. Once fiddler has completed initializing, launch the SAP BusinessObjects Planning and Consolidation client you want to record. 4. Login to SAP BusinessObjects Planning and Consolidation and navigate to the report, input schedule or other process you wish to execute. At this point Fiddler will have captured a number of SOAP requests.

5. After you complete executing the process, stop capturing traffic in Fiddler by selecting File -> Capture Traffic. 6. The remaining sessions make up all of the HTTP calls that were made in the process you recorded. 7. Save the Fiddler sessions in Fiddlers native format (ArchiveZip). This can be consulted in the future if you want additional details about the requests and responses included in your recording. Note This is an optional step. It is a recommended practice as the resulting file can be loaded in Fiddler at a later time for additional review. 8. Save the remaining sessions as Text. This text file will be used by the utility to create the LoadRunner script. To do this: Select All Sessions Tip If you keep track of the request numbers (leftmost field in Fiddlers Web Sessions dialog) you can save subsets of the sessions individually. This gives you the benefit of more specific LoadRunner transactions. For example, requests 1 through 5 may be for the Login transaction, while requests 6 through 11 may represent a data manager package submission. Select File -> Save -> Session(s) -> As Text

4.2 Converting the Fiddler Trace file to a LoadRunner Script The Fiddler Converter component of the BPC Toolkit for LoadRunner utility reads the details stored in a Fiddler Session file (text) and converts each request into the appropriate LoadRunner request. The resulting output files text acts as the content of the LoadRunner Virtual User Generator Action section.

... In addition, the utility adds the following: A LoadRunner transaction encapsulating all LoadRunner Requests in the Fiddler text file A LoadRunner sub transaction encapsulating each individual LoadRunner Request. The sub transaction name reflects the query type and request index. C utility methods are added for convenience and for use in the verification code. Each valid request captured by Fiddler will be converted to the LoadRunner request specific to the protocol you select. The conversion process performs the following tasks: o Formats the request body appropriately for LoadRunner. o Add Header values where appropriate o Determines if requests are compatible with the selected LoadRunner protocol. If not, a comment is added to the output file. Verification code is added to EvDRE Report and Input Schedule requests. 1. Launch the BPC LoadRunner Toolkit utility. 2. Enter a Primary Transaction Name. The Primary Transaction Name is used for the following: As the name of the primary LoadRunner transaction encapsulating all of the actual requests. As the name of the output file (a.txt extension is added) which contains the HP LoadRunner Virtual User Generator Action section. 3. Select the appropriate BPC Version.

Important The version selected here must match the version you used during the Fiddler recording. For example, this utility cannot convert requests from SAP BusinessObjects Planning and Consolidation 7.0 for Microsoft into SAP BusinessObjects Planning and Consolidation 7.0 for SAP NetWeaver. 4. Select the LoadRunner Protocol that you will use. 5. Select the Transport Protocol (either HTTP/HTTPS) in use.

Tip See the "I get certificate errors or.net security exceptions when debugging with Fiddler2." section in the following document for information on recording BPC over SSL with Fiddler. (http://www.fiddlertool.com/fiddler/help/knownissues.asp) 6. Enter the Fiddler text file created in section 4.1. 7. Enter the Output Directory. This is where the converted file will be stored.

8. The Create Action Section check box determines whether an entire Load Runner Action section gets created, or just the Web or SOAP requests. 9. Click the Convert to LoadRunner button. 10. A dialog box will be displayed when the conversion is complete. The message will review the number of requests converted and the location and name of the output file.

... 4.3 Creating the LoadRunner Script 1. Open HP LoadRunner Virtual User Generator. 2. Create a new script with the LoadRunner protocol you specified in section 4.2. Note If you are using either the Web (HTTP/HTML) or SAP Web protocol, you should select Cancel in the Start Recording dialog. The information we need is in the text file created in section 4.2.

3. Open the text file created in section 4.2 with your favorite text editor (notepad, etc). Select and copy all of the text. 4. Overwrite the contents of the Action section of the LoadRunner script you created (step 2 of this section) with the text in the clipboard.

5. Search for web_set_user in LoadRunner. Once found, update the default arguments. Domain\\Username Replace with the SAP BusinessObjects Planning and Consolidation users Domain\\Username you used in section 4.1. Password Replace with the users password. Note You can encrypt the password using LoadRunner s Password Encoder tool. If you use this tool, you will have to replace the string Password with the function: lr_decrypt( Encoded_String ) ServernameAndPort Replace with the Server name and Port used during the recording process. If unsure, you can obtain it from the URL property in any of the LoadRunner requests.

6. The script is ready to be tested and customized. 4.4 What does the Fiddler Converter do? This section lists the various functions performed by the utility included with this How-To Guide. o Parses the following from the Fiddler text file for each SOAP request and response: SOAP Request URL SOAP Request body HTTP Request Type (POST/GET/etc.) SOAPAction Header Content-Type Header BPC Query Type (AxisQuery/CellQuery/etc.) HTTP Response Code o The SOAP responses are checked for the standard return and/or session status messages. If they are found, verification code will be added to the resulting LoadRunner script for this request. o o o o If the BPC Query Type is an EvDRE report or an Input Schedule then basic verification code will be added to the resulting LoadRunner script for this request. Formats the SOAP 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. Checks for standard Return Status and Session Status messages in responses. Adds verification if for appropriate return codes. Creates a LoadRunner script for the requested protocol, either Web Services or Web (HTTP/HTML). o Wraps all SOAP/HTTP requests in a single LoadRunner transaction. The transaction name is based on the Script Name you specify in the utilities interface. o Creates a LoadRunner sub-transaction for each SOAP/HTTP request, based on the specified Script Name, the BPC query type (if identified) and the numeric ID of the request. o Ignores any unsuccessful (non HTTP-200 status) SOAP/HTTP requests when creating the LoadRunner script. o 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.

o o 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. o Content-Type and SOAPAction HTTP headers are added to the LoadRunner scripts when appropriate. o Adds code to correlate the VIEWSTATE parameter used in BPC Live Reporting. o Adds code to correlate for Reporting Services 5. BPC User Checksum Generator Component The BPC User Checksum Generator component is used to generate username checksums for BPC 5.1 and BPC 7.0 for Microsoft. This is only required if you wish to execute the LoadRunner scripts with a different BPC user (or users) than you used when recording the script. This allows you to use other user accounts by creating the BPC specific checksum values for a range of users. With this, it is possible to parameterize both the username and checksum and avoid any authentication issues. Important This component is only applicable to the BPC 5.1 and 7.0 for Microsoft releases. 5.1 Creating User Checksums User Checksums are created with the BPC Toolkit for LoadRunner. The component is located on the User Checksum Generator tab.

5.1.1 Creating a Checksum for a single user 1. After the BPC LoadRunner Toolkit has been launched, click on the User Checksum Generator tab. 2. Ensure that the Single User radio button is checked. 3. Enter the username in the format a. domain\username Important The Checksums that are generated are case specific. For example, the checksum for Test1 (6S82IPn/4eVRxAhWRRyMJWup/wg=) is different from the checksum of test1 (1tTKttMgl+NS/74V602gUw5IKCA=). The case of the username in the SOAP message must match the case you used to generate the checksum. 4. Click the Generate Checksums button. 5. The resulting checksum will be displayed in the BPC User Checksum textbox on the right.

5.1.2 Creating Checksums for a User Range In many cases you will have a range of test user accounts including many users. The User Range option was created to facilitate this. To create checksums for a range of users: 1. After the BPC LoadRunner Toolkit has been launched, click on the User Checksum Generator tab. 2. Ensure that the User Range radio button is checked. 3. Enter the username prefix in the form: a. domain\username_before_index Example 4. Enter the Username Suffix if one exists. Note This is optional. For example, if your usernames were: td1\bpcuser_1_test td1\bpcuser_2_test Then the Username Prefix would be td1\bpcuser_ and the Username Suffix would be _test 5. Enter the Start Index

6. Enter the End Index 7. Click the Generate Checksums button. 8. The resulting checksum will be displayed in the BPC User Checksum textbox on the right. 5.2 Using the Checksums in a LoadRunner Script As mentioned in the section outline, some SOAP messages that BPC sends contain Username information and a related checksum value. To get LoadRunner scripts for BPC to work with multiple user accounts you must parameterize all username and checksum values, and ensure that each checksum always refers to the username in use in the SOAP message. This section will describe how to configure this. 1. Copy the content from the BPC User Checksums section to a new text file and save it in your LoadRunner script directory with the extension.dat (the default extension for a parameter file).

Note In this example the parameter file is named user_checksums.dat 2. Replace all instances of the originally recorded username with a new parameter named {Username} or something similar. This can be found inside the UserID element of most SOAP calls. a. Text Before b. Replace All c. Text After 3. Replace all instances of the originally recorded checksum with a new parameter named {Checksum} or something similar. This can be found inside the Checksum element of most SOAP calls. a. Text Before b. Replace All c. Text After 4. Open LoadRunners Parameter List dialog (ctrl + L or Vuser -> Parameter List)

5. Create a new parameter named Username and configure it with the appropriate row selection criteria. Specify the dat file created in step 1 as the File Path. Note If unsure use Unique or Random for Select next row and Once for Update Value On. CAUTION Ensure the parameter names match the case exactly of the parameters added to the script in steps 2 and 3 as C is case sensitive. 6. Create a new parameter named Checksum and configure it with the appropriate row selection criteria. Specify the dat file created in step 1 as the File Path. Note The critical configuration for Checksum is to set the Select next row option to Same as Username.

6. BPC User Context Generator Component BPC 7.0 for SAP NetWeaver sends an encrypted copy of the context in the body of some SOAP messages (EvDRE queries, for example). The context includes current view information as well as user information. If an attempt is made to execute a LoadRunner script with a user other than the recording user, and the encrypted context has not been updated, then the.net server will return an authentication failure message. This component allows you to create encrypted contexts for a range of users, based on the context recorded during the initial scripting phase. Important This component is only applicable for the BPC 7.0 for SAP NetWeaver release.

6.1 Creating User Contexts BPC user contexts are created with the User Context Generator component of the BPC Toolkit for LoadRunner. 6.1.1 Creating Contexts for a Single User 1. After the BPC LoadRunner Toolkit has been launched, click on the User Context Generator tab. 2. Select the Single User radio button and enter the username in the form domain\username. 3. (Optional) Enter an application set name if you wish to change that in the encrypted context as well. Note This option was added to facilitate migrating scripts to a different appset. 4. Copy the strcontext element from one of the SOAP calls and paste it in the Source strcontext text box. Tip The strcontext content can be located by searching for <strcontext><![cdata[ in your LoadRunner script. Once located, copy the text between <strcontext><![cdata[ and ]]></strcontext>. Note The context of strcontext can be quite long.

5. Click the Generate Contexts button. 6. The resulting context will be displayed in the BPC User Contexts section. 6.1.2 Creating Contexts for a User Range 1. After the BPC LoadRunner Toolkit has been launched, click on the User Context Generator tab. 2. Select the User Range radio button. 3. Enter the username prefix in the form: a. domain\username_before_index Example 4. Enter the Username Suffix if one exists. Note This is optional. For example, if your usernames were: td1\bpcuser_1_test td1\bpcuser_2_test Then the Username Prefix would be td1\bpcuser_ and the Username Suffix would be _test

5. Enter the Start Index 6. Enter the End Index 7. (Optional) Enter an application set name if you wish to change that in the encrypted context as well. Note This option was added to facilitate migrating scripts to a different appset. 8. Copy the strcontext element from one of the SOAP calls and paste it in the Source strcontext text box. Tip The strcontext content can be located by searching for <strcontext><![cdata[ in your LoadRunner script. Once located, copy the text between <strcontext><![cdata[ and ]]></strcontext>. Note The context of strcontext can be quite long. 9. Click the Generate Contexts button. 10. The resulting contexts will be displayed in the BPC User Contexts section. 6.2 Using the Contexts in a LoadRunner Script As mentioned in the section outline, some SOAP messages that BPC sends contain Username information in a encrypted context. To get LoadRunner scripts for BPC to work with multiple user

accounts you must parameterize all username and encrypted context values, and ensure that each encrypted context always refers to the username in use in the SOAP message. This section will describe how to configure this. 1. Copy the content from the BPC User Contexts section to a new text file and save it in your LoadRunner script directory with the extension.dat (the default extension for a parameter file). Note In this example the parameter file is named user_contexts.dat 2. Replace all instances of the originally recorded username with a new parameter named {Username}, or something similar. This can be found inside the UserID element of most SOAP calls. a. Text Before b. Replace All c. Text After 3. Replace all instances of the originally recorded encrypted context with a parameter named {Context}, or something similar. This can be found within the CDATA section of the strcontext element in many, but not all, SOAP calls. a. Text Before (note context data is much longer than what is displayed below) b. Replace All

c. Text After 4. Open LoadRunners Parameter List dialog (ctrl + L or Vuser -> Parameter List) 5. Create a new parameter named Username and configure it with the appropriate row selection criteria. Specify the dat file created in step 1 as the File Path. Note If unsure use Unique or Random for Select next row and Once for Update Value On.

CAUTION Ensure the parameter names match the case exactly of the parameters added to the script in steps 2 and 3 as C is case sensitive. 6. Create a new parameter named Context and configure it with the appropriate row selection criteria. Specify the dat file created in step 1 as the File Path. Note The critical configuration for Context is to set the Select next row option to Same as Username.

www.sdn.sap.com/irj/sdn/howtoguides