Jmeter--http Request Default value (HTTP request Defaults) and access address parameterization

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.