当前位置:网站首页>It smells good. Since I used Charles, Fiddler has been completely uninstalled by me
It smells good. Since I used Charles, Fiddler has been completely uninstalled by me
2022-06-27 22:00:00 【Software testing】
Doing client / When testing the server , It is often necessary to capture and analyze the operation of the client , Check whether the request and response data meet the expectations . Therefore, the ability of capturing packages is a necessary skill for software testing practitioners . At present, the commonly used bag capturing tools in the industry mainly include Fiddler and Charles. This article focuses on the following Charles Basic use of .
Charles It's a support HTTP Network agent software for agent and packet capture . The browser or APP adopt Charles When accessing the network , It can record and display all the messages sent 、 Data received .
01 install
Charles rely on Java Running environment , This machine needs to be configured first jdk( The specific installation configuration is slightly )
visit Charles Official website :https://www.charlesproxy.com/
Click the download button on the right , You can download the latest version Charles, stay Windows Double click to install . The latest version is 4.6.2.
02web Grab the bag
By default , start-up Charles after , You can catch it automatically Chrome browser 、Firefox Browser package , If you can't catch , Please check Charles Whether the agent switch is checked in the “Windows Proxy/Mac Proxy”
03 Common functions
Charles There are two views to view packets , Respectively called “Structure” and “Sequence”
Structure View to classify network requests by domain name accessed
Sequence View sorts network requests by access time 
04 Request filtering
By default Charles Will grab all packets , And show it in the request list . But most of the time , We only have a relationship ip Or a package under a domain name Charles Filters are provided , Help us show / Exclude specified HTTP request .
Charles There are two ways to implement request filtering :
Method 1 :
Below the request list Filter It can realize simple filtering function , Enter keywords to filter out the corresponding URL
Method 2 :
menu bar “Proxy-Recording Settings” in , Set up include( contain ) and exclude( exclude ), You can only display or not display the specified url
05 Weak network test
and Fiddler equally ,Charles It also provides the function of weak network simulation , Test browser /APP Usage under weak network conditions .
In the menu bar “Proxy”–>“Throttle Setting” in ,Charles Built in different network modes :56kbps、256kbps … 3G、4G etc. , To simulate different weak network effects . It can also be modified manually Download and Upload Value , Simulate different speeds .
It should be noted that , The network rate value here , The unit is bps, Corresponding to the commonly used byte/s, You need to divide by 8, As shown in figure of 4096kbps, For the actual 512kb
06 request / Response breakpoint
If you want to intercept a request , Modify the parameters of the request . Or modify the value in a request response , have access to Charles The breakpoint function of .
In the request list , Choose one URL, Right click on the “Breakpoints”, This request is set by default + Response breakpoint . When performing the specified operation ,Charles Will intercept the corresponding request , And support data modification
Modify the response content returned by the server , For example, will success It is amended as follows fail
If you want to do some more detailed breakpoint configuration settings Breakpoint Settings

07APP Grab the bag
and Fiddler equally ,Charles You can also catch APP End of the package , The following settings are required ,ProxySetting Setting in allows remote access HTTP agent

The computer is connected to the mobile phone WiFi, Set... On the mobile terminal WiFi agent , Point to Charles Where ip and 8888 port
Last ,Charles There are many advanced features , You can go to the official website to view the documents for learning .
The house needs to be built layer by layer , Knowledge needs to be learned at one point one . We should lay a good foundation in the process of learning , More hands-on practice , Don't talk much , The last dry goods here ! I stayed up late to sort out the stages ( function 、 Interface 、 automation 、 performance 、 Test open ) Skills learning materials + Practical explanation , Very suitable for studying in private , It's much more efficient than self-study , Share with you .
Get off w/x/g/z/h: Software testing tips dao
Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .
边栏推荐
- GBase 8a OLAP分析函数cume_dist的使用样例
- Read write separation master-slave replication of MySQL
- Stm32f107+lan8720a use stm32subemx to configure network connection +tcp master-slave +udp app
- Go from introduction to practice - polymorphism (note)
- Example of using gbase 8A OLAP function group by grouping sets
- Burp suite遇到的常见问题
- 畅游动态规划之区间DP
- Go from introduction to actual combat - task cancellation (note)
- Experience sharing of meituan 20K Software Test Engineers
- \w和[A-Za-z0-9_],\d和[0-9]等价吗?
猜你喜欢

Go from introduction to actual combat -- channel closing and broadcasting (notes)

Go from starting to Real - Interface (note)

Common problems encountered by burp Suite

Go from introduction to practice -- shared memory concurrency mechanism (notes)

vmware虚拟机PE启动

Simulink导出FMU模型文件方法

Go从入门到实战——Panic和recover(笔记)

List of language weaknesses --cwe, a website worth learning
![[LeetCode]动态规划解分割数组II[Arctic Fox]](/img/a1/4644206db3e14c81f9f64e4da046bf.png)
[LeetCode]动态规划解分割数组II[Arctic Fox]

Summary of Web testing and app testing by bat testing experts
随机推荐
正则表达式
洛谷P5706 再分肥宅水
Luogu p5706 redistributing fertilizer and house water
qt 大文件生成md5校验码
【MySQL】数据库函数通关教程下篇(窗口函数专题)
Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)
AQS SOS AQS with me
GBase 8a的create database 会被查询耗时很长怀疑卡住的现象分析
Go from introduction to practice -- shared memory concurrency mechanism (notes)
\W and [a-za-z0-9_], \Are D and [0-9] equivalent?
[LeetCode]508. 出现次数最多的子树元素和
C语言程序设计详细版 (学习笔记1) 看完不懂,我也没办法。
MYSQL和MongoDB的分析
Gbase 8A method for reducing the impact on the system by controlling resource usage through concurrency during node replacement of V8 version
Hash table - sum of arrays
Little known MySQL import data
Go從入門到實戰——接口(筆記)
我想我要开始写我自己的博客了。
\w和[A-Za-z0-9_],\d和[0-9]等价吗?
开源技术交流丨一站式全自动化运维管家ChengYing入门介绍