当前位置:网站首页>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 !
边栏推荐
- 把el-tree选中的数组转换为数组对象
- Company video accelerated playback
- PAT(乙级)2022年夏季考试
- [untitled]
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Manhattan distance and Manhattan rectangle - print back font matrix
- 【LeetCode】Day96-第一个唯一字符&赎金信&字母异位词
- 全链路压测:构建三大模型
- Aike AI frontier promotion (2.13)
- Properties file
猜你喜欢

进程和线程的理解

【无App Push 通用测试方案

Nodejs realizes the third-party login of Weibo

Usage of test macro of GTEST

IDEA 新UI使用

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

D - How Many Answers Are Wrong

10m25dcf484c8g (FPGA) amy-6m-0002 BGA GPS module

JWT-JSON WEB TOKEN
![[course notes] Compilation Principle](/img/cc/34e86087cc5698f9bed91675369265.jpg)
[course notes] Compilation Principle
随机推荐
Eigen sparse matrix operation
异常检测方法总结
JWT-JSON WEB TOKEN
php使用redis实现分布式锁
GTSAM中ISAM2和IncrementalFixedLagSmoother说明
Embedded point test of app
Leaflet map
[course notes] Compilation Principle
Luogu p1460 [usaco2.1] healthy Holstein cows
CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全
Application of Lie group in gtsam
数字三角形模型 AcWing 1015. 摘花生
Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
Usage of test macro of GTEST
ContentType的作用
使用Nacos管理配置
Function of contenttype
ESP32 ESP-IDF看门狗TWDT
【API接口工具】postman-界面使用介绍
How to use the container reflection method encapsulated by thinkphp5.1 in business code