当前位置:网站首页>On weak network test of special test
On weak network test of special test
2022-07-06 06:15:00 【The elegance of testing】
One . Weak network testing background
The use of mobile end products is not entirely smooth wifi Environmental Science , Most users mainly use 4G,3G,2G Wait for the Internet , In addition, the usage scenarios of mobile end products are variable , If you enter the bus , Get on the subway , Take the lift , So the weak network test is particularly important . Considering the client-side display and fault tolerance of various scenarios , Improve product impression and user experience , Improve the robustness of products , Weak network testing is essential .
Two . Weak network test suggestions
Function point testing is required offline , No network testing , Network switching test, etc , In addition to focusing on the implementation of function points , We should also pay attention to user experience and other aspects
3、 ... and . Summary of general function points for weak network testing
Four . Examples of weak network test cases
5、 ... and . Fiddler Analog weak network
1. Mobile phone set up internet agent
(1) start-up Fiddler, Open... In the menu bar Tools-Fiddler Options, open Options
(2) Dialog box
(3) stay Fiddler Options Dialog box , Click on Connections, Check Allow romote computers toconnect Check boxes at the back , Click on OK Button
(4) In this machine cmd In the input :ipconfig, Find this machine ip Address
(5) open Android Device settings -WALN, Find the same network as the computer , Long press - Modify the network , The network settings dialog box pops up , Find the agent and choose manual , Host name ( The computer ip Address ), port 8888( Follow fiddler The settings are consistent ), Then click OK
2.Fiddler Simulate the speed limit environment
(1) Set the port number 8888( Ensure that it is not occupied )
(2) restart Fiddler
(3) Manually set the uplink , Down speed Network value algorithm :1000/ Download speed = need delay Time ( millisecond ), such as 50kb/s, need delay200 Milliseconds to receive data
Rules-Customize Rules-CTRL+F lookup (SimulateModem), Then modify the rate
2G/3G The recommended uplink and downlink speeds are as follows :
(4) Set the speed of the analog modem rules-performance-simulate modem speeds - preservation
(5) restart Fiddler
6、 ... and . Common problems and reasons
1. Upload a big picture , More pictures , video , When you file , In the weak network environment, the progress bar gets stuck halfway, and then starts from scratch .
reason : Upload in sections , When the request timeout expires , Segment transmission did not end , The code logic is wrong , This will cause you to upload again every time you retry , Cycle all the time .
2. In the weak network environment, it is easy to fail to log in or drop the line immediately ;
reason : There is no buffer mechanism for login , The setting of request timeout does not distinguish between the same network situation ; Solution : in the light of wifi、2g、3g、4g Set different timeout times .
3. Refreshing the page will soon give a prompt that there is no content , Obviously, the request timeout is not reached ;
reason : The connection timeout may be too short ,wifi Set the next two seconds , In weak networks, it needs to be lengthened .
4. In the weak network environment , The requested data takes a long time to return , In the process of waiting , If the relevant controls on the page can still be operated , There may be flash back ;
reason : Data dependent control operations , There is no compatible processing before the data is returned .
5. Logic error . such as : The deduction and acquisition are inconsistent when purchasing , I didn't receive the goods and so on .
6. Page display error . such as : Page overlap .
7. Download initialization data when users log in to the application , During the download process, because the network speed is too slow, click Cancel and log in again ,
During data download 、 After the download fails , No data rollback occurred , Download again after aborting , Duplicate data
Data rollback , Download again after aborting , Duplicate data .
8. Users click data upload , The network is weak and unstable during data uploading , Automatically trigger data upload based on networking status , Causing duplicate data writes , Form dirty data
9… In the weak network environment , Enter the user name and password and click login , After applying link timeout , Handle according to the strong network business logic , Cause the return timeout exception .
10. In the weak network environment , After the user enters the user name and password, click login , Data download timeout , Loading data depends heavily on subsequent asynchronous loading . The data hasn't been returned yet , The application jumps to the next activity, Cause crash .
11. Response time of an operation in weak network environment
reason :APP Users have low tolerance for waiting time , If weak network environment loading exceed 5s, It's easy for users to kill After the application, enter the application again
12. In the weak network environment until timeout ,UI Friendly interface &APP Is stable
reason : Fault tolerant mechanism mainly considers the instability brought by weak network , The common problem is :loading Timeout causes ANR or crash
【 Test point 】 Weak network environment until timeout , It is determined that the network is disconnected ,UI Interface and tips , Friendly and understanding
13. After the network is disconnected , Whether to automatically resend the request
reason : Different modules , Development processes requests differently . Before testing, you can understand , Whether the code supports automatic repeat requests , What is the frequency of auto resend requests ?
【 Test point 】 Restore the network after disconnection , Whether to stack network requests ( For now, the financial module When 10s Left and right no return The request will be resend ), At this point, request and return to normal , Whether there is any abnormal situation . such as 1 Payment operation , Multiple payment requests are piled up after disconnection , After the recovery of the network, due to the accumulation of multiple payment requests , Whether to complete multiple payments .
ps: Restore the network after disconnection , consider APP Is the purpose of the operation harmful to the user experience , By which means can the operation purpose be achieved and the user experience is insensitive or low injury
14. In the weak network environment , The requested data takes a long time to return , In the process of waiting , If the relevant controls on the page can still be operated , Is prone to abnormal phenomena ( Flashback phenomenon 、 Get the original page request data when the bottom is triggered )
reason : Data dependent control operations , There is no compatible processing before the data is returned
15. When searching, entering keywords will send continuous requests , When you stop , Display the final keyword search results , But it will soon be covered by the previous keyword search results ;
reason : Intermediate requests return slowly , After showing the final result , The data returned from the previous request should not be processed .
Last : It can be in the official account : Sad spicy bar ! Get one by yourself 216 Page software testing engineer interview guide document information 【 Free of charge 】. And the corresponding video learning tutorial is free to share !, It includes basic knowledge 、Linux necessary 、Shell、 The principles of the Internet 、Mysql database 、 Special topic of bag capturing tools 、 Interface testing tool 、 Test advanced -Python Programming 、Web automated testing 、APP automated testing 、 Interface automation testing 、 Testing advanced continuous integration 、 Test architecture development test framework 、 Performance testing 、 Safety test, etc. .
I recommend one 【Python Automated test communication group :746506216】, We can discuss communication software testing together , Learn software testing together 、 Interview and other aspects of software testing , Help you advance quickly Python automated testing / Test Development , On the road to high pay .
Friends who like software testing , If my blog helps you 、 If you like my blog content , please “ give the thumbs-up ” “ Comment on ” “ Collection ” One Key triple connection !
边栏推荐
- 误差的基本知识
- 黑猫带你学UFS协议第4篇:UFS协议栈详解
- Aike AI frontier promotion (2.13)
- Digital triangle model acwing 1015 Picking flowers
- Interface test: what are the components of the URL in fiddler
- Isam2 and incrementalfixedlagsmooth instructions in gtsam
- (中)苹果有开源,但又怎样呢?
- JMeter做接口测试,如何提取登录Cookie
- 多线程应用的测试与调试
- D - How Many Answers Are Wrong
猜你喜欢
D - How Many Answers Are Wrong
调用链监控Zipkin、sleuth搭建与整合
Overview of three core areas of Mathematics: algebra
曼哈顿距离与曼哈顿矩形-打印回字型矩阵
Detailed explanation of BF and KMP
Manhattan distance sum - print diamond
[C language] string left rotation
Digital triangle model acwing 1015 Picking flowers
B - The Suspects
Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)
随机推荐
假设检验学习笔记
PAT(乙级)2022年夏季考试
误差的基本知识
数学三大核心领域概述:几何
對數據安全的思考(轉載)
[API interface tool] Introduction to postman interface
Expose the serial fraudster Liu Qing in the currency circle, and default hundreds of millions of Cheng Laolai
LeetCode 729. 我的日程安排表 I
leaflet 地图
JWT-JSON WEB TOKEN
MySQL之数据类型
Idea new UI usage
黑猫带你学UFS协议第18篇:UFS如何配置逻辑单元(LU Management)
Application of Lie group in gtsam
[web security] nodejs prototype chain pollution analysis
F - true liars (category and search set +dp)
nodejs实现微博第三方登录
职场进阶指南:大厂人必看书籍推荐
【API接口工具】postman-界面使用介绍
Manhattan distance sum - print diamond