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

創作不易,轉摘請標明出處。如果有意一起探討測試相關技能可加博主QQ 771268289 博主微信:ding17121598
本文來自博客園,作者:怪圣卡杰,轉載請注明原文鏈接:http://www.rzrgm.cn/dwdw/p/12748999.html
浙公網安備 33010602011771號