弱网测试
1.使用360WiFi 或WiFi共享精灵去控制链接设备的网速
2.使用谷歌(Chrome)浏览器的控制台(f12)控制网络速度
在network里面的offline和online咱们能够控制上传下载速度
Offline离线
Online在线
Slow3G 满3G
Fast3G 快3G
3.使用fiddler进行弱网测试
首先打开fiddler 看端口(Tools options connestions 里面的端口8888
点开浏览器 工具 Internet选项 链接 局域网设置 在为LAN使用代理前打对号 而后点高级 进去设置 http 为127.0.0.1 端口 8888
在浏览器上运行测试网站 点击要测试网站内容,
点开fiddler 按住shift选择选择抓取的内容,看statistics里的运行时间
Requests started at: 16:05:27.931
Responses completed at: 16:05:34.868
在fiddler script 里修改控制数据上传下载的延迟时间
点击save script 保存
if (m_SimulateModem) {
// Delay sends by 123ms per KB uploaded.
oSession[“request-trickle-delay”] = “300”;
// Delay receives by 24ms per KB downloaded.
oSession[“response-trickle-delay”] = “150”;
Save script
在rules performance 里勾选 simulate modem speeds弱网的开关web
抓指定的包
fiddler打断点浏览器