ImageVerifierCode 换一换
格式:PPTX , 页数:123 ,大小:2.18MB ,
资源ID:4606826      下载积分:20 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/4606826.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(loadrunner培训文档.pptx)为本站上传会员【精****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

loadrunner培训文档.pptx

1、LoadRunner Quick TutorialLR78-SLIDES-01A大纲oLoad runner介绍o规划o编写脚本 脚本录制、调试、优化脚本录制、调试、优化o场景设计场景设计 用户数、场景类型、场景计划、运行设置、实时监控用户数、场景类型、场景计划、运行设置、实时监控o场景执行场景执行 调试场景、小压力运行、调试场景、小压力运行、100%负载测试、压力测试负载测试、压力测试o结果分析结果分析 常用指标观察、生成测试报告常用指标观察、生成测试报告第一节LoadRunner介绍介绍为什么要进行压力测试oThe failure of a mission-critical applica

2、tion can be costlyoAssure performance and functionality under real-world conditionsoLocate potential problems before your customers dooReduce development timeoReduce infrastructure costs压力测试分类Find out whether the system can handle the expected load upon deployment under real-world conditions.Find th

3、e applications breaking point.Apply testing that measures whether the applications environment is properly configured to handle expected or potentially unexpected high transaction volumes.Load TestingStress TestingFind the stability of the system with respect to handling large amounts of data over e

4、xtended time periods.Volume TestingFind the behavior and performance of each tier.Component Testing压力测试目标举例pApplication response timeHow long does it take to complete atask?p Configuration sizingWhich configuration provides thebest performance level?p AcceptanceIs the system stable enough to gointo

5、production?p RegressionDoes the new version of the softwareadversely affect response time?p ReliabilityHow stable is the system under aheavy work load?p Capacity planningAt what point does degradation inperformance occur?p Bottleneck identificationWhat is the cause of degradation inperformance?p Pro

6、duct evaluationWhat is the best server for 100users?TestersLoad GenerationSystem Under TestDoyouhavethetestingresources?TestingpersonnelClientmachinesHowdoyousynchronizeusers?Howdoyoucollectandanalyzeresults?Howdoyouachievetestrepeatability?Everybody,clicktheSEARCHbuttonagain手工测试的问题CoordinatorDataba

7、seserverApplicationserverLoadRunner解决方案OvercomesresourcelimitationsProvidesmeaningfulresultswithanalysistoolsAllowsrepeatabletestswithscriptedactionsAnalysisRunsmanyVusersonfewmachinesReplacestesterswithVirtualUsersControllermanagesVirtualUsersDatabaseserverControllerVusersVirtualUserloadgeneratorAp

8、plicationserverLoad GenerationSystem Under TestLoadRunner的实现方法LoadRunner is a complete solution to conduct automated load testing before,during,and after application deployment.LoadRunner allows you to.ScaleIdentifyDiagnosethe application to a predetermined capacity.business processes or system comp

9、onents having trouble.a problem to pinpoint the root cause.LRVUGENVuser Script Recorder records Vuser scripts that simulate the steps of real users using the application.LR CONTROLLERThe Controller is an administrative center for creating,maintaining and executing Scenarios.The Controller assigns Vu

10、sers and load generators to Scenarios,starts and stops load tests and performs other administrative tasks.LRANALYSIS LR Analysis provides graphs and reports.These graphs and reports summarize the system performance.LoadRunner 组件LoadRunner 支持的环境 Web:HTTP(S)CORBAWAPCOMRMILDAPWinsockStreamingFTPIIOPPOP

11、3iModeRealPlayerMS MediaVoice XMLSMTPDatabases:OracleMS SQLServerDB2 SybaseInformixODBCMiddlewareProtocols:CORBACOMEJBsTUXEDOJoltJDBCMQSeriesPlatforms:NT,2000,XPSunHPIBMLinuxERP/CRM:Oracle Apps.SAPSiebelPeopleSoftClarifyBaanLegacy:32705250VT100Internet/IntranetDatabaseserverAppserversWebserversClien

12、ts什么是 Scenario?scriptsrun-timesettingsloadgeneratorsreal-timemonitorsvirtualusersElements of a ScenarioScenarioAscenarioisafilethatdefineswhichVuserstoexecute,thenumberofVuserstorun,thegoalsofthetest,whichcomputerhoststheVusersandtheconditionsunderwhichtoruntheloadtest.LoadRunner的工作方式DatabaseserverA

13、ppserversWebserversLR CONTROLLER LOAD GENERATOR 2 (NY)LRANALYSIS LOAD GENERATOR 1 (SF)1.Create scenarios and assign them to load generators.2.Generates load and sends performance data to controller.3.Access the reports and graphs.2.Generates load and sends performance data to controller.Performance

14、metrics硬件配置需求Win NTWin 2000 Win XP500 MBWin NTWin 2000 Win XP UNIXDepends on the number of Vusers and runtime settings.Win NTWin 2000 Win XP200 MB Operating SystemFree Hard Disk Space256 MB256 MB256 MBMemoryAnalysisLoad GeneratorControllerLR Components压力测试流程DefineGoalsAnalyzesystemGatherSystemUsageD

15、ataRecordScriptsandturnscriptsintoVusersbyaddingtestdataanduserbehaviorCreateScenariosbasedonyourgoalsExecuteScenariosfortestingfirst,running100%andoverloadingAnalyzeresultsdataandpinpointbottlenecksFinetunesystembasedonanalysisdataandre-runthescenarioTweakSystemBasedonAnalysisPlan Load Test1Create

16、Virtual Users2Scenario Creation3Scenario Execution4Results Analysis5Rerunning the scenario indicates whether performance has improved and whether goals have been achieved.压力测试是一项团队工作ManagesthetestapplicationimplementationforallphasesofloadtestingProvidesexpertiseonthebusinessfunctionalityoftheapplic

17、ationundertestforplanningphaseTeam MemberMain ResponsibilityProjectManagerFunctionalExpertCreatesthemulti-userloadonthesystemforallphasesofloadtestingLoadRunnerExpertAnalyzesandtunestheapplicationserverforresultsanalysisphaseApplicationServerPerformanceBasisExpertAnalyzesandtunesthedatabaseserverfor

18、resultsanalysisphaseDatabasePerformanceBasisExpertLoadRunner 团队工作TweakSystemBasedonAnalysisPlan Load Test1Create Virtual Users2Scenario Creation3Scenario Execution4Results Analysis5LRExpertFunctionalExpertProjectManagerLRExpertFunctionalExpertProjectManagerLRExpertLRExpertSysAdminServerExpert(s)SysA

19、dminServerExpert(s)LRExpert返回大纲返回大纲第二节 规划规划在创建脚本之前要进行充分的规划Plan Load Test1Create Virtual Users2Scenario Creation3Scenario Execution4Results Analysis5Goals,business processes,user type,user behaviors,input data,system profiling,scenario design,and LoadRunner installation规划阶段的内容1.建立负载测试的目标 制定出可以用数量衡量的目

20、标标准2.分析被测系统的业务运行状况确定要录制哪些商业流程(business processes)确定业务高峰的负载情况和时间把需要测试的BP的操作步骤形成正式文档准备测试数据3.收集系统的技术信息 确定系统的架构 确定系统各部件的软件情况,使用什么样的数据库服务器?Web服务器?以帮助我们在合理的时间内确定系统瓶颈本次培训使用的Demo软件Start Programs Mercury ToursBefore you access thetraining application:Invoke the ApacheServer(Start Programs StartServer)返回大纲返回大

21、纲第三节编写脚本编写脚本录制Web脚本的方法1.运行VuGen,创建新的脚本4.开始录制5.进行正常的业务流程的操作6.当业务操作完毕后,按Stop Recording将录制结束7.保存脚本2.选择创建Web(HTTP/HTML)protocol的脚本3.设定录制选项 Recording Options.DEMO 老师将会演示如何录制脚本设定录制选项 Recording Options Recording Browser Recording Proxy Advanced CorrelationDEMO Recording Options 两种不同查看脚本的方式TreeViewScriptVie

22、wTree view has icons for the recorded user stepsEach Tree View icon represents a C statement viewable in Script View DEMO Tree and Script View Icon and usage examples什么时候选择不同的录制方式?This is default mode.If problem encountered with form submission or with link clicking then record with URL option check

23、ed under HTML Advanced HTML Recording:URL Recording:Records a separate request for each object requested from the server.Gives best control over traffic.脚本的目录结构C:web_project-Scripts-Action1.cvuser_init.cvuser_end.cLab1Script2.usrAs soon as the script is saved,these are the folders that you will seeL

24、ab1Script2设置回放的运行时刻设置Run-time SettingsRun LogicPacingLogThink TimeMiscellaneousSpeed SimulationBrowser EmulationProxyPreferencesContentCheckAvailable for all protocols.Specific to Web.DEMO Run-time Settings 运行脚本Click the Run button to play back the script.The Execution log lists all messages once th

25、e script has stopped running.DEMO Running a script and how to set results directory 常用的调试脚本的工具Test Results windowExecution LogSnapshot Results window Page View Server Response Client RequestRun-Time ViewerDEMO Available debugging tool options本节总结o本节介绍了常用的录制选项o本节介绍了两种录制Web协议脚本的方法o本节介绍了运行时刻的各种设定o本节介绍了

26、一般选项的设定o本节介绍了进行调试脚本的基本工具ActionAsetofrecordeduseractionsinaVuserthatallowsyoutoemulateaparticularusertaskthroughscriptiteration.什么是Action?在Web脚本里面使用多个ActionA Web Vuser(script):Search for a CDOrder the CDLog inGo to checkoutvuser_initRun onceActionRun 3 timesvuser_endRun onceSearch for a DVDOrder the

27、DVDAction1Run 5 timesSearch for a book Order the book Action2Run 4 timesthenthenthenthen使用多个 Action的典型例子最典型的情况是用户登录一次,进行多次业务,然后退出系统:nRecord Login user steps in vuser_initnRecord selecting an item in the first section called ActionnRecord placing items in shopping cart user steps in Action1nRecord Ch

28、eckout and Logout user steps in vuser_endInternetWebserverDBserver如何把不同的操作录制到多个 Actions中?Action list1.Start recording2.Select action file3.Record users steps in the appropriate action file4.Repeat steps 2 and 3 as necessary5.Stop recordingDEMO Adding creating LR Actions 注意设定好开始和结束的状态Always end at th

29、is page if the next iteration is Sign-On or Register.根据测试目标来确定脚本的Action Emulate three types of users where 50%of the users are logging in,25%are searching and the remaining 25%are booking tickets?Load Testing Goal:Record one script with all three business processes under separate actions and apply w

30、eighting.Suggested method:DEMO Creating Weighting如何衡量操作的响应时间?How can I isolatea measurement ofjust the Sign-inresponse time?STEP 1 Start ApplicationSTEP 2 Type username and passwordSTEP 3 Click on Sign-In buttonSTEP 4 Wait for confirmationSTEP 5 Select a departure and arrival citiesSTEP 6 Enter date

31、sSTEP 7 Enter credit card detailsSTEP 8 Click on Submit 什么是Transaction?LoadRunnerTransactionGivesanend-to-endmeasurementoftimeelapsedintheexecutionofoneormorestepsinabusinessprocess.UserWebServerRequest(Transaction starts)Response(Transaction ends)Sign-In transaction took 8 secLoadRunner的Transaction

32、s测量什么内容?LoadRunner transactions measure the transmission and response time between client and server.Transaction开始和结束按钮CommoniconsandusageexamplesStart Transaction SetstartingpointformeasurementEnd TransactionSetendpointformeasurementTransaction的状态nLR_AUTO (default)-use this to detect the transactio

33、n status automaticallynLR_PASS/LR_FAIL/LR_STOP use these when you want to set the transaction status manually in the codeTransactions中的思考时间如何处理?Think timesMay reduce accuracy of transaction measurementsCan be filtered out of Analysis graphs通过检查运行日志来确定Transaction的执行结果Transactions的相关设定参数化的概念 Recorded

34、ScriptSelect San FranciscoParameterized ScriptSelect Selection is hard coded and will select San Francisco on every runSelection is parameterized and will select different city on every run为什么要引入“参数化”?REAL USERSVaried input to the applicationStatic input to the applicationRecorded script(Virtual Use

35、rs)To Emulate real-world behavior and to create realistic results什么时候需要参数化?STEP 1 Start ApplicationSTEP 2Type username and passwordSTEP 3 Click on Sign-In buttonSTEP 4Wait for confirmationSTEP 5Select a departure and arrival citiesSTEP 6 Enter datesSTEP 7Enter credit card detailsSTEP 8Click on Submi

36、t Unique constraintData dependencyData cachingDate constraint如何参数化输入数据 1 Determine which fields to parameterize.2 Replace recorded values with parameters.3 Decide which parameter type to use.4 Create the data file.5 Populate the data file.6 Choose the data access method and the number ofiterations.7

37、 Run the Vuser and analyze the results to verify correct execution.DEMO How to parameterize a input data 参数的类型 Internal DataData FilesMaster DataUser Generated Data External DataUser-Defined Functions Specifying the source for the parameter data.There are three types:File类型参数的数据访问方式SequentialRandomU

38、niqueSame line as Select next tells LoadRunner in what order to use data from the file(data source)如何查看脚本执行时参数的值?To see parameter data in the Execution Log,select Extendedlog and Parameter substitution in the Run-time Settings数据个数和Run Logic的关系To test all data using the Sequential access method,Numbe

39、r of Iterations should equal the number of rows in the data file 什么是检查点 Checkpoint?CheckpointAcheckpointisastepinaVuserscriptwhichverifieswhetheravisualcueappearedasexpected.Verification always results in a PASS or FAIL status在大并发用户压力的情况下验证脚本是否执行成功是负载测试的基本要求Success.Business process complete.Failure.

40、Business process failed.One Vuser running the scriptScript run under load with many concurrent VusersIncrease in load Low load What indicates the ticket was purchased successfully?确定脚本执行成功的标准 LoginSelect departure and arrival citiesSelect departure and arrival datesSelect flightPurchase ticketContin

41、ue ShoppingThere was an error while generating your order!Your itinerary was booked!Thank you for choosing Mercury Tours.通过界面的某些信息来确定脚本是否执行成功Flight confirmation image and text appear after pressing the Secure Purchase button.Image ConfirmationText Confirmation(2)On playback,compare the actual value

42、on the application to the saved expected value.(3)Send the comparison result(the status)as either PASS Test requirement#5 successful.OR FAIL Test requirement#5 failed.(1)Capture the information needed to perform verification.检查点的基本内容 ExpectedValueActualValuePASSIFLoadRunner提供的文本检查点Checkpoint IconsTe

43、xtVuGen allows you to add Checkpoints for verification automatically and also programmatically.A text check is a search for a specified text string on a Web page.Adds web_reg_find function to the script.关联的基本概念介绍 RecordingWebServerLogin(User Name jojo Password bean)Response(SessionID12345)1.Log in U

44、ser Name jojo Password bean2.Your sessionid123453.Request for product info4.Product info foundResponseProduct infoVuGen ScriptRequestforproductinfo(SessionID12345)Dynamic data is hard-coded in the script关联的基本概念介绍-Playing BackWebServerLogin(User Name jojo Password bean)Response(SessionID23456)1.Login

45、 User Name jojo Password bean2.Your sessionid123453.Request for product info4.Product info foundResponseERROR SessionID 12345 has expiredLogin again to get product infoVuGen ScriptRequestforproductinfo(SessionID12345)Reusing recorded dynamic data will cause errors when you replay the script关联的基本概念介绍

46、SolutionWebServerLogin(User Name jojo Password bean)Response(SessionID23456)Requestforproductinfo()ResponseHere is the requested product info1.2.Your 3.4.Correlated VuGen ScriptRecorded dynamic data must be correlated using parameters关联是一个原理性的问题213关联是一个原理性的问题,在任何协议的脚本中都存在关联是开发脚本的最耗时,最烦琐的一个过程.因为每个被测

47、系统都不同 为了减轻关联的工作量,LoadRunner提供了一些自动化关联的辅助工具手工关联的基本步骤1.Play back the script and determine if error is due to correlation.2.Determine which dynamic values to correlate.3.Find the left boundary,right boundary and occurrence of the dynamic value.4.Add a web_reg_save_param function and the arguments to th

48、e script,above the step which requests the page with the value to capture.5.Parameterize the dynamic value in the script every time it occurs.6.Verify correct execution.关联的第一步:脚本回放失败Q:Why did the step creation fail?1.Make a note of which step failed.2.Investigate the Execution Log.通过WDiff查看脚本变化的内容 T

49、here are five differences highlighted.确定哪些动态信息需要关联Name=buyFlights.x,Value=52,ENDITEM,Name=buyFlights.x,Value=23,ENDITEM,Name=buyFlights.y,Value=15,ENDITEM,Name=buyFlights.y,Value=17,ENDITEM,lr_think_time(2);lr_think_time(1);lr_think_time(7);lr_think_time(11);Name=flight_210,Value=on,ENDITEM,Name=fli

50、ght_206,Value=on,ENDITEM,Name=removeSelected.x,Value=101,ENDITEM,Name=removeSelected.x,Value=80,ENDITEM,Name=removeSelected.y,Value=13,ENDITEM,Name=removeSelected.y,Value=10,ENDITEM,lr_think_time(1);12345ThesevaluesrepresentthescreenlocationsofmouseclicksTheyareusedbythescriptbutdonotneedtobecorrela

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服