软件测试学习笔记丨Charles抓包和Mock实战
文章目录
Charles抓包和Mock测试课后作业
[](https://ceshiren.com/t/topic/29668#h-1-2)1. 电脑端抓包
[](https://ceshiren.com/t/topic/29668#h-1-web-3)1. 抓取雪球 Web 端搜索接口数据(图一搜索截图,图二接口截图)
[](https://ceshiren.com/t/topic/29668#h-2-4)2. 查看接口响应状态码与使用的协议版本
[](https://ceshiren.com/t/topic/29668#h-3-json-5)3. 查看请求参数与 json 格式的响应内容
[](https://ceshiren.com/t/topic/29668#h-4-6)4. 快速过滤雪球域名的接口

[](https://ceshiren.com/t/topic/29668#h-5-256-kbps-7)5. 进行弱网测试,选择弱网模式为 256 kbps
Proxy —— Throttle Setting,勾选 Enable Throttling 
[](https://ceshiren.com/t/topic/29668#h-8)* 弱网前
[](https://ceshiren.com/t/topic/29668#h-9)* 弱网后
[](https://ceshiren.com/t/topic/29668#h-2-app-10)2. App 抓包
[](https://ceshiren.com/t/topic/29668#h-1-app-a-11)1. 抓取雪球 app 自选–行情–A 股–涨幅榜股票列表的接口数据

[](https://ceshiren.com/t/topic/29668#h-2-json-12)2. 查看请求参数与 json 格式的响应内容
[](https://ceshiren.com/t/topic/29668#h-3-256-kbps-13)3. 进行弱网测试,选择弱网模式为 256 kbps

[](https://ceshiren.com/t/topic/29668#h-14)* 弱网前
[](https://ceshiren.com/t/topic/29668#h-15)* 弱网后
[](https://ceshiren.com/t/topic/29668#h-3-mock-16)3. mock 测试
[](https://ceshiren.com/t/topic/29668#h-1-app-a-17)1. 使用雪球 app 自选–行情–A 股–涨幅榜股票列表的接口数据

[](https://ceshiren.com/t/topic/29668#h-2-rewrite-18)2. Rewrite:
[](https://ceshiren.com/t/topic/29668#h-1-19)1. 把列表中第一个股票名称改为自己的名字。


[](https://ceshiren.com/t/topic/29668#h-2-hogwarts-20)2. 把列表中第二个股票的代码改为 hogwarts。

[](https://ceshiren.com/t/topic/29668#h-3-map-local-21)3. Map Local:
[](https://ceshiren.com/t/topic/29668#h-1-22)1. 把列表中第一个股票名称改为自己的名字。
[](https://ceshiren.com/t/topic/29668#h-2-hogwarts-23)2. 把列表中第二个股票的代码改为 hogwarts。
[](https://ceshiren.com/t/topic/29668#h-3-type-30-24)3. 把列表中第三支股票的 type 改为 30。















评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论