Jmeter-代理录制脚本

1.新建测试计划,新建线程组 

2.浏览器设置代理(IE-Internet选项-连接-局域网设置-代理服务器) 

3.在工作台下,添加HTTP代理服务器并配置 

计算机生成了可选文字:
试 计 划 
线 程 组 
工 作 台 
HTTP代理服务器 
名 称 : HTTP代理胩务器 
Global Settings 
HTTPS Domains 。 
Test plan content 
目 标 控 制 : 计 剜 > 线 程 组 
分 组 : 不 对 样 本 分 组 
HTTP Sampler settings 
Type: HttpClient4 
Content-type filter 
Include : 
包 念 式 
悱 式 
Prefix: 
自 动 重 定 向 跟 距 重 定 向 
Exclude: 
包 念 模 式 
Use KeepAlive 
囗 hHTML2#ü 
匚 和 ] 匚 二 
Add 0n1 Clipboard 
排 模 式 
Add 0n1 Clipboard 
匚 0 囗 匚 二 ] 
Not 《 Child Listeners Of filtered samplers 
Add suggested Excludes 
] Not 《 Child Listeners Of filtered samplers 
[二@」 匚 0 」 匚 的 囗

4.点击“启动” 

计算机生成了可选文字:
Root CA 〔 e 戊 而 〔 e : 监 a 〔 卜 e 」 Met 巳 rT 巳 m 0 儲 0R00t 〔 监 〔 r 巳 巳 d in 'Meter bin dir 巳 〔 t00 
Root CA certificate : ApacheJMeterTemporaryRootCA created in J Meter bin directory 
You can install it following instructions in Component Reference documentation (see Installing the J Meter CA certificate for HTTPS recording paragraph) 
Please Check the details below when installing the certificate in the browser 
CN= DO NOT INSTALL unless this is your certificate (JMeter root (A), OU=Username : Up123 , C=CN 
Fingerprint(SHAI) : de 72 b4 a8 12 gd 3e cg 48 d2 36 51 4b e4 ee do 68 76 巧 db 
Created: Mon Jul 10 16 : 22 : CST 2017

浏览器-内容-证书-受信任的证书颁发机构-导入-确认安装 

5.点击“重启” 

6.打开浏览器,录制脚本,并查看测试计划下脚本录制情况

posted @ 2017-12-05 10:12  yay1101  阅读(141)  评论(0编辑  收藏  举报