当前位置:网站首页>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

 picture

Four . Examples of weak network test cases

 picture

 picture

 picture

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

 picture

(3) stay Fiddler Options Dialog box , Click on Connections, Check Allow romote computers toconnect Check boxes at the back , Click on OK Button

 picture

(4) In this machine cmd In the input :ipconfig, Find this machine ip Address

 picture

(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

 picture

2.Fiddler Simulate the speed limit environment

(1) Set the port number 8888( Ensure that it is not occupied )

 picture

(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 :

 Insert picture description here

 picture

 picture

 picture

(4) Set the speed of the analog modem rules-performance-simulate modem speeds - preservation

(5) restart Fiddler

 picture

6、 ... and . Common problems and reasons

 picture

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 !

原网站

版权声明
本文为[The elegance of testing]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060606580265.html