-
23 October 2020, 6:02 am
#1
Is there a way of switching connectivity on and off in an AndroidTestCase?
I am planning to start writing some android test cases and I would like to know if there is a way of forescout switching connectivity on and off programmatically in the emulator.
Test: is Message Pushed to Local Storage if Phone is Not Connected to Network:
Connectivity = off
Create message
try push message to webapp
assert message in local storage
Connectivity = on
New to test cases in android so apologies if answer is obvious.
-
-
23 October 2020, 7:07 pm
#2
I have carefully removed all the html formatting that you used in the above message, you should remove formatting from other apps before posting here at the forum, rather then trying to change the color of every single word in the post. (if you need tips on how to do that let me know)
As for the question, if I am understanding your question correctly, I think you are asking if the phone is not connected to the network, whether it goes to the providers network, held in storage for the user?
I would think that with most providers it is, and would be waiting for the end user the next time they connected to the network.
Interesting question, and if my assumption is incorrect, I would like to know also.
Rick
Universal4
-
-
24 October 2020, 5:13 am
#3
https://github.com/ - too much for me but pist your question there.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules