当前位置:网站首页>Charles replaces the interface response information
Charles replaces the interface response information
2022-07-30 04:09:00 【silent bloom】
Scenario:
You need to test a certain scenario where an interface returns a page, but in the current test environment, the unresponsive scenario case can return the content you need.
For example, you want to check whether the page supports html hyperlinks, but at this time, the response file of the interface does not return html hyperlinks.
At this time, Charles can be used to replace the response file of the interface to be tested.
Steps
1. Open Charles and find the corresponding interface information
You can use any packet capture tool here, as well as the one that comes with Google Chrome
Right click, save response file
2. Open the response file, edit it to the content you need, and save it
3. Go back to Charles, right click on this interface, click on the last map local
a. If you need to request this interface multiple times, and the request head will change, you can delete the content in aDrop
b. Select the file you need to replace in box b to replace
4. Re-request the interface just now, and the page will be displayed as you want.
边栏推荐
- Pytorch框架学习记录4——数据集的使用(torchvision.dataset)
- Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Products (6) Question Opening and Defense PPT
- forward与redirect的区别
- 恐造成下一个“千年虫”的闰秒,遭科技巨头们联合抵制
- Detailed transport layer
- How to compare struct, slice, map for equality and the difference between several comparison methods in golang
- LeetCode 114. Expand Binary Tree into Linked List (One Question Three Eats)
- 发给你的好友,让 TA 请你吃炸鸡!
- [ 云原生之谜 ] 云原生背景 && 定义 && 相关技术详解?
- 第51篇-知乎请求头参数分析【2022-07-28】
猜你喜欢
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Product (8) Graduation Design Thesis Template
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Works (7) Interim Inspection Report
Atomic Guarantees of Redis Distributed Locks
redis分布式锁的原子保证
小程序毕设作品之微信二手交易小程序毕业设计成品(5)任务书
【C进阶】数组传参与函数指针
How to Effectively Conduct Retrospective Meetings (Part 1)?
Basic introduction to protect the network operations
Microservice CAP Principles
逆向理论知识3【UI修改篇】
随机推荐
Chapter 51 - Knowing the request header parameter analysis【2022-07-28】
Pytorch框架学习记录2——TensorBoard的使用
Pytorch框架学习记录7——卷积层
海外多家权威媒体热议波场TRON:为互联网去中心化奠定基础
Redis server启动后会做哪些操作?
恐造成下一个“千年虫”的闰秒,遭科技巨头们联合抵制
Reverse Theory Knowledge 3 [UI Modification]
小程序毕设作品之微信积分商城小程序毕业设计成品(7)中期检查报告
2022-07-29 Group 4 Self-cultivation class study notes (every day)
Eureka注册中心
发给你的好友,让 TA 请你吃炸鸡!
Roperties类配置文件&DOS查看主机网络情况
SQLSERVER merges subquery data into one field
Uptime Monitoring: How to Ensure Network Device Uptime
【驱动】udev为USB转4串口的每个串口起别名
Pytorch framework learning record 2 - the use of TensorBoard
Roperties class configuration file & DOS to view the host network situation
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Work (5) Task Book
弘玑再度入围Gartner 2022 RPA魔力象限并实现位置大幅跃升
[ 云原生之谜 ] 云原生背景 && 定义 && 相关技术详解?