Results 1 to 3 of 3
  1. #1
    junnusipra is offline Public Member
    Join Date
    October 2020
    Thanked 0 Times in 0 Posts

    Default 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.

  2. #2
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Courage is being scared to death...and saddling up anyway. John Wayne
    Thanked 7,731 Times in 4,872 Posts


    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.


  3. #3
    Pokerworx is offline Private Member
    Join Date
    March 2009
    Thanked 19 Times in 13 Posts

    Default - 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