1、默认方式

  Fiddler——若网模拟测试

 

 

 

2、自定义规则

  Fiddler——若网模拟测试

 

 

 

 2.1、固定 阈值

  Fiddler——若网模拟测试

 

   计算公式:

   Fiddler——若网模拟测试

 

 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.

相关文章:

  • 2022-02-09
  • 2021-09-20
  • 2021-07-07
  • 2022-12-23
  • 2022-01-30
  • 2021-08-27
  • 2021-08-27
  • 2021-05-12
猜你喜欢
  • 2021-08-07
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-09-05
相关资源
相似解决方案