当前位置:网站首页>Rewrite, maplocal and maplocal operations of Charles
Rewrite, maplocal and maplocal operations of Charles
2022-06-24 21:22:00 【weixin_ forty-four million one hundred and fifty-one thousand s】
One 、rewrite Tamper with return value
Application scenarios : This function mainly tampers with the return value , To verify whether the front end processes and verifies the returned data correctly , In practice , A lot of times , The return value is uncertain , But the testing work needs to be covered in advance , Avoid appearing after going online , There will be problems for users in the actual environment .
1、 Click on the above “Tools”, choice Rewrite
2、 Check Enable Rewrite
3、 Configuration request , You can directly copy the captured URL To host in , It will automatically fill 
4、 Modify the return value
Type choice body
Where choice Respone
Click when finished OK
Two 、MapLocal
Application scenarios : Point the request to a local file , Local files instead of servers , Back to the front end , It can effectively solve the problem of , Dependence on the server , Bring work to front , However, the local file format should be consistent with that returned by the server , At the same time, the front end should not verify the returned request header
1、 Construct or save the response body 
2、 The modification request points to the specified file , Replace the server response with the contents of the specified file 

3、 ... and 、MapRomote Redirecting servers
Application scenarios : Get rid of the dependence on the front end , You can send a request to a custom server , Meet the needs of rapid iteration and testing
1、 Click on the above “Tools”, choice Map Remote
2、 Check Enable Map Remote
3、 Configuration request , You can directly copy the captured URL To host in , It will automatically fill 
边栏推荐
- Can the OPDS SQL component pass process parameters to the next component through context
- Responsibility chain mode -- through interview
- Concepts of kubernetes components
- Power apps Guide
- Prototype mode -- clone monster Army
- 红象云腾完成与龙蜥操作系统兼容适配,产品运行稳定
- List set Introduction & common methods
- Berkeley, MIT, Cambridge, deepmind and other industry leaders' online lectures: towards safe, reliable and controllable AI
- Procedural life: a few things you should know when entering the workplace
- What will you do if you have been ignored by your leaders at work?
猜你喜欢

Page replacement of virtual memory paging mechanism

Enjoy yuan mode -- a large number of flying dragons

Read all text from stdin to a string

Procedural life: a few things you should know when entering the workplace

Limit summary (under update)

Static routing job

How to apply agile development ideas to other work

JMeter response assertion

What does virtualization mean? What technologies are included? What is the difference with private cloud?
浅谈MySql update会锁定哪些范围的数据
随机推荐
Appium desktop introduction
Appium introduction and environment installation
Realization of truth table assignment by discrete mathematical programming
Codeforces Round #720 (Div. 2)
Vant component used in wechat applet
JMeter basic learning records
Interpreter mode -- formulas for dating
Reflection - class object function - get method (case)
Can the OPDS SQL component pass process parameters to the next component through context
Dijkstra seeking secondary short circuit (easy to understand)
VIM usage
ping: www.baidu.com: 未知的名称或服务
Limit summary (under update)
Return of missing persons
Does the developer want to change to software testing?
Oauth1.0 introduction
More than ten years' work experience is recommended at the bottom of the box: how much does it cost to find a job? See here! Brothers and sisters are recommended to collect and pay attention
Talking about the range of data that MySQL update will lock
Pytest testing framework
刚购买了一个MYSQL数据库,提示已有实例,控制台登录实例要提供数据库账号,我如何知道数据库账号。