Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the basic method of using jmeter?

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "what is the basic use of jmeter". In daily operation, I believe many people have doubts about the basic use of jmeter. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what is the basic use of jmeter?" Next, please follow the editor to study!

1. Testing tool

Jmeter stress testing related tools:

1. Apache-jmeter-3.1

2. JMeterPlugins-Standard-1.4.0 、 JMeterPlugins-Extras-1.4.0

3. ServrerAgent-2.2.1

2.jmeter Test process 2.1 Thread Group

After creating a new test plan (step omitted), select to add a thread group to enter the thread group settings page, where the number of threads represents the number of users, Ramp-Up Period represents the thread group cycle, and the number of cycles represents the specific number of execution.

2.2 http request

Add the http request component under sampler, enter the domain name or IP address at the server name or IP, enter the corresponding port number, select the request type according to the specific request, and write the corresponding URL. If there are parameters, select the parameter type and enter the corresponding parameters. When you need to customize the request header, select the HTTP information header manager in the configuration component.

2.3 Custom parameters

There are two ways to get custom parameters:

-user-defined parameters

Import from scv fil

According to the above configuration, different values in the scv file are separated by "," and act as a set of values. When referencing the corresponding parameters, the circular reference uses the parameter values in the scv file.

-Parameter reference method: & {parameter name}

The defined parameters are global and can be referenced in the & {parameter name} manner in url, request parameters, and so on. For example, the parameters defined above are referenced as & {test}, and the values of each reference will be replaced when using jmeter.

2.4 Random parameters

Random parameters can be introduced through the function helper. Click on the function assistant, select _ UUID in the drop-down options, set the corresponding parameters, and copy and paste the generated expression. Other basic functions can also be introduced through the function assistant to facilitate testing.

2.5 Server status monitoring

Run serverAgent on the server, select the corresponding item in the listener, configure the corresponding address and port number, and select the items to be monitored, such as CPU, memory, etc., and the thread group will draw a chart when running.

At this point, the study on "what is the basic use of jmeter" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report