Test Procedure

  1. Uninstall OI Safe from emulator or device:
    adb uninstall org.openintents.safe
    

    You may want to Backup the database first with Menu->Backup

  2. Install OI Safe and launch.

    In Eclipse: right-click project OI Safe -> Run As -> Android Application

    Or if build-private.properties is configured: project OI Safe -> (right-click) build.xml -> Run As -> Ant Build

  3. Launch OI Safe. Should be presented with EULA. Hit Cancel. Application should quit.

  4. Launch OI Safe. At EULA, hit Accept. Should be presented with AskPassword activity asking to create Master Password. Leave fields empty.

  5. Hit Continue. Toast should remind user to provide at least 4 characters of password.
  6. Type password in Master Password, leave Confirm empty. Hit Continue. Toast should tell user that passwords do not match.
  7. Type correct password into Continue field. Hit Continue. CategoryList should activiate with a dialog letting user know that they should backup. Hit OK.
  8. At CategoryList, hit Menu->Add. CategoryEdit should launch.
  9. Leave blank and hit Save. Toast should complain about being empty. Provide a name and hit Save. Should fall back to CategoryList with the new category in the list.
  10. Long-click the newly created category and hit Delete. Because it's empty it should disappear from the list.
  11. Uninstall OI Safe and reinstall. Launch. Instead of providing a new Master Password, hit Restore. Restore Activity should launch.
  12. Provide wrong password for oisafe.xml. Hit Restore. Toast should indicate bad password.
  13. Provide correct password for oisafe.xml. Hit Restore. Dialog should prompt to overwrite existing data. Hit No. Should drop back. Hit Restore and hit Yes. CategoryList should launch with restored data.