1.1.1 Sampling Device
In the 8 class of executable components, the sampler is a typical component that does not interact with other components, and the logic controller refers to the sampler for its child nodes, while the other components (configuration elements, timers, assertions, listeners) need to interact with elements such as samplers.
The JMeter has two classes of controllers, samplers (sampler), and logic controllers.
Sampler is a performance test that sends requests to the server, records response information, records the minimum unit of response time, and different types of sampler can send different types of requests to the server based on the parameters set.
The scope of the JMeter is determined by the structure of the test plan tree.
1.1.1.1 HTTP Requests
Example: Test address: https://baijia.baidu.com/channel?cat=5
L name and comment are named according to the system under test.
L Protocol: Default is NULL, that is, HTTP, example is HTTPS, the protocol is filled with HTTPS
Server name or IP: Fill in the IP or domain name of the server you are testing. such as: 192.168.1.7 or www.baidu.com, example is baijia.baidu.com
L Method: If it is a request, the general default is get
L port number: Fill in the test address of the port, the default is empty, that is, 80
L Path: If the address you are testing has a submenu, you will need to fill in the submenu path here, for example:/channel
L parameter: In the parameter box, the parameter can be added and removed. Example is cat=5, adding a parameter name of cat with a value of 5
L Content Encoding: This value is generally default to empty, if you need to fill out, you need to F12 view the tested page to see response headers Content encoding
On the page being tested F12
Reload the page:
1.1.1.2 FTP Request 1.1.1.2.1 get
Remote file: Whether to add the path will be an error, but in fact, it is successful, the file has been put up, error issues are uncertain.
1.1.1.2.2 put
Note: Remote file: Fill in the path + file will be error, but only write files will not error, the reason is not determined.
JMeter Sampler: HTTP request, FTP request