当前位置:网站首页>How to use Fiddler for weak network testing
How to use Fiddler for weak network testing
2022-07-27 21:55:00 【Tester graphite】
( My public number “ Ink stone test introduction ”, Share testing skills and experience , Welcome to your attention !)
test APP、web Weak network testing is often needed , That is, when the signal is poor 、 Test when the network is slow . We usually use mobile phones ourselves APP when , On the subway 、 The elevator 、 In garage and other scenes, we often encounter session interruption 、 Overtime, etc , This is a weak network .
Ordinary weak network testing can choose a third-party tool for bandwidth 、 Packet loss 、 Delay, etc. simulate the weak network environment .
Here we take you to unlock Fiddler Weak network simulation function !
Operation steps
explain : If you are an analog phone APP Weak network of , Then you need to make sure Fiddler Can catch the mobile phone APP My bag .
step 1: stay Fiddler Start the weak network
open Fiddler→Performance→ Check Simulate Modem Speed, After checking, you will find that the network speed has slowed down , Because there are preset network parameter values in the system .

step 2: Set network parameters
(1) open Fiddler→Customize Rules;

(2) Find the code outlined below , Set the weak network parameter value here .

analysis : If m_SimulateModem by True, That is to say fiddler Open the weak network mode , So upload 1KB Content needs 300ms( The upload speed after conversion is 1KB/0.3s=3.3KB/s), download 1KB Content needs to be 150ms( The download speed after conversion is 1KB/0.15s=6.6KB/s).
If you want to simulate 2G The Internet , Upload and download configuration is as follows :
oSession["request-trickle-delay"] = "3000";
oSession["response-trickle-delay"] = "1500";
If you want to simulate 3G The Internet , Upload and download configuration is as follows :
oSession["request-trickle-delay"] = "20" ;
oSession["response-trickle-delay"] = "10";
mobile phone APP Use SIM Card data flow , Consider different operators : Unicom 、 Move 、 telecom , According to the uplink rate 、 Download rate to set parameters .
The formula is :[1/( Up or down rate /8)] x 1000
Be careful :1KB=8kb
(3) After setting up , preservation . At this time step 1 Checked Simulate Modem Speed Will be unchecked , You need to check it again before testing .
remarks :
General browser developer tools ( recommend Chrome) It has the function of simulating weak network .
Browser opens developer tools ( Shortcut key F12); choice Network bar , Select the network status according to the demand , Like online 、3G、2G、 Offline, etc .

Weak network test concerns
Weak network testing mainly focuses on when the network condition is bad , Response time of the application 、 Page rendering 、 Timeout prompt 、 Overtime reconnection, etc . We should pay special attention to the problem of data submission during the test , Generally, the front end will time out , Throw an exception prompt after how many seconds , At this time, the data should not be submitted successfully . The software I tested before has appeared , When the network is weak , Data can be submitted successfully many times .
I hope my sharing can help you , More exciting , Please pay attention to my official account “ Ink stone test introduction ”!
边栏推荐
- V2.x synchronization is abnormal. There are a lot of posts that cannot be synchronized in the cloud, and the synchronization is blocked and slow
- Analysis of STL source code
- day 1 - day 4
- Who is the sanctity of the six Chinese enterprises newly sanctioned by the United States?
- Log4j 漏洞仍普遍存在,并持续造成影响
- 8000字讲透OBSA原理与应用实践
- 内部类(四种内部类详解)
- Shengyang technology officially launched the remote voiceprint health return visit service system!
- 软件测试面试题:软件测试项目从什么时候开始?为什么?
- 2021-11-05 understand main method syntax, code block and final keyword
猜你喜欢

如何实现一个好的知识管理系统?

It seems to be a bug of thread pool, but I think the source code design is unreasonable.

An article takes you into the world of pycharm - stop asking me about pycharm installation and environment configuration!!!

In addition to "adding machines", in fact, your micro service can be optimized like this

MySQL execution process and order

看起来是线程池的BUG,但是我认为是源码设计不合理。

STL源码剖析

C language - Introduction - grammar - pointer (12)

IDEA连接MySQL数据库并执行SQL查询操作

学完4种 Redis 集群方案要多久?我一口气给你说完
随机推荐
首发展锐5G芯片!纯国产5G手机海信F50曝光:搭载虎贲T710+春藤510
软件测试面试题:系统测试的策略有多少种?
Software testing interview question: when does the software testing project start? Why?
一口气学完 Redis 集群方案
美国新宣布制裁的6家中国企业到底是何方神圣?
Qt取出输入框字符串,lineEdit
软件测试面试题:通过画因果图来写测试用例的步骤为___、___、___、___及把因果图转换为状态图共五个步骤。 利用因果图生成测试用例的基本步骤是?
Basic usage of two-dimensional array
纳微半导体65W 氮化镓(GaN)方案获小米10 Pro充电器采用
软件测试面试题:请说出这些测试最好由那些人员完成,测试的是什么?
MySQL execution process and order
QT take out the input box string, lineedit
Software testing interview question: what is regression testing?
8000字讲透OBSA原理与应用实践
软件测试面试题:在windows下保存一个文本文件时会弹出保存对话框,如果为文件名建立测试用例,等价类应该怎样划分?
紫光展锐:2020年将有数十款基于春藤510的5G终端商用
@RequestParam注解的详细介绍
IDEA连接MySQL数据库并执行SQL查询操作
声扬科技正式上线闻声远程声纹健康回访服务系统!
In crsctl, the function of displayed home