1. 首页
  2. 网络技术
  3. 网络基础
  4. HP LOADRUNNER12 说明书

HP LOADRUNNER12 说明书

上传者: 2020-05-13 22:26:30上传 PDF文件 5.97MB 热度 39次
Contents HPLoadRunnerTutorial Contents Welcometotheloadrunnertutorial Whatwillyoulearnduringthistutorial? 6 WhataretheLoadRunnercomponents 6 LoadRunnerTerminology 7 Whatistheloadrunnerloadtestingprocess? 8 StartingHPWebTours 8 DefiningtheApplicationPerformanceRequirements WhereToGofromhere 10 Lesson1:BuildingaVuserScript 11 Introducingvugen-thevirtualUsergenerator CreatingaBlankVuserScript RecordingaVuserscript 12 ViewingtheVuserscript WhereTogofromhere 18 Lesson2:ReplayingYourVuserScript 19 Howdoisetthevusersruntimebehavior? 19 HowdorunmyvuserScript? WherecanIviewinformationaboutthereplay? 24 HowdoIknowifmyscriptreplayedsuccessfully? 26 HowdoIsearchorfilterthereplayresults? 28 WhereTogofromhere Lesson3:SolvingCommonReplayProblems 31 PreparingHPWebToursforreplayerrors Howdolworkwithuniqueservervalues? 32 WhereTogofromhere Lesson4:PreparingaVuserScriptforLoadTesting 36 3 hapter3 HowdoImeasurethedurationofabusinessprocess? 36 HowdoIemulatemultipleusers?...... HowdoIverifyWebpagecontent? 43 HowcanIproducedebugginginformation? 45 Didthereplayofmytestsucceed? 47 WhereTogofromhere Lesson5:CreatingaLoadTestingScenario 49 IntroducingtheLoadRunnerController 49 Howdoistartthecontroller? 50 Thecontrollerataglance 52 HowdoImodifythescriptdetails? 53 Howdoigeneratealoadonthesystem? 53 Howdolemulaterealloadbehavior? 55 HowdoIemulatedifferenttypesofusers? HowdoImonitorthesystemunderload? 61 WhereTogofromhere Lesson6:RunningtheLoadTest 66 TheControllerRunviewataglance Howdoirunaloadtestscenario? 67 HowdoImonitortheapplicationunderload? HowdoIwatchaVuserrunninginrealtime? 70 WherecanIviewasummaryofVuseractions? 71 HowcanIincreasetheloadduringthetest? Howistheapplicationperformingunderload? 73 Didtheapplicationencountererrors? 74 Howdoiknowthatthescenariohasfinishedrunning? 75 Didthesystemperformwellunderload? 76 WhereTogofromhere 76 Lesson7:AnalyzingYourScenario 77 Howdoesananalysissessionwork? 77 Contents Howdostartmyanalysissession? 78 TheAnalysiswindowataglance 79 DidIreachmygoals?(ServiceLevelAgreement) 80 Howdoidefineansla? 81 HowdoIviewasummaryofperformance? 86 Howdoigraphicallyviewperformance 9 Didmyserverperformwell? Savingatemplate HowcanIpinpointthesourceoftheproblem? 94 Whatotherinformationcangatheraboutmyscenariorun? 97 HowcanIpublishmyfindings? Conclusion 101 Welcometotheloadrunnertutorial Welcometotheloadrunnertutorial Performance LoadRunnerbasics TestingOverview ForanintroductiontousingLoadRunnerforTheHP Werecommend performancetesting,seeashort Enterprise thatyouwatch LoadRunnerProductWalk-Through.This Business HowHP willgiveyouanunderstandingofsomeof Channel LoadRunner theLoadRunnerbasicsandterminology providesmany WorksontheHP videosabout Videochannel LoadTesting 手 Whatwillyoulearnduringthistutorial? TheLoadRunnertutorialisaself-pacedprintableguide,designedtoleadyouthroughtheprocess ofloadtestingandfamiliarizeyouwiththeLoadRunnertestingenvironment ThislessonprovidesanintroductiontoLoadRunnerandtestingconcepts Lessons1through4describehowtodevelopavuserscriptusingVuGen-theVirtualUser Generator Lessons5and6explainhowtodesignandrunloadtestsusingtheloadRunnercontroller Lesson7introducestheAnalysistool,showingyouhowtocreategraphsandreportswhich willhelpyouanalyzeyourloadtest Attheconclusionofthistutorial,youwillbereadytodesign,run,andmonitorasimpleloadtestor yourownsystem.Itisrecommendedthatyouworkthroughthetutorialintheorderinwhichthe informationispresented Whataretheloadrunnercomponents? LoadRunnercontainsthefollowingcomponents ThevirtualUserGeneratororVuGenrecordsend-userbusinessprocessesandcreatesan automatedperformancetestingscript,knownasaVuserscript 6 Chapter4 Thecontrollerorganizes,drives,manages,andmonitorstheloadtest Analysishelpsyouview,dissect,andcomparetheresultsoftheloadtests VuGen Controller Analysis LoadGenerators,computersthatrunvuserstogeneratealoadonthesystem LoadRunnerTerminology Term Description Scenario Detinestheeventsthatoccurduringatestingsession,basedon performancerequirements VirtualUsersVusersemulatetheactionsofhumanusersworkingonyoursystem.A orvusers scenariocancontaintenshundredsoreventhousandsofvusers VuserScriptTherecordedactionsofabusinessprocessperformedinyourapplication Protocol aprotocolisthemethodofcommunicationbetweenaclientandtheserver TransactionTomeasuretheperformanceofyoursystem,youdefinetransactions.A transactionrepresentsoneormoreend-userbusinessprocesses.A transactionenablesyoutomeasurehowlongittakestoperformthese businessprocesses Welcometotheloadrunnertutorial Term Description Script Definedbythequantitiesofthevariousresourcesthatarerequiredonaload footprint generatorinordertoexecutetheVuserscript.Typicalresourcesinclude memory,CPUpower,anddiskspace WhatistheLoadRunnerloadtestingprocess? LoadtestingwithLoadRunnertypicallyconsistsoffivephases:planning,scriptcreation,scenario definition,scenarioexecutionandresultsanalysis Plan Create Detine Run Analyze theload yuser the the the test scripts‖scenario‖scenarIo‖results 1.PlanLoadTest.Defineyourperformancetestingrequirements,forexample,numberof concurrentusers,typicalbusinessprocesses,andrequiredresponsetimes 2.CreateVuserScripts.UseVuGentocapturetheend-useractivitiesintoautomatedscripts 3.Defineascenario.Usethecontrollertosetuptheloadtestenvironment 4.Runascenario.Usethecontrollertodrivemanageandmonitortheloadtest 5.AnalyzetheResults.UseLoadRunnerAnalysistocreategraphsandreports,andevaluate thesystemperformance StartingHPWebTours ToillustrateLoadrunnerasasolutionforloadtesting,thistutorialusesperformance requirementsforasampleapplication.Thesampleapplication,HPWebTours,isaweb-based travelagencysystemHPWebToursusersconnecttoawebserver,searchforflights,book flights,andcheckflightitineraries 8 Chapter4 WhileLoadRunnersupportsover50typesofapplications,thistutorialdemonstrateshowtoload testaWeb-basedapplication.IfyouareloadtestingapplicationsthatarenotWeb-based,please contacthpforassistance Inthissectionofthetutorial,youwilllearnhowtostartandlogontoHPWebTours 1.StartthesampleWebserver SelectStartAllProgramsHPSoftware>HPLoadRunnerSamplesWeb> StartHPWebToursServer.Inicon-baseddesktops,suchasWindows8,searchfor"Start HPandselectstartHPWebtoursserverfromtheresults TheStartWebServerdialogboxopens.KeepthisdialogboxopenwhileyouaccesstheWeb Toursapplication 2.OpenHPWebTours SelectstartAllPrograms>hPSoftwareHPLoadrunnersamplesweb>hP WebToursApplicationInicon-baseddesktops,suchasWindows8,searchfor"HP Web"andselectHPWebtoursapplicationfromtheresultsabrowseropensand displaystheHPWebTourshomepage Note:EnsurethatLoadRunnerisinstalledinthedefaultfolderonyourcomputer.If LoadRunnerisinstalledinanon-defaultfolder,thehPWebToursapplicationwillnot open Note:ThehPWebToursapplicationrequiresabrowserwithJavainstalled.Formore information,refertotherelevantjavadocumentation 3.LogontoHPWebTours a.typeinthefollowinginformation: Username:jojo Password:bean b.Ontheleftpane,clickLoginHPWebTourswelcomesyoutotheapplication 4.Reserveaflight a.OntheleftpaneclickFlights.TheFindFlightpageopens b.ChangetheArrivalcitytoLosAngeles c.ClickContinue d.IntheFindFlightpage,acceptthedefaultflightselectionandclickContinue 9 Welcometotheloadrunnertutorial e.InthePaymentDetailspage,clickContinue.TheInvoicepageisdisplayed summarizingyourflightreservation 5.EndyourhPWebTourssession Ontheleftpane,clickSignOfftologoff DefiningtheApplicationPerformance Requirements NowthatyouarefamiliarwithhPWebtours,imaginethatyouaretheperformanceengineer responsibleforsigningoffthatHPWebToursmeetstheneedsofyourbusiness.Yourproject managerhasgivenyou4criteriaforrelease 1.HPWebToursmustsuccessfullyhandle10concurrenttravelagents 2.HPWebToursmustbeabletoprocess10simultaneousflightbookingswithresponsetime notexceeding90seconds 3.HPWebToursmustbeabletohandle10travelagentsrunningsimultaneousitinerarychecks withresponsetimenotexceeding120seconds 4.HPWebToursmustbeabletohandle10agentssigninginandsigningoutofthesystemwith responsetimenotexceeding10seconds Thistutorialwillwalkyouthroughtheprocessofbuildingloadteststhatvalidateeachbusiness requirementsothatyoucanattachapassorfailbeforerelease WhereToGofromHere NowthatyouhavebeenintroducedtotheLoadRunnerbasics,youcanproceedto"Lesson BuildingaVuserScript"onpage11 10
用户评论