当前位置:网站首页>JMeter recording interface automation
JMeter recording interface automation
2022-07-27 15:08:00 【weixin_ thirty-nine million one hundred and eighteen thousand a】
One 、 install Jmeter( Refer to the last post )
- install JDK, Configure environment variables JAVA_HOME, The computer Java The environment is normal
- To configure Jmeter environment variable :JMETER_HOME; CLASSPATH normal
- Official website address :Apache JMeter - Download Apache JMeter


Two 、Jmeter Recording web End script
1. open Jmeter, To configure Jmeter Tools
(1) add to 【 Thread group 】
test plan ( Right click ) - add to - Thread group
(2) add to 【 Simple controller 】
Thread group ( Right click ) - add to - Logic controller - Simple controller
(3) add to 【HTTP proxy server 】
test plan ( Right click ) - add to - Non test elements - HTTP proxy server
(4) HTTP proxy server - Troubleshooting mode
.*\.(js|css|PNG|jpg|ico)
.*\.css
.*\.jpg


2.HTTP The port number can be seen in the proxy settings , The agent network information it sends is : ip: Port number ( Such as 127.0.0.1:8880)
3. Open browser proxy network settings , Desktop notification bar network connection icon ---> The Internet and internet attribute ---> agent ---> Set up agent manually
Use Jmeter Agent network , start-up HTTP After the proxy server, you can start recording HTTP request ( Some browser agents follow the system , Some are set independently )

4. If you need to record https request , You need to configure certificates . When starting the proxy server ,Jmeter Under the bin The directory will generate a certificate named ApacheJMeterTemporaryRootCA.crt file . You need to import the certificate Jmeter And browser ( The method of importing browser certificate is the same as fiddler Agreement ) Make sure 2 After installing the certificate on both ends , Before you can record
3、 ... and 、 Installation certificate
1. Jmeter Options -SSL After the manager successfully imports the certificate , stay Jmeter The installation path bin You'll see it in the directory ApacheJMeterTemporaryRootCA.crt This certificate ( Now start HTTP proxy server , Then go to the directory to see whether the certificate is generated )

2. start-up HTTP proxy server
Follow the prompts to install the certificate , You can open the browser and enter the address you want to visit , Start recording interface

3. Turn on HTTP proxy server





4. Then close the browser proxy , You can visit the web page normally
边栏推荐
- 【云享读书会第13期】多媒体处理工具 FFmpeg 工具集
- 被动收入:回归原始且安全的两种赚取方法
- Visual system design example (Halcon WinForm) -10. PLC communication
- 图解 SQL,这也太形象了吧
- FPGA时序约束分享04_output delay 约束
- Detailed explanation of Telnet remote login AAA mode [Huawei ENSP]
- NEFU118 n! How many zeros are there after [basic theorem of arithmetic]
- OBS advanced DXGI acquisition screen process, and how to modify it to its own cursor
- 于不确定中见“安全感” 沃尔沃2022年中问道
- Stm32f103c8t6 drives ssd1306 0.96 "IIC OLED display under Arduino frame
猜你喜欢

Differences among CPU, GPU and NPU

Nokia's patent business was hit for the first time, and Chinese enterprises are not so easy to knead

移动端使用vantUI的list组件,多个tab项来回切换时,列表加载多次导致数据无法正常展示

Stock trading 4

What if win11 wallpaper turns black? The solution of win11 wallpaper blackening

Graphic SQL of giant image

视觉系统设计实例(halcon-winform)-10.PLC通讯

谷歌团队推出新Transformer,优化全景分割方案|CVPR 2022

The mobile terminal uses the list component of vantui. When multiple tab items are switched back and forth, the list is loaded many times, resulting in the failure of normal display of data

telnet远程登录aaa模式详解【华为eNSP】
随机推荐
Kubernetes CNI classification / operation mechanism
电子制造行业的数字化转型突破点在哪?精益制造是关键
STM32F103C8T6在Arduino框架下驱动SH1106 1.3“ IIC OLED显示
图解 SQL,这也太形象了吧
微信小程序实现音乐搜索页面
如何做好企业系统漏洞评估
Disk troubleshooting of kubernetes node
谷歌团队推出新Transformer,优化全景分割方案|CVPR 2022
JUC(JMM、Volatile)
Stm32f103c8t6 drives ssd1306 0.96 "IIC OLED display under Arduino frame
LeetCode 90. 子集 II 回溯/medium
反射
网络设备硬核技术内幕 路由器篇 16 DPDK及其前传(一)
Shell programming specifications and variables
LeetCode 81. 搜索旋转排序数组 II 二分/medium
网络设备硬核技术内幕 路由器篇 4 贾宝玉梦游太虚幻境(下)
面试官问:如何判断一个元素是否在可视区域?
网络设备硬核技术内幕 路由器篇 20 DPDK (五)
An example of building 3D effects on the web based on three.js
The mobile terminal uses the list component of vantui. When multiple tab items are switched back and forth, the list is loaded many times, resulting in the failure of normal display of data