fiddler 网速设置

 

1.选择:Rules>>Customize Rules...

或 Ctrl+R

fiddler 网速设置_第1张图片

2.找到:(m_SimulateModem),添加修改代码

fiddler 网速设置_第2张图片

随机延时的代码:

	static function randInt(min, max) {
				return Math.round(Math.random()*(max-min)+min);
			}
			if (m_SimulateModem) {
				// Delay sends by 300ms per KB uploaded.
				oSession["request-trickle-delay"] = ""+randInt(1,50);
				// Delay receives by 150ms per KB downloaded.
				oSession["response-trickle-delay"] = ""+randInt(1,50);
			}

 

你可能感兴趣的:(#,测试)