当前位置:网站首页>Technology sharing | common proxy tools for interface testing
Technology sharing | common proxy tools for interface testing
2022-07-28 08:14:00 【Hua Weiyun】
This article is excerpted from the internal textbook of Hogwarts testing and development society
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:
https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/
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
边栏推荐
- 谈谈DOM0,DOM1,DOM2,DOM3
- 【13】加法器:如何像搭乐高一样搭电路(上)?
- Discrimination coverage index / index coverage / Samsung index
- Mysql, how can we get the number of rows affected by the query?
- 任务管理器中,显示的CPU速度大于它的最大速度【主频】
- C language explanation series - array explanation, one-dimensional array, two-dimensional array
- 聊一聊数据库的行存与列存
- These mobile security browsers are more than a little easy to use
- Google and Stanford jointly issued a document: why do we have to use large models?
- 解析树形结构 js
猜你喜欢
![[event registration] cloud native technology exchange meetup, see you in Guangzhou on August 6](/img/08/b892bd6c14d5ba3691f9b7def29c35.png)
[event registration] cloud native technology exchange meetup, see you in Guangzhou on August 6

使用FFmpeg来批量生成单图+单音频的一图流视频

Synthesis of dna-ag2sqds DNA modified silver sulfide Ag2S quantum dots

DNA modified noble metal nanoparticles | DNA modified copper nanoparticles cunps-dna | research points

Using identity framework to realize JWT identity authentication and authorization in.Net 6.0

"Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary question record (dghjkl)

Lecture notes a utility for everyone to generate PCG

数据化管理洞悉零售及电子商务运营——数据化管理介绍

非关系型数据库之Redis【redis安装】

These mobile security browsers are more than a little easy to use
随机推荐
EMC design strategy - clock
JUC原子类: CAS, Unsafe、CAS缺点、ABA问题如何解决详解
MPLS --- 多协议标签交换技术
What are the different tables in MySQL?
Copper indium sulfide CuInSe2 quantum dots modified DNA (deoxyribonucleic acid) DNA cuinse2qds (Qiyue)
How to understand the adjective prefix of socket: "connection oriented" and "connectionless"
protobuf 基本语法总结
对spark算子aggregateByKey的理解
Change the dataDir path after mysql8.0.16 installation
Yaml parameter configuration based on singleton mode
JUC atomic class: CAS, unsafe, CAS shortcomings, how to solve ABA problems in detail
Protobuf basic grammar summary
What if you are prompted that your connection to this website is not a private connection?
DNA modified noble metal nanoparticles | DNA modified copper nanoparticles cunps-dna | research points
These mobile security browsers are more than a little easy to use
基于单例模式的yaml参数配置
MPLS -- multi protocol label switching technology
DNA cuinseqds near infrared CuInSe quantum dots wrapped deoxyribonucleic acid DNA
[Err] 1055 - Expression#2 of select list is not in GROUP BY clause and contains nonaggregated column
In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]