操作步骤:
选中对应接口请求——>点击AutoResponder——>选中Enable rules、Unmatched requests passthrough、Enable latency——>点击 Add rule——>下拉框中选择 find a file,将本地的json文件添加进来
说明:
1.Enable rules(激活规则):勾选此选项,自动响应才会激活
2.Unmatched requests passthrough(跳过非匹配请求):如果不勾选此选项,那么抓包的时候,会返回
[Fiddler] The Fiddler AutoResponder is enabled, but this request did not match any of the listed rules. Because the "Unmatched requests passthrough" option on the AutoResponder tab is not enabled, this HTTP/404 response has been generated.
这句户的意思是,fiddler的自动响应激活了,但是请求没匹配到任何列表中的规则。而且因为跳过非匹配请求选项没有激活,所以产生了http/404返回结果。
3.Enable latency(激活延迟):勾选了这个选项,在规则里面就可以设置是立即返回响应,还是隔多少毫秒返回响应 ,
4.Add rule(加入规则):点击此按钮则会在规则框里插入一个新的规则
5.import(导入):支持导入之前捕获的saz文件
6.规则框:
规则框有四个列,下面解释每个列的意思:
if requests matches---这里显示的是匹配的条件
then response with---这里显示的是如果匹配条件,返回的文件
latency---这里显示的是延迟时间(毫秒),只有勾选了Enable latecy才会展示出来
comments---注释,这个是为了明白规则的含义,自己设置的文本
网友评论