Apache JMeter Introduction, Download and Installation
文章推薦指數: 80 %
Installation of JMeter · Select a .zip file and download the JMeter file · Unzip the folder to your computer · Go to Bin folder inside your JMeter ... Skiptocontent Menu MENUMENUHomeResourcesFREEeBooksQATesting FreeQATrainingTestCasesSDLCTestLink SoftwareTestingBugZillaMobileTestingJIRA AgileMethodologyDatabaseTestingETLTesting QualityAssuranceTestManagementSAPERPTesting Courses SoftwareTesting(LIVECourse)Selenium(LIVECourse) SoftwareTestingSeleniumQTP/UFTJIRAVideosRubyCucumber Automation AutomationTestingSoapUIJIRAAppiumKarateFramework SeleniumQTP/UFTALMQCPostman JMeterLoadRunnerAPITestingRobotFramework TestNGJUnitEclipseMaven TypesOfTesting AllTestingTypesRegressionTestingUnitTestingSmokeTesting FunctionalTestingIntegrationTestingSystemTestingUsabilityTesting UATTestingBetaTestingBlackBoxTestingWhiteBoxtesting LoadTestingStressTestingSecurityTestingPerformanceTesting Tutorials C++C#DevOpsVBScriptTeamManagementComputerNetworkingJest PythonJAVAUNIXSVNAngularJSSpockLaravel SpecFlowJSONFlaskSOAtestMockitoKarma MachineLearningBlockchainGitHubGatlingWiremock Data OraclePL/SQL DataWarehouseExcelVBA BigDataJDBC MongoDB Menu MENUMENUHomeResourcesFREEeBooksQATesting FreeQATrainingTestCasesSDLCTestLink SoftwareTestingBugZillaMobileTestingJIRA AgileMethodologyDatabaseTestingETLTesting QualityAssuranceTestManagementSAPERPTesting Courses SoftwareTesting(LIVECourse)Selenium(LIVECourse) SoftwareTestingSeleniumQTP/UFTJIRAVideosRubyCucumber Automation AutomationTestingSoapUIJIRAAppiumKarateFramework SeleniumQTP/UFTALMQCPostman JMeterLoadRunnerAPITestingRobotFramework TestNGJUnitEclipseMaven TypesOfTesting AllTestingTypesRegressionTestingUnitTestingSmokeTesting FunctionalTestingIntegrationTestingSystemTestingUsabilityTesting UATTestingBetaTestingBlackBoxTestingWhiteBoxtesting LoadTestingStressTestingSecurityTestingPerformanceTesting Tutorials C++C#DevOpsVBScriptTeamManagementComputerNetworkingJest PythonJAVAUNIXSVNAngularJSSpockLaravel SpecFlowJSONFlaskSOAtestMockitoKarma MachineLearningBlockchainGitHubGatlingWiremock Data OraclePL/SQL DataWarehouseExcelVBA BigDataJDBC MongoDB ThisisthefirsttutorialinourJMeterperformancetestingtutorialseries.WehavecoveredalmostallthebasicandadvancedJMetertopicsinthis3-parttexttutorialand23-partvideotutorialseries. =>CheckthecompleteJMetertutorialsserieshere. Inthistutorial,wearegoingtolearnwhatisperformancetesting,whyJMeter,JMeterdownloadandinstallation,andJMetervsHPLoadRunner. PerformanceTestingwithJMeter: PerformanceTestingisthe“Talkoftoday”.YouallknowwhatImean!!Yes,performancetestinghasbecomeoneofthemostimportantexpectationsofclients.Withsuchafastpacelife,noonewantsanappthatevenworks bitslowerthantheexpectedbenchmark. Wehavesuchanenormouscompetitioninamarketthatwecannotaffordtomissthe“P”conceptinatestinglifecycle. BeforewemoveontoexploreJmeteranditsinstallationprocess,weneedtoknowwhatisperformancetestingandhowJMeterasatoolsupportsperformancetesting. Performance: Justasstudentsneedtoperformwelltogetthemselvespromotedtonextlevel.Inthesameway,yourapplication(mobileorthewebordesktop)needstoperformwelltomovenextlevelinamarketwheretherearealotofcompetitors. Performancetestingmeasureshowwellyourapplicationisperformingunderadifferentworkload. Therearemanyparameterswhichareconsideredtodetermineiftheserverunderloadtestisbehavingwellandthosewillbediscussedlaterinthearticle. Let’stakeasimpleexample.Ityped“www.facebook.com”inmybrowseranditdisplayedtheFacebook’shomepageinapprox.10seconds.Nowsay1000peopletyped“www.facebook.com”andhitatthesametimeandGooglehomepagegetsdisplayedinmaybemorethan10seconds So,theperformancechangesunderdifferenceworkload(numberofusers).Thistypeoftestingisutmostimportantasnomatterhowgooddesignandfunctionalitiesyouhaveinyourapplicationbutifitsperformanceispoorthenyouhavehighchancesoflosingallyourpotentialtargetaudience Pleaserefertothediagrambelowformoreclarity: PerformanceTestingmajorlyconsidersbelowparameters: Throughput–Itisdefinedasanumberoftransactionspersecond.ForExample,let’ssayabankcustomercarecanhandleonly30callsatatime,sorestofcallersgetinaqueue.ItmeansthattheThroughputis30 ResponseTime–Thistimeisthetimetakenbytheusertoreceivetheresponsefromtheserver Latencyisthetimeinwhichthefirstbyteofinformationreachestheuserend.Forexample,saysauserhitsanHTTPrequesttoretrieveawebpage.So,thetimeinwhichthefirstbyteofthatwebpageisreceivedisthelatencyofthatrequest Scalability–Itreferstothemaximumloadanapplicationcanwithstand CPULoad,MemoryUsage,andResourceUsage WhatYouWillLearn:WhatisJMeter?WhyJMeter? InstallationofJMeterCommonErrorsinJMeterInstallationComponentsofJMeterHPLoadRunnerv/sJMeterConclusionRecommendedReading WhatisJMeter? JMeterwasfirstdevelopedbyStefanoMazzocchiofApacheSoftware.Basically,JMeterisaJavabaseddesktopapplication.JMeterusesSwinggraphicalAPIwhichmeansthatitisnotimplementedbyplatform-specificcoding. Therefore,JMetercanrunonwindows,Linux,Macetc.ApacheJMeter3.1isthelatestversionavailableinthemarketasofnowwithsomemoreenhancementslinedupforfuture. BelowaresomeoftheprotocolssupportedbyJMeter: HTTP,HTTPS FTP JDBC SOAP SMTP,IMAP LDAP TCP WhyJMeter? SincewehaveamarketfloodedwithperformancetestingtoolssuchasLoadRunner,RationalPerformanceTesting,VSTSandmuchmore,therearemanyreasonswhichpushcompaniesandQAteamstogoforJMeterastheirprimarytoolformeasuringperformance. BelowaresomeofthereasonswhichmakeJMeteroutweighothertoolsinthemarket: FreeTool–JMeterisafreetoolandiseasilyavailableonApachewebsite User-FriendlyInterface–JMeter’sinterfaceishighlyuser-friendlyandtesterscaneasilygetthemselvesfamiliarwithamajorityofitscomponents.Helpdocumentationforeverycomponentisavailableinsidethetool HighlyExtensible– Usercancreatehisownsampler(atypeofrequest)usingJSR223andtherearemanypluginsforSamplersavailablewhichallowtesterstoincreasetestingcapabilities ProtocolsSupport–JMeterisnotonlyusedforapplicationperformancetesting,itsupportsallmajorprotocolssuchasFTP,HTTP,JDBC,LDAP,SOAPetc. RecordingFeature–JMeterhasinbuiltHTTP(S)TestScriptRecorderwhichcanbeusedtorecordallactionsfromawebsiteormobileappandthenloadcanbesimulatedtotestperformanceundervariousloadconditions.Also,thereisachromeextensionavailabletorecordtheactionsandthenthesamescriptcanbeusedinJMetertoscaletheload IntegrationwithSelenium–YoucanalsointegrateJMeterwithSeleniumforAutomationtesting SimpleInstallation–InstallingJMeterisveryeasy.YouneedtohaveJavaInstalledonyourmachineanddownloadJMeterandrunthe.batfile Reports–JMeterprovidesthetree,graphs,tablerepresentationofresultswhichcanbeutilizedasperyourprojectdemand InstallationofJMeter InstallationofJMeterisveryeasy.BeforeinstallingJMeter,pleaseseetheprerequisitesbelow: EnsurethatyouhaveJavainstalledonyourmachine.ToverifytheversionofJavawhichisinstalled,gotocommandpromptandtypejava–version IfJavaisnotInstalled: InCaseyoudon’thaveJavaInstalledthengotohttps://java.com/en/download/anddownloadthelatestJDKversionfromthere.InstalltheJavawithpackageinstaller OnceJavaisinstalled,youneedtosettheJAVA_HOMEvariable FollowthebelowstepstosetyourJAVA_HOME CheckforthedirectorywhereJavaisinstalled.Usually,itwouldbeinstalledsomewherein“C:\ProgramFiles\Java\jdk1.8.0_112” Right,Clickon“MyComputer”andopenpropertieswindow ClicktheEnvironmentVariablesbutton InSystemVariablessection,clickNew EnterJAVA_HOMEinvariablenametextfield ForVariableValueTextfield,enterJDK/JREinstallationpath.Forexample,“C:\ProgramFiles\Java\jdk1.8.0_112”inmycase ClickOK Ascreenshotbelowforyourreference: (Note:Clickonanyimageforenlargedview) Nowopenhttp://jmeter.apache.org/download_jmeter.cgi. Selecta.zipfileanddownloadtheJMeterfile Unzipthefoldertoyourcomputer GotoBinfolderinsideyourJMeterfolderandlaunchthe.batfile ThebatchfilewillrunforasecondandthenyourJMeterUIwillbelaunched.Seebelowforreference AbovestepscompleteJMeterinstallationprocess.Makesurethatyoudonotclosethe.exefileasthatwillalsocloseJMeterUI CommonErrorsinJMeterInstallation SinceJMeterinstallationisquitesimpleandwedon’tneedtorunanypackageorsetanypathwhileinstallingtool,henceyouwon’tfaceanyerrortilldownloadandunzippingfolder.CommonissuesfacedareonlyatthetimeoflaunchingJMeterusinga.batfile. “NotabletofindJavaexecutableorversion”isobserved. Belowaresomeofthepossibleresolutionstomakethatwork: CheckthatPATHvariableinEnvironmentsettingsandverifythatthedirectorycontainingyourjava.exeisthereinthepath Rightclickonthe.batJMeterfileandselect“RunasAdministrator”,itworkssometimes ComponentsofJMeter TestPlan WorkBench ThreadGroup Samplers Listeners ConfigElement Pre-Processor PostProcessor LogicControllers Assertions Timer HTTP(S)ScriptRecorder HPLoadRunnerv/sJMeter AmarketisfloodedwithperformancetestingtoolssuchasNeoLoad,LoadRunner,VSTSetc.henceitisutmostimportanttoknowwheredoesJMeterfitsin.LoadRunnerisamajorplayerintermsofperformancetestingduetoitsextensivelyhightechnicalsupportbutitisahighlypaidtoolwithonelicensecostingtoomuchforasmall-scaleenterprise. BelowaresomeofthedifferencebetweenLoadRunnerandJMeterwhichmakesJMeteranobviouschoiceforthemajority. JmeterLoadRunner OpenSourcetoolandfreetouseHPProductandlicenseisverycostly.Smallenterprisescannotafford. Protocolssupportislimited.LoadRunnerhasthehighestprotocolssupport. JmeterisaJavabasedproductandusessprintbasedAPIwhichmakesitplatformindependentandcanrunonanyenvironmentbeitwin,mac,Linux.ItusesCbasedlanguage,Java,JavaScriptandVB. LoadGenerationcapacityislimited.OnamachinewithhighRAMandprocessor,Jmetercangenerateloadof1-2kusersonly.Puttingmoreloadmayresultsinoutofmemoryexceptions.LoadGenerationcapacityishigherascomparedtoJmeter. TechnicalproficiencyislessinJmeter.LoadRunnerishighlytechnicalproficient. Jmeterhaslotsofcomplexitiesrunningincloud.LoadRunneriseasilyrunnableincloudenvironmenttoo. RecordingfeatureinJmeterisveryeasyandsupportsextensibilitytoo.TherearechromepluginsfromwherescriptscanbedirectlyimportedinJmeter.RecordingfeatureinLoadRunnerislittlecomplexascomparedtoJmeter. Jmeter'sresultsarenotthereal-timeones.LoadRunnerprovidescomparativelymorerealtimeresults JmeterisnotthatefficientwhenusedforenterpriseproductslikeSAP.LoadRunnerprovidesefficientresultsevenwithSAP,Siebeletc. Conclusion JMeterisapowerfultoolinthemarketfortestingthewebandmobileapplications.Itisveryeasytouseanddoesn’trequiremuchprogrammingskillsunlessoneiswritinghisownsamplersinJMeter.Wewillbecoveringdetailsofeachcomponentinupcomingseriesofarticles. =>AlsowatchJMeterinstallationvideotutorial AbouttheAuthor: ThankstoHasneetforcreatingthiswonderfulJMetertutorialtrainingseries.HeisworkingasaQualityAssuranceLead with5+yearsofextensiveexperienceworkingonvarioustestingprojects. ContinuetoPartII–Thesecondpartofthistutorialisonthe“JMeterComponentsInDetails”. Pleaseshareyourcommentsorquestionswithus. =>ClickhereforJMeterTutorials:TheCompleteFreeTrainingOnJMeter(20+Videos) RecommendedReading JMeterVideo1:Introduction,JMeterDownloadandInstall TestingPrimereBookDownload DatabaseTestingWithJMeter HowToAchieveJMeterCorrelationWithExample JmeterTestPlanandWorkBench Top5JMeterPluginsAndHowToUsethem(WithExamples) JMeterTimers:Constant,BeanShellAndGuassianRandomTimer NeoloadTutorial:NeoloadIntroduction,DownloadandInstallation 5thoughtson“ApacheJMeterIntroduction,DownloadandInstallation” lookslikeagoodopensourceoption.thankyouforthedetailedinstallationguide. Reply Hi, Iamgettingthefollowingerrorafterclickingjmeterbatchfile. nabletoaccessjarfilec:\programfiles\jave\jre1.8.0_144\ApacheJMeter.jar myjavaversion:8 OS:win7home systemvariable:JAVA_HOMEandvalue=C:\ProgramFiles\Java\jre1.8.0_144\ Letmeknowyourfeedback Thanks Balu Reply Verygoodwebsiteforlearningnewthings Reply NiceArticle Reply InComparisonbetweenJmeterandLoadrunner –>YouhaveusedSpringinsteadofswinginJmeterDifference3. Maybethisisatextualmistakefromyourend. Reply LeaveaCommentCancelreplyCommentName Email Δ AboutSoftwareTestingHelpHelpingourcommunitysince2006! MostpopularportalforSoftwareprofessionalswith100million+visitsand300,000+followers!YouwillabsolutelyloveourtutorialsonQATesting,Development,SoftwareToolsandServicesReviewsandmore! RecommendedReading JMeterVideo1:Introduction,JMeterDownloadandInstall Protected:TestingPrimereBookDownload DatabaseTestingWithJMeter HowToAchieveJMeterCorrelationWithExample JmeterTestPlanandWorkBench Top5JMeterPluginsAndHowToUsethem(WithExamples) JMeterTimers:Constant,BeanShellAndGuassianRandomTimer NeoloadTutorial:NeoloadIntroduction,DownloadandInstallation JOINOurTeam!
延伸文章資訊
- 1JMeter Plugins :: JMeter-Plugins.org
A custom set of plugins for Apache JMeter, not affiliated with Apache Software Foundation, graphs...
- 2Download Apache JMeter
Download Apache JMeter. We recommend you use a mirror to download our release builds, but you mus...
- 3How to Download and Install JMeter for Windows | Simplilearn
2. Download JMeter · On the website go to the binaries section and download the zip file · Wait f...
- 4Apache JMeter - Apache JMeter™
The Apache JMeter™ application is open source software, a 100% pure Java application designed to ...
- 5Windows 安裝Apache JMeter - 菜鳥工程師肉豬
下載回來後解壓縮,進入解壓後的資料夾 apache-jmeter-x.x/bin 中新增一個環境變數設定(文字)檔 setenv.sh ,然後在裡面設定 JAVA_HOME 參數為JDK的 ...