当前位置:网站首页>Technology sharing | common proxy tools for interface testing
Technology sharing | common proxy tools for interface testing
2022-07-28 06:51:00 【Yehna rahmin】
In the interface test , There are various powerful agent tools , such as Charles 、 Burpsuite 、 mitmproxy wait . These proxy tools can help us construct various test scenarios 、 And better complete the testing work . The following introduction to Charles Mainly .
Charles
Charles It's a proxy server , It can intercept requests and responses to achieve the purpose of analyzing packets , And support multiple platforms , In the Windows,Mac,Linux Upper use .
Interface and basic settings
Charles Above is the menu bar , Each website visited is recorded on the left / host , Information details are displayed on the right .

session
Charles It can store all kinds of network request information , All requests and responses will be recorded in session in , It can be checked and analyzed . Open... In the menu bar File, Manage... Here session, Including new 、 open 、 Empty... Etc .

Be careful : Each start Charles, Will automatically create a new session
You can also close the record , If you close the record ,Charles All requests will be passed normally , But they won't be recorded in session in , Click below to close the record :

Chart
Chart Records the life cycle of resources , From request to wait to respond to request . It also groups related resources , Like the following 4 individual Resource It's a group. :

SSL
utilize Chart, You can know how long the request takes .
Charles Have your own certificate , be called :Charles Root Certificate, When grabbing data , You may receive warnings about certificates , Need to click trust , The following settings allow you to manually set the certificate :
trust Charles Root Certificate:
Charlse It's an intermediate tool , View and sign the server's certificate for the browser , But at the same time, I will send my certificate to the browser , So there will be a warning , It needs to be added to the trust sequence to work properly , Below is the working diagram :

Weak network test
Software is usually affected by the network , When the network is poor, there will be jams or even error.Charles Bring your own weak net tool , It can simulate the weak network environment , stay Proxy->Throttle Settings Next , Check before use Enable Throttling.
If you want to specify a website , You can check Only for selected hosts, Then set... In the settings in the lower part of the dialog box hosts term .

Throttle Preset: Choose the type of network , Such as choice 56 kbps modem
Bandwidth: bandwidth
Utilistation: Utilization percentage
Round-trip: Round trip delay
边栏推荐
- Leetcode brush question diary sword finger offer II 055. binary search tree iterator
- RayMarching实现体积光渲染
- Compilation and preprocessing of C language
- redis缓存设计与性能优化
- archery数据库审核平台部署
- Optimization ideas from ordinary query commodities to highly concurrent query commodities
- [realize the simple version of minesweeping games]
- 网络——网络层
- Build php7 private warehouse
- Installation and configuration of unit test framework jest with typescript
猜你喜欢
![[pta-- use queues to solve the problem of monkeys choosing kings]](/img/54/94359fb3557ac07f7786ecf61a5409.png)
[pta-- use queues to solve the problem of monkeys choosing kings]

Rain Scene Effect (I)

mysql-8.0.17-winx64(附加navicat)手动配置版安装

Water bottle effect production

如何描述一个BUG以及BUG级别的定义、生命周期

Analysis of the semaphore source code of AQS

cocos2d-x 学习笔记——瓦片地图TiledMap

Which is the best air conduction Bluetooth headset? Air conduction Bluetooth headset ranking

How to calculate the size of structure, segment and Consortium (common body)

Mongodb replica set and partitioned cluster
随机推荐
Yapi vulnerability hanging horse program chongfu.sh processing
测试面试题集锦(二)| 测试工具篇(附答案)
技术分享 | 接口测试价值与体系
What kind of air conduction Bluetooth headset with good configuration is recommended
链表中结点的插入和删除
Build php7 private warehouse
Using C language to realize three piece chess games
[queue, simple application of stack ---- packaging machine]
技术分享 | 如何模拟真实使用场景?mock 技术来帮你
[hash table basics]
How to simulate the implementation of strcpy library functions
prometheus监控nacos
Mongo SSL configuration practice
cocos2d-x 学习笔记——瓦片地图TiledMap
思寒漫谈测试人职业发展
explain详解
Ubuntu18.04+Centos7配置redis主从【学习笔记】
HDU-5806-NanoApeLovesSequenceⅡ(尺取法)
Question skimming record - hash table
测试面试题集锦(一)| 软件测试常见必考问题与流程篇(附答案)