当前位置:网站首页>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
边栏推荐
- What is 3DE experience platform
- 7/24 训练日志
- What is hpapaas platform?
- 接口自动化测试平台FasterRunner系列(三)- 操作示例
- 进程通信(SystemV通信方式:共享内存,消息队列,信号量)
- Twitter acquired a public opinion war, which was turned into a child quarrel by musk
- 【帮助中心】为您的客户提供自助服务的核心选项
- 【小程序开发】页面导航详解
- F5: Six capabilities required for enterprise digital transformation
- R language uses GT package and gtextras package to display tabular data beautifully: GT_ bar_ Plot function and GT_ plt_ bar_ PCT function visual percentage bar graph, percentage bar graph of original
猜你喜欢

上半年出货量已超去年全年,森思泰克毫米波雷达“夺食”国际巨头

What is 3DE experience platform

东北人,最懂性感

阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践

The understanding of domain adaptation in transfer learning and the introduction of three technologies

对迁移学习中域适应的理解和3种技术的介绍

Experiment 2 goods purchase and sale management system

How high are the young people in this class for "ugly things"?

Process communication (Systemv communication mode: shared memory, message queue, semaphore)

进程间的通信(管道通信)
随机推荐
虚拟机vmware安装步骤(如何在虚拟机安装软件)
ServletConfig class and ServletContext class
软件测试进阶篇—测试分类
ES6 implements the observer mode through proxy and reflection
Visual model network connection
Trust multithread security count
11.2-hj86 find the maximum number of continuous bits
【开源工程】STM32C8T6+ADC信号采集+OLED波形显示
接口自动化测试平台FasterRunner系列(二)- 功能模块
接口自动化测试平台FasterRunner系列(四)- 持续集成、解决多域名
ZFS - 01 - basic operations of creating and expanding zpool
How to add EXE file to boot
淦,为什么 ““ .length !== 3 ??
Interpretation of "cross chain interconnection smart contract"
给生活加点惊喜,做创意生活的原型设计师丨编程挑战赛 x 选手分享
华为年内二度招聘“天才少年”;540万Twitter账号信息泄露,卖价3万美元;谷歌解雇了相信AI有意识的工程师|极客头条
进程间的通信(管道通信)
CircleIndicator组件,使指示器风格更加多样化
"Wdsr-3" Penglai pharmaceutical Bureau solution
What is hpapaas platform?