Fiddler——若网模拟测试

1、默认方式

  

 

 

 

2、自定义规则

  

 

 

 

 2.1、固定 阈值

  

 

   计算公式:

   

 

 2.2、区间 阈值

var customSpeedRuleFlag = fales; // 自定义限速区间

// 自定义弱网区间阈值 (上传、下载 速度,在1-50ms随机)
static function customRandInt(min, max) {
    return Math.round(Math.random()*(max-min)+min);
}

if(customSpeedRule){
    oSession["request-trickle-delay"] = "" + customRandInt(1, 50);
    oSession["response-trickle-delay"] = "" + customRandInt(1, 50);
}

 

   

 

OK.

posted on 2020-07-30 17:29  乘除减加  阅读(190)  评论(0编辑  收藏  举报

导航

作者:乘除减加 出处: 本文版权归 乘除减加 所有,欢迎转载但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。如有问题,可以微信:15510211823 联系我,非常感谢。