LoadRunner Controller User’s Guide - 제니시스기술 Controller User’s Guide, Version 7.6 This manual, and the accompanying software and other documentation, is protected by U.S. and

  • Published on
    12-Mar-2018

  • View
    212

  • Download
    0

Embed Size (px)

Transcript

<ul><li><p>LoadRunner Controller Users Guide </p><p>Version 7.6 </p></li><li><p>LoadRunner Controller Users Guide, Version 7.6</p><p>This manual, and the accompanying software and other documentation, is protected by U.S. and </p><p>international copyright laws, and may be used only in accordance with the accompanying license </p><p>agreement. Features of the software, and of other products and services of Mercury Interactive</p><p>Corporation, may be covered by one or more of the following patents: U.S. Patent Nos. 5,701,139;</p><p>5,657,438; 5,511,185; 5,870,559; 5,958,008; 5,974,572; 6,138,157; 6,144,962; 6,205,122; 6,237,006;</p><p>6,341,310; and 6,360,332. Other patents pending. All rights reserved.</p><p>Mercury Interactive, the Mercury Interactive logo, WinRunner, XRunner, FastTrack, LoadRunner,</p><p>LoadRunner TestCenter, TestDirector, TestSuite, WebTest, Astra, Astra SiteManager, Astra SiteTest,</p><p>Astra QuickTest, QuickTest, Open Test Architecture, POPs on Demand, TestRunner, Topaz, Topaz </p><p>ActiveAgent, Topaz Delta, Topaz Observer, Topaz Prism, Twinlook, ActiveTest, ActiveWatch,</p><p>SiteRunner, Freshwater Software, SiteScope, SiteSeer and Global SiteReliance are registered trademarks</p><p>of Mercury Interactive Corporation or its wholly-owned subsidiaries, Freshwater Software, Inc. and </p><p>Mercury Interactive (Israel) Ltd. in the United States and/or other countries.</p><p>ActionTracker, ActiveScreen, ActiveTune, ActiveTest SecureCheck, Astra FastTrack, Astra LoadTest,</p><p>Change Viewer, Conduct, ContentCheck, Dynamic Scan, FastScan, LinkDoctor, ProTune, RapidTest,</p><p>SiteReliance, TestCenter, Topaz AIMS, Topaz Console, Topaz Diagnostics, Topaz Open DataSource,</p><p>Topaz Rent-a-POP, Topaz WeatherMap, TurboLoad, Visual Testing, Visual Web Display and WebTrace</p><p>are trademarks of Mercury Interactive Corporation or its wholly-owned subsidiaries, Freshwater </p><p>Software, Inc. and Mercury Interactive (Israel) Ltd. in the United States and/or other countries. The </p><p>absence of a trademark from this list does not constitute a waiver of Mercury Interactives intellectual</p><p>property rights concerning that trademark.</p><p>All other company, brand and product names are registered trademarks or trademarks of their </p><p>respective holders. Mercury Interactive Corporation disclaims any responsibility for specifying which </p><p>marks are owned by which companies or which organizations.</p><p>Mercury Interactive Corporation</p><p>1325 Borregas Avenue</p><p>Sunnyvale, CA 94089 USA</p><p>Tel: (408) 822-5200</p><p>Toll Free: (800) TEST-911, (866) TOPAZ-4U</p><p>Fax: (408) 822-5300</p><p> 1999 - 2002 Mercury Interactive Corporation, All rights reserved</p><p>If you have any comments or suggestions regarding this document, please send them via e-mail to</p><p>documentation@merc-int.com.</p><p>LRCTRUG7.6/01 </p></li><li><p>Table of Contents </p><p>Welcome to LoadRunner......................................................................xi</p><p>Online Resources ..................................................................................xi</p><p>LoadRunner Documentation Set........................................................ xii</p><p>Using the LoadRunner Documentation Set ...................................... xiii</p><p>Typographical Conventions...............................................................xiv</p><p>PART I: UNDERSTANDING LOADRUNNER </p><p>Chapter 1: Introduction .......................................................................3</p><p>Application Load Testing .....................................................................3</p><p>The LoadRunner Solution ....................................................................4</p><p>Using LoadRunner.................................................................................5</p><p>Working with LoadRunner ..................................................................6</p><p>LoadRunner Vuser Technology.............................................................7</p><p>LoadRunner Vuser Types.......................................................................8</p><p>Chapter 2: The LoadRunner Testing Process......................................15</p><p>Step I: Planning the Test ....................................................................16</p><p>Step II: Creating the Vuser Scripts ....................................................16</p><p>Step III: Creating the Scenario ............................................................16</p><p>Step IV: Running the Scenario ...........................................................17</p><p>Step V: Monitoring a Scenario ...........................................................18</p><p>Step VI: Analyzing Test Results ..........................................................18</p><p>Chapter 3: Load Test Planning............................................................19</p><p>About Load Test Planning ...................................................................19</p><p>Analyzing the Application ..................................................................20</p><p>Defining Testing Objectives ................................................................23</p><p>Planning LoadRunner Implementation..............................................25</p><p>Examining Load Testing Objectives....................................................31</p><p>iii </p></li><li><p>LoadRunner Controller Users Guide </p><p>Chapter 4: The LoadRunner Controller at a Glance ...........................35</p><p>Opening the Controller .....................................................................35</p><p>Introducing the LoadRunner Controller ...........................................38</p><p>Managing Scenario Files .....................................................................42</p><p>Running a Scenario ...........................................................................44</p><p>PART II : DESIGNING A SCENARIO </p><p>Chapter 5: Creating a Manual Scenario .............................................49</p><p>About Creating a Scenario ..................................................................50</p><p>Creating Vuser Groups .......................................................................50</p><p>Configuring Vusers in a Vuser Group ................................................56</p><p>Configuring Load Generators ............................................................59</p><p>Configuring Load Generator Settings ................................................62</p><p>Configuring WAN Emulation Settings................................................70</p><p>Configuring Scripts ............................................................................76</p><p>Using Relative Paths for Scripts...........................................................79</p><p>Chapter 6: Creating a Manual Scenario Using the Percentage Mode 81</p><p>About Creating a Manual Scenario Using the Percentage Mode........81</p><p>Defining the Total Number of Vusers ................................................82</p><p>Assigning Properties to Scripts ............................................................83</p><p>Configuring Scripts ............................................................................86</p><p>Converting a Scenario to the Vuser Group Mode...............................89</p><p>Chapter 7: Creating a Goal-Oriented Scenario .................................91</p><p>About Planning a Goal-Oriented Scenario..........................................91</p><p>Defining Scenario Goals .....................................................................94</p><p>Assigning Properties to Scripts ............................................................99</p><p>Configuring Scripts ..........................................................................102</p><p>Chapter 8: Scheduling a Scenario .....................................................107</p><p>About Scenario Scheduling ...............................................................108</p><p>Delaying the Start of a Scenario .......................................................109</p><p>Selecting a Schedule .........................................................................110</p><p>Scheduling a Scenario ......................................................................111</p><p>Scheduling Vuser Groups .................................................................115</p><p>Adding Vusers to a Scheduled Scenario ............................................119</p><p>iv </p></li><li><p>Table of Contents </p><p>Chapter 9: Using Rendezvous Points ...............................................121</p><p>About Using Rendezvous Points .......................................................121</p><p>Setting the Rendezvous Attributes ...................................................123</p><p>Setting the Rendezvous Policy ..........................................................125</p><p>Disabling and Enabling Rendezvous Points......................................127</p><p>Disabling and Enabling Vusers at Rendezvous Points ......................127</p><p>Viewing Rendezvous Information ....................................................129</p><p>Chapter 10: Configuring a Scenario .................................................131</p><p>About Configuring a Scenario...........................................................131</p><p>Configuring Scenario Run-Time Settings..........................................132</p><p>Setting Timeout Intervals .................................................................133</p><p>Setting the Run-Time File Location .................................................136</p><p>Specifying Path Translation .............................................................138</p><p>Chapter 11: Preparing to Run a Scenario .........................................139</p><p>About Preparing to Run a Scenario ...................................................139</p><p>Specifying a Results Location ...........................................................140</p><p>Results Directory File Structure ........................................................142</p><p>Collating Results ...............................................................................143</p><p>Setting Scenario Summary Information ...........................................145</p><p>Chapter 12: Managing Scenarios Using TestDirector ......................147</p><p>About Managing Scenarios Using TestDirector ...............................147</p><p>Connecting to and Disconnecting from TestDirector .....................148</p><p>Opening Scenarios from a TestDirector Project ...............................151</p><p>Saving Scenarios to a TestDirector Project .......................................152</p><p>Saving Results to a TestDirector Project ...........................................154</p><p>Adding Vuser Scripts from a TestDirector Project ............................155</p><p>PART III : EXECUTING A SCENARIO </p><p>Chapter 13: Running a Scenario .......................................................161</p><p>About Running a Scenario ...............................................................161</p><p>Running an Entire Scenario .............................................................163</p><p>Controlling Vuser Groups .................................................................164</p><p>Controlling Individual Vusers...........................................................167</p><p>Manually Releasing Vusers from a Rendezvous ................................169</p><p>Manually Adding Vusers to a Running Scenario ..............................170</p><p>v </p></li><li><p>LoadRunner Controller Users Guide </p><p>Chapter 14: Viewing Vusers During Execution.................................175</p><p>About Viewing Vusers During Execution .........................................175</p><p>Monitoring Vuser Status ..................................................................176</p><p>Viewing the Output Window ...........................................................181</p><p>Viewing the Vuser Script Log ...........................................................184</p><p>Logging Execution Notes .................................................................186</p><p>Viewing the Agent Summary ...........................................................187</p><p>Chapter 15: Working with Firewalls .................................................189</p><p>About Using Firewalls in LoadRunner ..............................................189</p><p>Overview of Running or Monitoring over the Firewall ...................191</p><p>Configuring the LoadRunner Agents in LAN1 .................................192</p><p>Configuring the Firewall to Allow Agent Access...............................200</p><p>Installing and Configuring the MI_Listener in LAN2.......................201</p><p>Configuring the Controller to Run Vusers or Monitor</p><p>over the Firewall .............................................................................202</p><p>PART IV: MONITORING A SCENARIO </p><p>Chapter 16: Online Monitoring ........................................................207</p><p>About Online Monitoring .................................................................208</p><p>Starting the Monitors .......................................................................210</p><p>Opening Online Monitor Graphs ....................................................212</p><p>Customizing the Graph Display View ..............................................214</p><p>Configuring Online Monitors ...........................................................214</p><p>Setting Monitor Options ...................................................................215</p><p>Configuring Online Graphs .............................................................217</p><p>Merging Graphs ................................................................................221</p><p>Understanding Online Monitor Graphs ..........................................222</p><p>Configuring Online Measurements .................................................223</p><p>Exporting Online Monitor Graphs ..................................................227</p><p>Viewing Data Offline ........................................................................227</p><p>Chapter 17: Monitoring over a Firewall ..........................................229</p><p>About Monitoring over the Firewall ................................................230</p><p>Installing Monitors over Firewall .....................................................230</p><p>Installing MI_Listener ......................................................................235</p><p>Preparing for Data Collection ...........................................................235</p><p>Configuring Server Monitor Properties ............................................236</p><p>Adding and Removing Measurements .............................................238</p><p>Configuring Measurement Frequency .............................................239</p><p>Configuring the Network Delay Monitor over a Firewall.................239</p><p>vi </p></li><li><p>Table of Contents </p><p>Chapter 18: Remote Performance Monitoring ................................241</p><p>About Remote Performance Monitoring ..........................................241</p><p>Installing the Remote Performance Monitor Server ........................242</p><p>Connecting to the Remote Performance Monitor ..........................243</p><p>Monitoring Load Test Data ...............................................................245</p><p>Viewing Online Graphs.....................................................................245</p><p>Customizing Online Graph Settings .................................................248</p><p>Chapter 19: Run-Time and Transaction Monitoring .......................253</p><p>About Run-Time and Transaction Graphs ........................................253</p><p>Run-Time Graphs .............................................</p></li></ul>