Using Rational Performance Tester Version 7
Total Page:16
File Type:pdf, Size:1020Kb
Front cover Using Rational Performance Tester Version 7 Introducing Rational Performance Tester Understanding RPT functions and features Applying RPT to enterprise application testing David Chadwick Ashish Patel Chip Davis Jack Reinstrom Mark Dunn Kent Siefkes Ernest Jessee Pat Silva Andre Kofaldt Susann Ulrich Kevin Mooney Winnie Yeung Robert Nicolas ibm.com/redbooks International Technical Support Organization Using Rational Performance Tester Version 7 March 2008 SG24-7391-00 Note: Before using this information and the product it supports, read the information in “Notices” on page xiii. First Edition (March 2008) This edition applies to IBM Rational Performance Tester Version 7. © Copyright International Business Machines Corporation 2008. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . xiii Trademarks . xiv Preface . xv The team that wrote this book . xvi Become a published author . xviii Comments welcome. xviii Part 1. Understanding Rational Performance Tester . 1 Chapter 1. Introduction. 3 1.1 Overview of IBM Rational Performance Tester . 4 1.1.1 The performance testing problem space. 4 1.1.2 Need for a performance testing tool . 5 1.1.3 Goals of IBM Rational Performance Tester . 6 1.2 Architecture of IBM Rational Performance Tester. 7 1.2.1 Eclipse and Java . 8 1.2.2 TPTP as a tool framework. 8 1.2.3 Building a complete tool chain . 9 1.2.4 Recording in a distributed environment. 9 1.2.5 Scalable distributed playback . 10 1.2.6 Test run monitoring and data collection . 10 1.2.7 Post run analysis. 11 Chapter 2. Performance testing process. 13 2.1 Establishing a performance testing capability . 14 2.2 The performance testing process . 15 2.2.1 Performance test goals . 16 2.2.2 Workload model of the system’s busy hour . 17 2.2.3 Measurements and metrics. 18 2.2.4 Test success criteria . 19 2.2.5 User scenarios in the workload model . 19 2.2.6 Input data variation in user scenarios . 20 2.2.7 Debugging user session tests . 20 2.2.8 Workload model for each experiment . 21 2.2.9 Test execution results and data collection . 22 2.2.10 Analysis and tuning . 24 2.2.11 Performance test final report. 25 2.3 Performance testing artifacts. 26 © Copyright IBM Corp. 2008. All rights reserved. iii 2.3.1 Workload specification . 26 2.3.2 Performance test plan . 27 2.3.3 Performance test tool assets. 27 2.3.4 Performance test results . 27 2.3.5 Performance analysis document. 27 Chapter 3. Recording and test generation . 29 3.1 Configuring the browser before you record . 30 3.1.1 Set the application to record . 30 3.1.2 Verify browser settings . 30 3.1.3 Set Mozilla environment variables . 32 3.1.4 Verify that the Agent Controller is running . 33 3.2 Recording from a secure Web site . 33 3.2.1 Disabling security warnings when recording . 33 3.3 Non-browser recordings . 34 3.4 Reconfiguring IE after recording is interrupted . 34 3.5 Troubleshooting. 35 3.5.1 Agent Controller problems . 35 3.5.2 Proxy recorder architecture. 36 3.5.3 Interpreting a .REC file (recording file) . 36 3.6 HTTP recording tips . 37 3.6.1 Browser caching . 37 3.6.2 Overlapped requests and responses . 38 3.7 Test generation . 38 3.7.1 HTTP test generation . 39 Chapter 4. Test editing and augmentation . 41 4.1 Overview of test editing . 42 4.1.1 What you need to know about editing tests . 42 4.1.2 Editing and augmenting tests versus schedules . 42 4.1.3 General rules when editing . 43 4.1.4 Colors and test editor preferences . 44 4.2 Test editing best practices. 46 4.2.1 Projects and folders . 46 4.2.2 Test search and replace . 46 4.2.3 Maintaining variations of a test . 52 4.3 Editing different types of tests . 53 4.3.1 Editing HTTP tests . 53 4.3.2 Editing Siebel tests . 55 4.3.3 Editing SAP tests . 58 4.3.4 Editing Citrix tests . 62 4.3.5 Other types of systems under test . 64 4.4 Providing tests with test data. 64 iv Using Rational Performance Tester Version 7 4.4.1 Providing test data versus data correlation . 64 4.4.2 Test data considerations . 65 4.4.3 Datapool overview. 65 4.4.4 Creating datapools . 66 4.4.5 Adding datapools to tests . 70 4.4.6 Substituting test values with datapools . 74 4.4.7 Summary of datapool and test editing. 77 4.4.8 Custom test data handling . 79 4.4.9 Using datapools for digital certificates. 80 4.5 Manipulating data correlation . 81 4.5.1 Automatic correlation . 81 4.5.2 Manual correlation. 83 4.5.3 Ensuring proper data correlation. 85 4.6 Adding verification to tests . 89 4.6.1 Verifying expected behavior in HTTP and Siebel tests . 90 4.6.2 Verifying expected behavior in SAP tests . 96 4.6.3 Verifying expected behavior in Citrix tests . 101 4.6.4 Custom verification . ..