当前位置:网站首页>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.
边栏推荐
- Chapter 51 - Knowing the request header parameter analysis【2022-07-28】
- Pytorch框架学习记录4——数据集的使用(torchvision.dataset)
- day10--install mysql on linux
- FreeRTOS Personal Notes - Memory Management
- sqlmap use tutorial Daquan command Daquan (graphics)
- MySQL data query (subtotal and sorting)
- [ 云原生之谜 ] 云原生背景 && 定义 && 相关技术详解?
- [Switch] Protocol-Oriented Programming in Swift: Introduction
- The first day of Flink learning - what is batch and streaming computing?
- Charles 替换 接口响应信息
猜你喜欢

Transformation of traditional projects

How to Effectively Conduct Retrospective Meetings (Part 1)?

Basic introduction to protect the network operations

vscode debugging and remote

一起来学习flutter 的布局组件

为什么突然间麒麟 9000 5G 版本,又有库存了?

Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Works (3) Background Functions

Pytorch framework learning record 7 - convolutional layer

redis分布式锁的原子保证

Pytorch框架学习记录4——数据集的使用(torchvision.dataset)
随机推荐
Nacos installation and deployment
PyG搭建R-GCN实现节点分类
Solve the problem of compiling and installing gdb-10.1 unistd.h:663:3: error: #error “Please include config.h first.”
(6) "Digital Electricity" - Diodes and CMOS Gate Circuits (Introduction)
Pytorch框架学习记录6——torch.nn.Module和torch.nn.functional.conv2d的使用
Boutique: Taobao/Tmall Get Order Details API for Purchased Products
函数的底层机制
【C进阶】数组传参与函数指针
Pytorch框架学习记录2——TensorBoard的使用
数组和结构体
Tcp programming
mysql 结构、索引详解
forward与redirect的区别
When the EasyNVR platform is cascaded to the EasyCVR, why can't the video be played after a while?
Redis "super explanation!!!!!!"
[Node accesses MongoDB database]
Nacos cluster partition
Pytorch framework learning record 1 - Dataset class code combat
Pytorch框架学习记录7——卷积层
spicy (two) unit hooks