Internet Connection Speed Test

In a test case step, what is the best way to retrieve connection speeds during testing for:

  1. Desktop web internet speed
  2. Wifi internet speed
  3. 3G/4G connection speed

Do you simply go to another url (like ookla) and start a ping test?
Does selenium/appium/java have scripts to check connection speeds say every 5 minutes when playing a 2 hour video?

Any suggestion would be appreciated.

Unsatisfactory test results do not necessarily indicate a problem with your AT&T service as factors outside of AT&T’s control affect your speed. Review our online self-help to learn more about these r6300v2​ factors and what you can do to improve performance.

Thank You