Download and use the JMeter plugin

1. Plugin download

Download address: http://jmeter-plugins.org/downloads/all/

Download plugins-manager.jar and put it into lib/ext directory, then restart JMeter.

Download Plugins manager.jar on the official website, and then put it under lib/ext in the Jmeter installation directory. This path is the storage path of the extension jar package.

this is mine:

2. Plug-in view:

1. Restart JMeter, if no error is reported, it means that the jar package of this version does not conflict with your JMeter version, otherwise you need to download other plugins corresponding to your JMeter version.

For example, many people have used these plugins before:

JMeterPlugins-Standard-1.4.0

ServerAgent

JMeterPlugins-Extras-1.4..0

Now I downloaded a JMeter Plugins Manager jar package that contains the functions of the three packages above.

 

2. You can see the plugin in the Jmeter->Options->Plugins Manager menu:

 

3. Plugin management

3. Open the Plugins Manager Plugins Manager:

This manages all the plugins you have installed (Installed Plugins), some other plugins that can be downloaded (Avaliable Plugins), and some plugin updates (Upgrades).

 

4. Enter the name of the component part you want in the search box, and he will search for the relevant plug-in. If it is not installed, go to the Available Plugins panel to download it first, otherwise, add it directly according to the components supported in the installed plug-in. Just go to the Test Plan:

If other plugins are downloaded here, the corresponding jar package will be automatically placed under the lib/ext folder of the JMeter installation directory.

So don't be nervous if there are suddenly more jars that you haven't downloaded.

 

4. Plugin call

5. Add the corresponding components to the Test Plan:

All that start with "jp@gc" are components included in the downloaded plugin:

What I have selected here is the Response Times Distribution view.

Now look at the meaning of several commonly used options:

  1. jp @gc - Active Threads Over Time: Display of the number of active users at different times (chart)
  2. jp @gc - AutoStop Listener : Automatically stop the listener when 
    average Response Time is greater than 10000ms for 10 seconds : Stop the test when the average response time for consecutive 10s is greater than 10000ms 
    average Latency is greater than 5000ms for 10 seconds : When the average waiting time for connection for 10s is greater than 5000ms Stop the test 
    Error Rate is greater than 50% for 10 seconds: Stop the test if the error rate is always higher than 50% within 10s
  3. jp @gc - Bytes Throughput Over Time: In the aggregated report of throughput display (chart) at different times 
    , Throughput is displayed by the number of requests, for example, 1.9/sec, which is 1.9 requests per s; and the display here is Graph by Bytes
  4. jp @gc - Composite Graph:  how 
    many graphs can be displayed together in its Graphs, and it can display multiple graphs at the same time
  5. jp@gc - Flexible File Writer: This plugin allows you to flexibly record test results 
    Filename: where the result is recorded 
      Overwirte existing file: whether to overwrite this file 
    Write File Header: the header of the file (ie the first line of the file) 
    Record each sample: record Different samples (what to record, in what order, how to separate different values) 
    Write File Footer: the end of the file (ie the last line of the file)
  6. jp@gc - Hits per Second: Hits per second
  7. jp@gc - PerfMon Metrics Collector: server performance monitoring controls, including CPU, Memory, Network, I/O, etc. (this function is used to start startAgent on the server to be monitored)
  8. jp@gc - Reponse Latencies Over Time: record the time before the server returns the request after the client sends the request
  9. jp@gc - Reponse Times Distribution:  Displays the distribution of response times for the test, the X-axis shows the response times grouped by time interval, and the Y-axis contains the number of samples per interval
  10. jp@gc - Respose Times Over Time:  Response time overtime, showing the average response time in milliseconds per sample
  11. jp@gc - Response Times vs Threads:  Thread response times, showing how the number of parallel threads changing response times
  12. jp@gc - Transactions per Second: Transactions per  second, the number of transactions per second processed by the server.

 

5. Plugin Results

6. View the selected plug-in results:

After executing the corresponding Test Plan, these components will have corresponding content display:

You can also do basic settings in this component:

Filename : Select an existing jtl file to parse and display the data contained in the file.

Configure: Set the data to be displayed:

Note that these components are based on jtl files.

A Test Plan corresponds to a jmx file. (A test plan will be a jmx format file after saving)

A jmx file corresponds to a jtl result data file:

 

6. Plugin official documentation:

http://www.jmeter-plugins.org/wiki/PluginsManager/

This document contains a lot of information, so read it carefully.

The content corresponding to the "this guide" link in this sentence in the document is even more dry. I will explain in detail in the next article:

If you want to use the Plugins Manager from command-line or programmatically, please read this guide.

 

Okay, I wrote so much first, thank you for reading~~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325519995&siteId=291194637