Is the iPhone 15 signal considered a weak network? How should we conduct a weak network test at work?

Poor iPhone signal has become a historical problem. The problem has always been there and has never been solved. Maybe Apple itself has no intention of completely solving this problem. After all, toothpaste has to be squeezed out slowly. If it is solved once, how will it cut the leeks later.

Some friends may have asked, how bad is the signal? Apple sells them differently. Is it enough to be able to make calls? What kind of bicycle do you want?

But if you are a test engineer, you don't think so. Because of the poor signal, many unexpected bugs will appear during the use of the software.

To put it more professionally, this is a weak network environment, and we need to carry out weak network testing.

The definition of weak network is generally 2G, 3G, and in specific subways, tunnels and mountainous areas. Of course, whether the signal of today’s protagonist, iPhone15, is considered a weak network is a matter of opinion. Anyway, compared to Huawei mate60, iPhone15 is "Weak network".

picture

When using APP in a weak network environment, some situations such as network delays, interruptions, and timeouts will occur. For example, when we are browsing Douyin on the subway, and when we slide to the next page, the page will suddenly freeze. This is It's caused by poor network.

Many bugs on the APP will show up when the network is weak. For example, multiple requests due to slow response will eventually lead to ANR problems in the app.

The most basic way to do weak network testing is to create a weak network environment. As mentioned above, directly using 2G or 3G networks, going to the subway, garage, etc. is the most basic. But sometimes we need to simulate a weak network in the office Out of it, we can say a few common ways.

1. Fiddler/charles software simulation

Fiddler and Charles are two very common network proxy tools. You can control the speed of the network by setting the network delay. Let's take fiddler as an example to tell you.

First open Fiddler, menu Rules->Cutomize Rules, and then you can customize the network delay.

picture

  • Delay sends by 300ms per KB uploaded: It takes 300ms to upload 1KB content. Convert the upload speed: 1Kb/0.3s = 3.3KB/s, which means the network uplink speed is only 3.3KB.

  • Delay receives by 150ms per KB downloaded: It takes 150ms to download 1KB content. The converted download speed is: 1KB/0.15s=6.6KB/s, which means the network download speed is only 6.6KB.

  • If you want to set the download speed to 50KB/s, you need to set the Delay time to 20ms.

Then start the weak network speed limit, Rules->Performance->check Simulate Modem Speeds. After checking, you will find that the network is much slower when you visit the website.

picture

Finally, you can check the speed limit effect through the packet capture results.

picture

2. Router speed limit

Nowadays, mainstream routers such as Huawei, tplink, and Xiaomi provide speed limit settings. The steps are simple and the speed limit is accurate. It is very suitable for weak network testing in WiFi environments.

Take the Xiaomi router as an example. Log in to the Xiaomi router backend system (192.168.31.1), select the "Advanced Settings" -> "Smart Speed ​​Limit" option, click the Set Speed ​​Limit button, and enter the upload and download network speed range.

picture

Okay, it’s that simple. You can happily test the weak network by connecting your mobile phone to the router. Of course, if you have an iPhone, you can save the speed limit step. Everyone has other good methods for weak network testing. Be sure to use it with Teacher Allen communicates more, so that everyone can make progress together, eliminate bugs in the software, and ensure software quality.

Finally: The complete software testing video tutorial below has been compiled and uploaded. Friends who need it can get it by themselves [guaranteed 100% free]

Software Testing Interview Document

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.

Guess you like

Origin blog.csdn.net/AI_Green/article/details/133308058