This article is a mirror article of machine translation, please click here to jump to the original article.

View: 4865|Reply: 1

Fiddler delayed interface response time and weak network test

[Copy link]
Posted on 6/14/2022 9:17:48 PM | | | |
Requirements: In special cases, there will be an exception in a certain piece of JS code, and the exception is caused by the user clicking a button while the response of a certain interface is too slow. This article uses the Fiddler tool to implement delayed interface response times.

For example:Accurate interceptionhttps://www.itsvse.com/GET requestto return the response content with a delay of 10 seconds, as shown in the following figure:



Open Fiddler and switch to the AutoResponder tab, and create a new rule as follows:





AutoResponder Refer to the official documentation:The hyperlink login is visible.

Weak network testing

Set the speed of the analog modulator, manually set the uplink and downlink rates, the principle of simulating network speed, how long to delay (delay) every 1kb upload/download, open Rules -> Customize Rules settings as follows:



//Delay sends by 300ms per KB uploaded. Sends 1 KB of data every 300 ms of delay, that is, 3 KB of data is sent every 1 s (0.3 seconds of delay for every 1 KB of data uploaded)



//Delay receives by 150ms per KB downloaded.



Here we use the calculation formula to get the uplink latency and downlink latency, 2G takes the approximate integer of 3000ms and 1000ms, and 3G takes 20ms and 2.5ms


Once the file is saved, tick Rules -> Performances ->Simulate Modem SpeedsOpen. As shown below:



(End)





Previous:[Turn] Excel to view VBA code shortcuts
Next:The RxJS finalize operator executes the logic after the Observable terminates
 Landlord| Posted on 6/14/2022 9:21:24 PM |
Fiddler replaces links, requests forwarding redirects
https://www.itsvse.com/thread-9566-1-1.html

.NET/C# uses FiddlerCore4 to intercept and modify HTTP requests
https://www.itsvse.com/thread-9506-1-1.html

Resolved the issue that fiddler could not crawl local localhost, 127.0.0.1 network requests
https://www.itsvse.com/thread-9137-1-1.html

.NET/C# Developing Fiddler Tutorial [with Source Code]
https://www.itsvse.com/thread-5127-1-1.html

Fiddler4 plugin development tutorial
https://www.itsvse.com/thread-5123-1-1.html

Fiddler-AutoResponder regular matching example
https://www.itsvse.com/thread-4345-1-1.html

Add the IP address of the monitoring request to the fiddler
https://www.itsvse.com/thread-2905-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com