fiddler 弱网测试

1、fiddle配置 点击Rules选着Customize Rules,在FiddlerScript中找到如下代码进行调整:

 2、配置网络延时

  oSession["request-trickle-delay"] 上行延迟 数字越大网络越差

 oSession["response-trickle-delay"] 下行延迟

延迟对比网络图

 

 3、点击Rules-->performance-->Simulate Modem Speeds 弱网配置成功

二、fiddler模拟网络波动

1、在FiddlerScript中找到如下代码进行调整:

static function randInt(min, max) {
return Math.round(Math.random()*(max-min)+min);
}

if (m_SimulateModem) {
// Delay sends by 300ms per KB uploaded.
//随机延迟
var t = randInt(1,600);
FiddlerObject.log("随机延迟"+t);
oSession["request-trickle-delay"] = ""+t;
// Delay receives by 150ms per KB downloaded.
oSession["response-trickle-delay"] = ""+t;
}

2、打开Rules-->Performance-->Simulate Modem Speeds 配置OK

猜你喜欢

转载自www.cnblogs.com/dwdw/p/12748999.html