MusalaSoft / atmosphere-docs

ATMOSPHERE mobile testing framework
http://atmosphereframework.com/
GNU General Public License v3.0
5 stars 3 forks source link

Research Chrome like - network throtling #25

Open Perseverance opened 7 years ago

Perseverance commented 7 years ago

Chrome for Desktop has ability to throttle the network connection in the current tab. It is good to research how is this done and can it be simulated in Android devices (without root access)

vanogrid commented 7 years ago

The Chrome network connection throttling works both on Desktop and Android devices. I was able to follow the network throttling event from the DevTools UI to the back-end and then the V8 engine. I couldn't find the exact implementation, but I'm inclined to think the logic is done on engine level and it is related to the web request/response etc., since the network speed of the device is not affected, but only the speed of loading the web page. This behavior, however, would not be suitable to our case, because we would like to be able to throttle the network speed of the device. I'm returning this issue to Backlog in case further research on the implementation needs to be made.