当前位置:网站首页>Weak network test (1)
Weak network test (1)
2022-08-05 12:14:00 【51CTO】
一、为什么要进行弱网测试
Weak net testing is an important part of robust testing,对于移动端测试来说必不可少.This is because the current network where users of mobile products are located is not completely smoothWIFI环境,仍有相当多的用户主要使用4G、3G、2G等网络,另外因移动端产品使用场景多变,如进地铁、上公交、进电梯等,使得弱网测试显得尤为重要.毕竟考虑到各种场景的客户端展示及容错,能极大提升产品印象和用户体验.
二、什么样的网络属于弱网
低于2g速率的时候都属于弱网也可以将3g划分为弱网 一般wifi不纳入弱网测试范围
三、如何进行弱网测试?
弱网环境测试主要依赖于弱网环境的模拟,Build a weak network environment,模拟一个弱网环境即可.可以通过软硬件方式两种.
软件方式:Use simulated network parameters to configure a weak network environment,就可以达到目的.比如,Charles , Fiddler, Network link Conditioner 等.
在各类网络软件中,主要就是对带宽、丢包、延时等进行模拟弱网环境.软件方式的成本低且实施起来容易操作,但是也有一定的弊端,不是非常接近弱网络环境,想要更接近弱网环境,
例如大多数专项测试,会更倾向于通过硬件方式来协助测试,But this method will become very numb 烦,如果出现有些无法模拟的情况,只能靠人工移动到电梯、地铁等信号比较弱的地方.
四、The main points of the test of the weak net test

五、Commonly used tools for weak network testing
1、使用Charles模拟弱网(最常见,适用于PC端和移动端)
- 打开Proxy->Throttle Settings…

- 打开Throttle Settings...页面,Common network speed simulation settings need to be performed according to the following figure

- 配置参数解析:
bandwidth —— 带宽,即上行、下行数据传输速度
utilisation —— 带宽可用率,大部分modern是100%
round-trip latency —— 第一个请求的时延,单位是ms.
MTU —— 最大传输单元,即TCP包的最大size,可以更真实模拟TCP层,每次传输的分包情况.
Releability —— 指连接的可靠性.这里指的是10kb的可靠率.用于模拟网络不稳定.
Stability —— 连接稳定性,也会影响带宽可用性.用于模拟移动网络,Mobile network connection
- Lights up to indicate that the weak network test is on(CharlesThe presets already have common network speed simulation settings,可根据需要设置,You can also add presets yourself)
- 2、使用Chrome浏览器的开发者工具(适用于Web端)
右击鼠标,选择检查, 打开开发者工具,打开Network,点击online下拉框,There are a lot of presets as well

- 也可根据自己的需要选择,自定义添加

3、Use Tencent Weak Network Test ToolQNET(适用于Android)
- QNET首次使用QQLogin requires registrationWeTest平台账号,然后使用QQ登录(TAPDLogin requires staffTAPD账号)

- 登录成功后,A test program needs to be selected,Then open the floating window,Select the test network,点击开始测试,Automatically pull up the test program,Displays the floating window for weak net template control,以及弱网模板信息悬浮窗

- 左边悬浮窗是控制悬浮窗,可以下拉即时切换弱网模板,双击Q按钮可以切回QNET应用,点击暂停按钮可以停止弱网状态恢复正常网络;
右侧悬浮窗显示当前的模板名,实时延迟,实时网速,以及当前模板的具体参数
QNETThere are preset templates,不可删除,可自定义添加
Network setting reference value:

作者:Syw
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.
如果文中有什么错误,欢迎指出.以免更多的人被误导.
边栏推荐
- hello world、hello 计科人
- 【Untitled】
- sentinel介绍和使用
- The Object of the method
- 2022.08.01_Daily Question
- 2022.08.03_Daily Question
- 家用电器行业数智化供应链系统:高效整合供应链,提升家电企业核心竞争力
- Grid Infrastructure Installation Fails with Error
- The Open-Closed Principle (OCP) of the Seven Principles of Software Design
- 使用Netty编写通用redis客户端(可指定服务器地址与端口号连接任意redis)
猜你喜欢

NFT卡牌游戏系统dapp开发NFT链游技术

为了高性能、超大规模的模型训练,这个组合“出道”了

今日开幕:LiveVideoStackCon 2022 音视频技术大会 上海站

我和 TiDB 的故事 | 横看成岭侧成峰

食品饮料行业B2B商城系统:加速行业数字化转型,提升B2B平台交易效率

isn't it?Is there anyone who can't locate the slow query problem of MySQL online?
尚硅谷-JVM-性能监控与调优篇(P302~P381)

2022.08.01_每日一题

shell脚本,帮你提升摸鱼时间!

InnoDB storage structure of MySQL
随机推荐
2022.08.04_每日一题
今日开幕:LiveVideoStackCon 2022 音视频技术大会 上海站
2021 RoboCom World Robot Developers Competition - Higher Vocational Group (Final)
华为分析&联运活动,助您提升游戏总体付费
2022.08.01_Daily Question
家用电器行业数智化供应链系统:高效整合供应链,提升家电企业核心竞争力
详细剖析 Redis 三种集群策略
SPI communication 2.4G module of stm32 project (NF2401L)
Zhihu asks: Can China still achieve great national rejuvenation?
Memory problems difficult to locate, it is because you do not use ASAN
InnoDB storage structure of MySQL
Food and Beverage Industry B2B Mall System: Accelerate the digital transformation of the industry and improve the transaction efficiency of the B2B platform
Detailed analysis of the three cluster strategies of Redis
795. Prefix and
一致性协议-ChainPaxos详解
2022.08.01_每日一题
STM32H743IIT6 study notes 01 - CubeMX new project file
hello world, hello Keke people
Three.js 点击模型,高亮发光模型外轮廓
60行从零开始自己动手写FutureTask是什么体验?