One, HTTP request default value (HTTP requests Defaults)
1. Built a WordPress open source forum, then every time I visit the address of the forum (server name or IP) is constant, the port is unchanged, the Protocol is unchanged (HTTP protocol), each request to write once, in our HTTP request sampler number of cases, The work of this kind of modification is very large, and is there any way to avoid this situation?
The answer is yes, we can put the default configuration of all HTTP requests in the test plan into the HTTP request default value (HTTP Defaults).
2. Extract duplicate content, only need to define one time, protocol for HTTP, server or IP address: localhost port number: Do not fill the default is 80.
It is important to note that if the HTTP request defaults appear under the test plan, the configuration affects all HTTP request samplers under the test plan, and in the case of thread groups, the scope is the group of threads.
IP addresses and protocols in the Web server in 3.HTTP requests these are removed.
4. Run the next script, successfully
Jmeter--http Request Default value (HTTP request Defaults) and access address parameterization