【P40】JMeter Recording Controller (Recording Controller)

1. Description of Recording Controller parameters

可以理解为一个占位符,用来告诉代理服务器将脚本录制到何处,本身无任何逻辑作用;该组件在录制脚本的时候会用到,用来记录录制脚本作为一个临时的保存位置

Select the right button of the thread group >>> Add >>> Logic Controller >>> Recording Controller (Recording Controller)

insert image description here

2. Preparation

Mumu Fresh: http://111.231.103.117/#/login

3. Test plan design

(1), right click on the test plan <<< add <<< thread (user) <<< thread group

insert image description here

  • The parameters are default

(2), right click on the thread group <<< add <<< logic controller <<< recording controller

insert image description here

(3), right click on the test plan <<< add <<< non-test component <<< HTTP proxy server

insert image description here

  • Target Controller: Test Plan > Thread Group > Recording Controller

  • Other parameters can be default

(4) Click Start, click OK in the pop-up window, and a transaction control will pop up on the page: Recorder: Transactions Control

insert image description here

(5) Open the settings on the web page, search for the proxy, click to open the proxy settings of the computer, remember to click save after setting

insert image description here

- Enable use of proxy server

- Address: 127.0.0.1

-Port: 8888 (consistent with the port in the HTTP proxy server and cannot be occupied)

(6) Enter the URL on the webpage to enter: http://111.231.103.117/#/login, enter the account and password, and click Login

insert image description here

(7) After recording, click to stop

insert image description here

(8), back to Jmeter, you can see that there are all http link information under the HTTP proxy server, and the script can be optimized later

insert image description here

Recording Controller: When recording a script, save it temporarily. Or temporarily choose a name to facilitate the understanding of the business meaning of its recording; when using it, copy the request recorded under the recording controller to the thread group or other components for use

Guess you like

Origin blog.csdn.net/qq_45138120/article/details/130916762