I started writing test to my android app, but I'm stuck. What I need is to test some functionality for Internet issues, such as no Internet connection, loosing Internet connection while doing some stuff and so on.
Is there any good way to test such cases? I think I can't control Internet connection from Android testing framework or inside Android Device Emulator.
What I need is some tools which would control Internet connection for my app. If I have some Internet connection I'd like to be able to set no internet connection, no wifi and so on at any time from my test.