0 penilaian0% menganggap dokumen ini bermanfaat (0 suara)
19 tayangan19 halaman
Apache JMeter is an Apache project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.
Apache JMeter is an Apache project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.
Apache JMeter is an Apache project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.
Operating system Support for J meter JMeter is a pure Java application and should run correctly on any system that has a compatible Java implementation. Here is the list of operating system compatible with JMeter 0120 4029000 Steps to Install JMeter Step 1) Install Java Because JMeter is pure Java desktop application, it requires a fully compliant JVM or higher. !ou can download and install the latest version of Java "# $evelopment %it. 0120 4029000 &fter installation is finished, you can use the following procedure to check whether Java J$% is installed successfully in your system 'n (indow)*inu+, go to Terminal #nter command java version 'f Java runtime environment is installed successfully, you will see the output as figure below
'f nothing displays, please re,install Java "# runtime environment 0120 4029000 Step 2) Donload Jmeter -ind the .meter from the url www.apache.org /hoose the Binaries file 0either 1ip or tg12 to download as shown in figure below 0120 4029000 Step !) Installation 'nstallation of JMeter is e+tremely easy and simple. !ou simply un1ip the 1ip)tar file into the directory where you want JMeter to be installed. 3here is no tedious installation screen to deal with4 "imple un1ip and you are done4 5nce the un1ipping is done installation directory structure should look like as figure below 0120 4029000 6iven below is the description of the JMeter directories and its importance JMeter directory contains many files and directory )"in7 /ontains JMeter script file for starting JMeter )do#s7 JMeter documentation files $e%tras7 ant related e+tra files )li")7 /ontains the required Java library for JMeter $li"$e%t7 contains the core .ar files for JMeter and the protocols $li"$ junit7 J8nit library used for JMeter )printa"le&do#s7 Step ') (aun#) JMeter !ou can start JMeter in 9 modes 68' Mode "erver Mode /ommand *ine Mode 0120 4029000 'f you are using (indow, .ust run the file $"in$jmeter*"at to start JMeter in 68' mode as shown below 0120 4029000 'n Bin /lick on .meter.bat :;<: =:<>::: J+Meter ,lement 3he different components of JMeter are called #lements. #ach #lement is designed for a specific purpose.3he figure below gives the some common elements in JMeter. T)read Group 3hread 6roups is a collection of 3hreads. #ach thread represents one user using the application under test. Basically each 3hread simulates one real user request to the server. 3he controls for a thread group allow you to "et the number of threads for each group. -or e+ample, if you set the number of threads as ;::? JMeter will create and simulate ;:: user requests to the server under test. 0120 4029000 0120 4029000 0120 4029000 Samplers JMeter supports testing H33@, -3@ , J$B/ and many other protocols. 3hread 6roups simulate user request to the server 3he user request could be -3@ Aequest, H33@ Aequest, J$B/ Aequest...#tc. 0120 4029000 -T. re/uest0 *et imagine you want to performance test an -3@ server. !ou can use -3@ request sampler in JMeter to do this task. 3his controller lets you send an -3@ Bdownload fileB or Bupload fileB request to an -3@ server. -or e+ample, if you want to download a file B3est.t+tB from a -3@ server under test, you need to configure some parameters in JMeter as figure below 0120 4029000 JMeter ill send -T. #ommand to -T. server 0120 4029000 1TT. re/uest0 3his sampler lets you send an H33@)H33@" request to a web server. /onsider the e+ample below. JMeter send a H33@ request to 6oogle website and retrieve H3M* files or image from this website. 0120 4029000 JD23 re/uest0 3his sampler lets you e+ecute $atabase @erformance 3esting. 't sends a J$B/ Aequest 0an "C* query2 to a database. -or e+ample, a database server has a field testDresult stored in a table name testDtbl. !ou want to query this data from the database server? you can configure JMeter to send a "C* query to this server to retrieve data. 0120 4029000 2S- Sampler0 3his sampler allows you to write a sampler using a B"- scripting language. Here is an e+ample of B"- "ampler in Jmeter 0120 4029000 SMT. Sampler0 To test a mail server "3M@ sampler is use, 3his sampler is used to send email messages using "M3@ protocol. 0120 4029000