当前位置:网站首页>fiddler-AutoResponder
fiddler-AutoResponder
2022-07-07 10:09:00 【Splendid Qianyang 813】
https://www.cnblogs.com/yoyoketang/p/10604746.html
Preface
mock It can be said that it is a must ask topic in the interview , My first contact with mock When I was young, I also looked confused . although fiddler The tool has been used for a long time , Breaking point inside , The function of setting automatic data return has been used .
mock The popular point is to simulate the returned data , It's just that the interviewer pretends to force , So professional . Simulated return data , use fiddler Break point to modify the return data and settings AutoResponder Can achieve
AutoResponder
Use AutoResponder, Modify the returned data and save , Let the interface return the modified data
Visit the online address :https://www.cnblogs.com/yoyoketang/ Use fiddler Grab the bag
Find the captured data from the session box , Drag to AutoResponder page

Right click to edit the returned content

It opens at raw, Modify the returned body Content , Point after modification save preservation

Next check Enable rules And check the interface to be set , Re open the browser to see that the content has been modified

Check Enable rules At the same time , You'd better tick it at the same time Unmatched requests passthrougth, This option is to release all unmatched
Add Rule
If we want to request an interface address , return json data , Add here Add Rule It can also be realized
It opens at Rule Editor The second input box , Pick the last one “Find a file”, Find the local json The lower right corner behind the file Save preservation

json The contents of the document are as follows
{"error_code": 0,
"reason": "success",
"result": {
"data": {
"conclusion": "[ Good luck + Official luck + Fortune + Talent and skill ] Like a dragon in the clouds , float upon the clouds , wisdom Strive for progress , Just a little success ",
"analysis": " Desire is difficult and hope is high , If the plan succeeds, the financial resources are great , Suspicion and jealousy are from Change , Like a dragon riding on the cloud ."
}
}
}
Next, enter... In the browser :https://www.baidu.com/ The setting just now will appear json Content

Set the return to local html The same is true for files
Set address jump
When visiting an Internet address , How to jump to the local connection ? You can also set the rule jump here
Set the rules as shown in the following figure , visit https://www.sina.com.cn/ Jump to visit the local jenkins Address http://localhost:8080/login

Analog status code
AutoResponder It can also simulate the status code , such as 302, 401, 502 such

revisit https://www.sina.com.cn/ when , It will pop up 401 Authentication box

Network latency can also be simulated *delay:100
边栏推荐
- Postman interface test IV
- [original] what is the core of programmer team management?
- EXT2 file system
- Agile course training
- A wave of open source notebooks is coming
- The Himalaya web version will pop up after each pause. It is recommended to download the client solution
- Guys, have you ever encountered the case of losing data when Flink CDC reads mysqlbinlog? Every time the task restarts, there is a probability of losing data
- Introduction to automated testing framework
- Luogu p2482 [sdoi2010] zhuguosha
- Win10安装VS2015
猜你喜欢

STM32中AHB总线_APB2总线_APB1总线这些是什么

Pit using BigDecimal

STM32基础知识—内存映射

Web3.0 series distributed storage IPFs

XML配置文件解析与建模

The landing practice of ByteDance kitex in SEMA e-commerce scene

柏拉图和他的三个弟子的故事:如何寻找幸福?如何寻找理想伴侣?

ORM model -- creation and query of data records

The physical meaning of imaginary number J

Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
随机推荐
CDZSC_2022寒假个人训练赛21级(1)
Internship log - day07
Gym - 102219J Kitchen Plates(暴力或拓扑序列)
[ORM framework]
Win10 installation vs2015
Please ask me a question. I started a synchronization task with SQL client. From Mysql to ADB, the historical data has been synchronized normally
MongoDB创建一个隐式数据库用作练习
哈夫曼编码压缩文件
Qualifying 3
ES类和对象、原型
MySQL can connect locally through localhost or 127, but cannot connect through intranet IP (for example, Navicat connection reports an error of 1045 access denied for use...)
CDZSC_ 2022 winter vacation personal training match level 21 (1)
Why are social portals rarely provided in real estate o2o applications?
Horizontal split of database
EXT2 file system
Apprentissage avancé des fonctions en es6
Parameter sniffing (2/2)
C socke server, client, UDP
[untitled]
Can I open a stock trading account online? Is it safe