当前位置:网站首页>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 .
边栏推荐
- Go from introduction to actual combat - only any task is required to complete (notes)
- [leetcode] dynamic programming solution partition array i[red fox]
- 单元测试界的高富帅,Pytest框架,手把手教学,以后测试报告就这么做~
- Stm32f107+lan8720a use stm32subemx to configure network connection +tcp master-slave +udp app
- [LeetCode]572. 另一棵树的子树
- GBase 8a OLAP分析函数cume_dist的使用样例
- Matlab finds the position of a row or column in the matrix
- Method of reading file contents by Excel
- [LeetCode]161. Edit distance of 1
- 北京邮电大学|用于成本和延迟敏感的虚拟网络功能放置和路由的多智能体深度强化学习
猜你喜欢

Go from entry to practice -- CSP concurrency mechanism (note)

百万年薪独家专访,开发人员不修复bug怎么办?

Go from introduction to practice - error mechanism (note)

管理系統-ITclub(下)

Figure countdownlatch and cyclicbarrier based on AQS queue

Interval DP of Changyou dynamic programming
![[LeetCode]动态规划解分割数组II[Arctic Fox]](/img/a1/4644206db3e14c81f9f64e4da046bf.png)
[LeetCode]动态规划解分割数组II[Arctic Fox]

深度学习又有新坑了!悉尼大学提出全新跨模态任务,用文本指导图像进行抠图

Process control task

美团20k软件测试工程师的经验分享
随机推荐
软件测试自动化测试之——接口测试从入门到精通,每天学习一点点
分享|智慧环保-生态文明信息化解决方案(附PDF)
Go从入门到实战——仅执行一次(笔记)
C language programming detailed version (learning note 1) I can't understand it after reading, and I can't help it.
Go从入门到实战——错误机制(笔记)
Little known MySQL import data
[Sword Offer II]剑指 Offer II 029. 排序的循环链表
linux下安装oracle11g 静默安装教程
matlab查找某一行或者某一列在矩阵中的位置
[LeetCode]513. Find the value in the lower left corner of the tree
Express e stack - small items in array
Example of using gbase 8A OLAP function group by grouping sets
Summary of gbase 8A database user password security related parameters
[leetcode] dynamic programming solution partition array i[red fox]
oracle迁移mysql唯一索引大小写不区分别怕
Have time to look at ognl expressions
深度学习又有新坑了!悉尼大学提出全新跨模态任务,用文本指导图像进行抠图
百万年薪独家专访,开发人员不修复bug怎么办?
Go from introduction to actual combat - task cancellation (note)
Gbase 8A OLAP analysis function cume_ Example of dist