Respond to MeshTether state changes

Tests that whenever the Commotion MeshTether app changes the state of the Commotion ad hoc mesh network connection (up or down), the Serval Mesh app responds by starting and stopping services. This test case was developed in fulfilment of New America Foundation - Contractor Agreement #19-OTIDOS2013 “NAF3”.

Fixture

  1. Two rooted devices A B, each with:
    1. Release Candidate installed and running
  2. … and set up with the following Phone Numbers and Names:
    • 55501 TestA
    • 55502 TestB
  3. Ensure each device A and B is disconnected:
    1. Go to Serval main screen → Connect
    2. Ensure Enable Services is OFF (un-check the checkbox if necessary)
    3. Turn Auto Cycle to OFF (un-check the checkbox)
    4. Go to peer list: Serval main screen → ContactsList Phones On The Mesh)
    5. Ensure the peer list is empty

Test

  1. On each device A and B:
    1. Go to Serval main screen → Connect
    2. Turn Enable Services to ON (check the checkbox)
  2. On each device A and B:
    1. Go to Mesh Tether screen
    2. Press Start button (top right of screen)
    3. ASSERT Spinner appears with messages “Mesh service starting…”, then “STATE_STARTING”
    4. IF Pop-up appears requesting Super User for Mesh Tether THEN press Allow button
    5. ASSERT MeshTether app is granted Super User permission
    6. Go to Serval main screen → Connect
    7. ASSERT Mesh Tether network shows as Turning On
    8. ASSERT Spinner appears with message “Acquiring wifi lock”
    9. ASSERT Mesh service starts
    10. Go to Serval main screen → Connect
    11. ASSERT Mesh Tether network shows as On
  3. On each device A and B:
    1. ASSERT Other device appears in peer list: Serval main screen → Contacts
  4. On device A only:
    1. Go to Mesh Tether screen
    2. Press Stop button (top right of screen)
    3. ASSERT Spinner appears with messages “Mesh service stopping…”, then “STATE_STOPPING”
    4. IF Pop-up appears requesting Super User for Mesh Tether THEN press Allow button
    5. ASSERT MeshTether app is granted Super User permission
    6. Go to Serval main screen → Connect
    7. ASSERT Mesh Tether network shows as Turning Off
    8. ASSERT Mesh service stops
    9. Go to Serval main screen → Connect
    10. ASSERT Mesh Tether network shows as Off
  5. On each device A and B:
    1. ASSERT Other device does not appear in peer list: Serval main screen → Contacts

Results


Login