当前位置:网站首页>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
边栏推荐
- Software testing -- common testing tools
- Dynamic memory management
- APP测试点(思维导图)
- Common file operations
- n-queens problem
- "Wdsr-3" Penglai pharmaceutical Bureau solution
- How to build an enterprise level OLAP data engine for massive data and high real-time requirements?
- 如何创建一个有效的帮助文档?
- Address book (II)
- Jz32 print binary tree from top to bottom
猜你喜欢

VC/PE正跑向青岛

Circulaindicator component, which makes the indicator style more diversified

You can change this value on the server by setting the 'Max_ allowed_ Packet 'variable error

微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告

可视化模型网络连接

Register carefully! The number of applicants for these double non-governmental institutions exceeded 10000!

Powell's function of Ceres

Twitter acquired a public opinion war, which was turned into a child quarrel by musk

【帮助中心】为您的客户提供自助服务的核心选项

浅析IM即时通讯开发出现上网卡顿?网络掉线?
随机推荐
[noi2015] package manager
软件测试(思维导图)
浅析IM即时通讯开发出现上网卡顿?网络掉线?
Chapter 5 Basic Scripting: Shell Variables
Trust multithread security count
Pixel2Mesh从单个RGB图像生成三维网格ECCV2018
Software testing -- common testing tools
微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告
关爱一线防疫工作者,浩城嘉业携手高米店街道办事处共筑公益长城
请问什么是国债逆回购?安全吗?
「Wdsr-3」蓬莱药局 题解
How high are the young people in this class for "ugly things"?
Qtimgui compilation
#yyds干货盘点# 面试必刷TOP101:反转链表
分享六个实用的小程序插件
GDB help
Ultimate doll 2.0 | cloud native delivery package
Yarn 安装与使用教程[通俗易懂]
推特收购舆论战,被马斯克变成了小孩吵架
ServletConfig class and ServletContext class