当前位置:网站首页>Use JMeter to record scripts and debug
Use JMeter to record scripts and debug
2022-07-05 18:13:00 【Coffee cat】
First step : stay JMeter Add thread group in , Name it AddBugByJMeter
The second step : Add... Under thread group HTTP Request defaults
add to -> The configuration element ->HTTP Request defaults , Setup server IP And port number (JMeter By default 80 Port number , My Zen configuration is 81 port )
The third step : add to HTTP proxy server
1、 Add non test originals ->HTTP proxy server , And set the port number ( Can pass netstat -ano Check the unused port number in the computer )、 Select the target controller ( Select the previous thread group )
2、 Click on HTTP Start button of proxy server , After startup, it can pass through JMeter In the top right corner of the log View button to check the startup
3、 open Google Chrome Browser Settings agent
Step four : Start recording
1、 use Google Chrome The browser accesses the Zen home page , You can see when opening the home page JMeter The corresponding request information has been recorded .
2、 Continue recording finish adding bug The business of , Exit the Zen management system after completion , Go back to the login page .
3、 Cancel the local proxy setting of the browser after recording .
4、 see JMeter Recording of , You can see a lot of recorded content , There are many of them png、css、gif、js Etc .
Insert picture description here
5、 adopt HTTP Exclusion mode of proxy server , Exclude some unnecessary request information , Such as css、gif、png wait .
Insert picture description here
6、 Delete the original recorded request after setting the include and exclude modes , Record again ( Can be in HTTP Add a listener under the proxy server -> View the result tree to view the recording ).
Step four : Debug script
Two requests in my script recording succeeded , But playback failed , From the request information, we can see that the requested server is api.zentao.net, Other requests are 127.0.0.1. Because I don't know what it is , I don't know if it will affect the playback , So my approach is to disable these two requests first , Continue debugging .
Insert picture description here
Step five : Add view result tree and aggregate report under thread group to view playback .
1、 From the view result tree, you can see that the playback passed .
2、 Log in to the Zen system to see if the addition is really successful ( It turned out to be a failure ,bug There is nothing new in the list bug).
3、 In the view result tree, pass HTML Check each request in the form .
4、 In order to make the test results more intuitive , You can modify the advance in the script bug name , This is changed to Replay
Insert picture description here
5、 After the playback is successful, check whether the Zen manager is successfully added .
Insert picture description here
summary
problem 1: JMeter Use IE Browser failed
Problem appearance : There is no HTTP Request information , Only the fourth step is disabled 2 strip
Problem analysis : It is suspected that it is the browser itself or the setting problem , Not resolved , So it's changed to Google Chrome
original text :https://www.cnblogs.com/tester808/p/6619129.html
The principle of this method is to use the proxy to record the access records of the browser . Another way to record scripts is to use badboy.
边栏推荐
- node_exporter内存使用率不显示
- 开户复杂吗?网上开户安全么?
- Login and connect CDB and PDB
- 让更多港澳青年了解南沙特色文创产品!“南沙麒麟”正式亮相
- Whether to take a duplicate subset with duplicate elements [how to take a subset? How to remove duplicates?]
- 南京大学:新时代数字化人才培养方案探讨
- Matlab built-in function how different colors, matlab subsection function different colors drawing
- 从XML架构生成类
- English sentence pattern reference
- 英语句式参考
猜你喜欢
第十一届中国云计算标准和应用大会 | 云计算国家标准及白皮书系列发布 华云数据全面参与编制
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V
Nacos distributed transactions Seata * * install JDK on Linux, mysql5.7 start Nacos configure ideal call interface coordination (nanny level detail tutorial)
图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
Image classification, just look at me!
使用Jmeter虚拟化table失败
To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
What are the changes in the 2022 PMP Exam?
Let more young people from Hong Kong and Macao know about Nansha's characteristic cultural and creative products! "Nansha kylin" officially appeared
吳恩達團隊2022機器學習課程,來啦
随机推荐
buuctf-pwn write-ups (9)
数值计算方法 Chapter8. 常微分方程的数值解
Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection
ConvMAE(2022-05)
怎么选择外盘期货平台最正规安全?
How to improve the thermal management in PCB design with the effective placement of thermal through holes?
Whether to take a duplicate subset with duplicate elements [how to take a subset? How to remove duplicates?]
文章中的逻辑词
第十一届中国云计算标准和应用大会 | 云计算国家标准及白皮书系列发布 华云数据全面参与编制
Can communication of nano
Elk log analysis system
Neural network self cognition model
Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
职场进阶指南:大厂人必看书籍推荐
To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
Mask wearing detection based on yolov3
金太阳开户安全吗?万一免5开户能办理吗?
Privacy computing helps secure data circulation and sharing
Tkinter window preload
Gimp 2.10 tutorial "suggestions collection"