Basic introduction to using Jmeter

JMeter official website to download the latest version

http://jmeter.apache.org/download_jmeter.cgi

 

Three ways to source scripts:

1. Record with badboy

2. Use the HTTP proxy server component that comes with jmeter to record

3. Manual writing

 

Basic steps of operation:

. . : add thread group   

. . : add colkie manager

. . :csv data set config to parameterize

. . : Add a default request (if the request domain name remains unchanged)

. . : Add specific requests and configure

. . : Set a checkpoint, i.e. respond to assertions

. . : add monitor on thread group: view result tree, aggregate report, graph result

 

 

controller

Add a "Only Once Controller" when you want to execute an action only once.

 

step:

Equivalent to transactions in lr

 

Timer:

Equivalent to think time in lr.

 

 

Add validation:

Right-click the test plan, you can add the component "View Result Tree", which is used to debug the script and delete it when stressed.

The checking mechanism is to respond to the assertion, click the "Add" button, and insert the value that needs to be verified into the text box.

 

Association:

The most commonly associated is the use of regular expression extractors

Add "Post Processor" -> Regular Expression Extractor, and add ${ID} to the following test plan, where ID is the name defined before.

 

You can add any function under "Options" to customize support for operation items, such as adding a random function with a specified range to the added content, and you can add content within the range randomly when you are stressed.

 

Add meeting point

is set in the timer

 

Set the number of users, add monitors

Click on the thread group, you can set the number of concurrent threads, and determine the strategy. By adding a monitor, select the corresponding monitor, and perform statistical analysis on the test results.

 

 

jmeter has little monitoring of the system and can be done by downloading plugins or writing it manually.

 

Open source plugin address:

https://jmeter-plugins.org/wiki/Start/

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327043564&siteId=291194637