当前位置:网站首页>Weak network test tool -qnet
Weak network test tool -qnet
2022-07-25 18:46:00 【wangmcn】
Weak network testing tools -QNET
Catalog
- 1、 Preface
- 2、 brief introduction
- 3、 install
- 4、 testing procedure
- 4.1、 Configure weak network template and parameters
- 4.2、 Select test products for testing
- 5、adb Command execution
1、 Preface
At present, there are two main schemes for weak network special testing on mobile devices :
1、 adopt Android The device is connected to PC Weak network test on , such as Fiddler,Charles,NET-Simulator etc. . The basic idea is PC Put one on top Fiddler Network packet capturing tool , And then Android Network agent of the device to PC On , By means of PC Upper Fiddler Set delay for weak network simulation .
2、 Building weak networks on proprietary servers WiFi, Mobile devices connect to this WiFi Conduct weak network test , Relevant technical solutions include Facebook Of ATC And Tencent WeTest-WiFi.
The idea of weak net test :
1、 Weak network function test :2G/3G/4G/5G、 High delay 、 High loss package
2、 No network state test : Network disconnection function test 、 Local data storage
3、 User experience focuses on : response time 、 Page rendering 、 Overtime copywriting 、 Over time reconnection 、 Safety and large flow risk
4、 Network switching test :Wifi-2G/3G/4G/5G- No network multi state switching
User experience concerns :
1、 Page response time is acceptable , Concerns include hot start 、 Cold start time 、 Page switching 、 Front and rear station switching 、 First time , First screen time, etc .
2、 Whether the page rendering is completed consistently .
3、 Whether the overtime copy meets the definition , Whether the abnormal information is displayed normally .
4、 Whether there is timeout reconnection .
5、 Safety angle : Will it happen DNS hijacked 、 land IP Change frequently 、 Single sign on exception, etc .
6、 High traffic event risk : Whether it will be updated under the weak network Apk package 、 Download files and other large traffic action .
2、 brief introduction
QNET Network testing tools can be used without the help of PC Or the server , Build a perfect weak network environment , Weak network simulation test , Just install... On any smartphone QNET Network testing tools , That is to complete the construction of weak network environment , Next, select different scenarios for testing as needed ; It also provides network packet capture function , Facilitate the analysis of network data problems .
characteristic :
1、 Weak network construction is simple and fast . There is no need to build an additional weak network environment , There is no need to ROOT/ Cell phone for prison break , There's no need to connect data lines , Just install QNET App, Build a weak network test environment in one minute .
2、 Automated weak network testing .QNET Support adb Command driven , Users can write scripts , Implement automated weak network testing , Reduce the cost of weak network testing , Improve test efficiency .
3、 Network protocol packet capturing . There is no need to ROOT/ Cell phone for prison break , No need for third party tools , Support TCP/UDP/ICMP Protocol network packet capturing , export pcap File format , Support Wireshark Wait for tools to check .
4、 Real global network and weak network scenarios . Covering all provinces in China 、 Real time network data of operators in overseas mainstream countries and regions , Provide real subway 、 Weak network scenarios such as elevators .
3、 install
There is no need to ROOT/ Cell phone for prison break , There's no need to connect data lines , To be independent app The way , Provide users with shortcuts 、 reliable 、 Fully functional weak network simulation service .
According to the mobile operating system , Download the specified version , Can be installed .
Official website address :https://wetest.qq.com/product/qnet/
4、 testing procedure
1、 open APP, Log in
2、 Authorized login succeeded
4.1、 Configure weak network template and parameters
First, add and edit the weak net template , Provide different network scenarios , And the network parameters can be adjusted according to the test requirements , Weak network template supports adding 、 Delete 、 modify 、 Query operation .
There are two ways to add a weak network template :
1、 Top right corner of the page “ newly added ” Button , For custom templates .
2、“ Network scene ” page , For each template “ add to ” Button , Set templates for different scenes .
According to the test needs , Fill in the corresponding parameters in combination , Then save it .
As shown in the figure : Custom template
4.2、 Select test products for testing
Add the specified weak net template to the workbench page , Then select all applications or one application , Click the start button to start the weak network test .
For example, turn on the network packet capturing function , After the weak network test , Automatically generated in the mobile phone pcap Format file imported to PC On , Use the network packet capture tool Wireshark Just open the analysis .
notes :iOS Version only supports all applications
1、Android edition
As shown in the figure :Android Version open weak network test
Setup page , Enabled : Network packet capture 、 Control the suspended window 、 Information suspension window .
2、iOS edition
As shown in the figure :iOS Version open weak network test
Setup page , Enabled : Network packet capture
notes :iOS There is no version control floating window 、 Information floating window function .
5、adb Command execution
adb The instruction execution function can automatically enable the weak network , Help users access weak networks for automated testing .
Before using , take Android And PC use USB Connect , And make sure it is connected .
1、 start-up
First execute the command to start QNET process :
adb shell am start {--[ type ] [key] [value]} com.tencent.qnet/.Component.AdbStartActivityExamples of use : For wechat UDP The upside 20ms Delay packet capturing
adb shell am start --ei "dump_pcap" 1 --es "package_name" "com.tencent.mm" --ei "out_delay" 20 --ei "protocol" 2 com.tencent.qnet/.Component.AdbStartActivity2、 to update
Update weak network parameters :
adb shell am broadcast -a "qnet.boradcast.drive" --include-stopped-packages {--[ type ] [key] [value]} com.tencent.qnetExamples of use : Update parameters TCP/UDP 100% Packet loss
adb shell am broadcast -a "qnet.boradcast.drive" --include-stopped-packages --es "command" "update" --ei "in_rate" 100 --ei "out_rate" 100 --ei "protocol" 3 com.tencent.qnet3、 end
End the weak network and exit the process :
adb shell am broadcast -a "qnet.boradcast.drive" --include-stopped-packages {--[ type ] [key] [value]} com.tencent.qnetExamples of use : End weak network
adb shell am broadcast -a "qnet.boradcast.drive" --include-stopped-packages --es "command" "stop_service" com.tencent.qnet4、 Parameter transfer mode
--[ type ] [key] [value]
--ei: Indicates that the parameter value is int
--es: Indicates that the parameter value is string
5、 Detailed parameter list
边栏推荐
- F5:企业数字化转型所需六大能力
- Yyds dry inventory interview must brush top101: reverse linked list
- 关爱一线防疫工作者,浩城嘉业携手高米店街道办事处共筑公益长城
- 7/24 训练日志
- R language ggplot2 visual line, custom configuration title text related content color and legend color match (match colors of groups)
- 进程通信(SystemV通信方式:共享内存,消息队列,信号量)
- Paper revision reply 1
- Ceres analytic derivation
- 虚拟机vmware安装步骤(如何在虚拟机安装软件)
- 【帮助中心】为您的客户提供自助服务的核心选项
猜你喜欢
随机推荐
如何创建一个有效的帮助文档?
「跨链互连智能合约」解读
年轻时代,噢,年轻时代
单臂路由实验演示(Huawei路由器设备配置)
如何创建一个有效的帮助文档?
项目:串口接收—ram存储—TFT显示(完整设计)
Register carefully! The number of applicants for these double non-governmental institutions exceeded 10000!
蓝牙协议详解(蓝牙是什么)
There are several browser cores. How to upgrade if the browser version is too low
关爱一线防疫工作者,浩城嘉业携手高米店街道办事处共筑公益长城
How to add EXE file to boot
3de 回复
ES6通过代理器(Proxy)与反射(Reflect)实现观察者模式
ES6 implements the observer mode through proxy and reflection
进程通信(SystemV通信方式:共享内存,消息队列,信号量)
微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告
7/24 训练日志
浅析IM即时通讯开发出现上网卡顿?网络掉线?
浏览器内核有几种,浏览器版本过低怎么升级
可视化模型网络连接









