测试工具_charles

抓取https包:proxy - SSL proxy settings - enable SSL proxying -location:*:443(注意端口号可能需要修改)

                                                                 - Root Certificate 不需要做任何改动!!using automatically 即可!!

禁止pc端连接当前代理:proxy- 取消选中windows proxy  (每次打开都要重复此步骤)

重写连接的服务器地址:tools - map remote - add  (把请求打到另一台服务器,无需改代码,一般用于临时修bug,整体测试还是需要把环境全部改为线下测试机地址)

给请求添加cookie(用于切流):tools - rewrite -enable rewrite -add . 切流到不同机房时,location填写需要添加cookie的URL,下方添加cookie. type为append.   action举个例子:Cookie:hit_cloud=1;cloud_cluster=xx

模拟服务器挂掉:tools - rewrite - 同上 - type选择 response status,  match写200(正常值),replace写500

charles模拟网速:proxy - throttle settings 

猜你喜欢

转载自blog.csdn.net/graceyongqi/article/details/79460440