Tests/XS/RestoreDS/WritewithImages

From OLPC

< Tests | XS/RestoreDS
Revision as of 15:52, 10 November 2008 by Frances (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Test case: Restore Data from Write Activity with an image in the document from XS to XO
How to report results

Stream Any
Category XS Sub-category {{{testcase_subcategory}}}
Component warning.pngEmpty strings are not accepted.
Feature XS_Blueprints:Datastore_Simple_Backup_and_Restore#Test_plans_and_user_walkthrough
Objective XOs automatically save Write activity with images in the document to a schoolserver where they are registered. This test case is ensure that a laptop can restore files from the school server.
Tools Latest XS software, Write activity, an image either from the internet or a photo from Record Activity and access point.
Setup
  1. Get Schoolserver up and running
  2. Access point connection
  3. Open Write activity and type a sentence or two.
  4. Add either an image from the internet or a photo from Record (maybe do this test twice, once with an image and one with a photo).
  5. Go to Activity tab and rename your activity something like "testWriteimage".
    • NOTE -We will be erasing the entry to confirm that the restore works. Please don't do some extraordinary work that will make you cry if lost (back it up onto a USB if needbe).
  6. Confirm that the Journal has an entry called "testWriteimage".
  7. Make sure you are still connected to the school server for daily backup.
    • Backup to school server happens every 24 hours, however if you'd like to speed this up read in Procedure (below) how to get backup taken within 30 mins.
Procedure On the XO, ensure you are hooked up to the School Server network.
  1. Wait until the backup run happens - it will be triggered once a day. How to recognize that it has happened?
    • On the XO in the Terminal Activity, be root and run `stat /home/olpc/.sugar/default/ds-backup-done` and look for the 'modified' time, which shows the last time it ran successfully. Check that the XO clock is set to GMT, and might be off-track. Try `TZ=America/New_York stat /home/olpc/.sugar/default/ds-backup-done` to see it in local time.
    • To run the script asap, rm /home/olpc/.sugar/default/ds-backup-done -- the script should start within 30 minutes. Note that the script has a large random delay of up to 30 minutes!
      • If you don't want the first "within 30 minutes" wait, just run /usr/bin/ds-backup.sh from a Terminal activity (as the olpc user). You will still have to face the large random delay of up to 30 minutes.
    • At this point in the past I've erased the doc from the journal then rebooted. I am going to start doing test cases without implementing this and will confirm what to do in the future.
  2. Open Browse after you've connected back to the school server.
  3. Follow the link to the Schoolserver
  4. Add "ds-restore" to the URL in the url bar, so that it reads http://schoolserver/ds-restore
  5. Click on the serial number of your XO
    • You can find the serial number of your XO by going into the Control Panel and looking in "About My XO"
  6. You will see a listing of the documents available for that date, pick a document
  7. Clicking on that document will download it, and it will appear in the Journal (and it may auto-open - need to check that ;-) )
Expected Results
and Pass Criteria
The data from the school server should be restored to the XO.
Comments warning.pngEmpty strings are not accepted.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
8.2.0 (767) 8.2 767 Fail i did this test with mixed results, two out of 6 XOs with a photo in them didn't come up as restored properly. No logs taken (doh!). Trying to recreate. 2008/10/28


8.2.0 (767) 8.2 767 Pass Tried this test again on same six machines. Added 1 photo from record and wrote one sentence. Forced backup (in the interests of not waiting 24 hours) and all restored fine. Will try again with 24 hour backup. 2008/11/03


Facts about Tests/XS/RestoreDS/WritewithImagesRDF feed
Build number 767  +
Build stream Any  +info.pngLink to builds in stream, Packages in stream, ChangeLog, Differences vs joyride , and 8.2  +info.pngLink to builds in stream, Packages in stream, ChangeLog, Differences vs joyride
Comments i did this test with mixed results, two out of 6 XOs with a photo in them didn't come up as restored properly. No logs taken (doh!). Trying to recreate., and Tried this test again on same six machines. Added 1 photo from record and wrote one sentence. Forced backup (in the interests of not waiting 24 hours) and all restored fine. Will try again with 24 hour backup.
Created 28 October 2008  +, and 3 November 2008  +
More notes warning.pngEmpty strings are not accepted.
Pass criteria The data from the school server should be restored to the XO.
PassFail Fail  +, and Pass  +
Short name Restore Data from Write Activity with an image in the document from XS to XO  +
Software release 8.2.0 (767)  +
System component warning.pngEmpty strings are not accepted.
System feature XS_Blueprints:Datastore_Simple_Backup_and_Restore#Test_plans_and_user_walkthrough  +
Test category XS  +
Test objective XOs automatically save Write activity with images in the document to a schoolserver where they are registered. This test case is ensure that a laptop can restore files from the school server.  +
Test procedure On the XO, ensure you are hooked up to the On the XO, ensure you are hooked up to the School Server network.
  1. Wait until the backup run happens - it will be triggered once a day. How to recognize that it has happened?
    • On the XO in the Terminal Activity, be root and run `stat /home/olpc/.sugar/default/ds-backup-done` and look for the 'modified' time, which shows the last time it ran successfully. Check that the XO clock is set to GMT, and might be off-track. Try `TZ=America/New_York stat /home/olpc/.sugar/default/ds-backup-done` to see it in local time.
    • To run the script asap, rm /home/olpc/.sugar/default/ds-backup-done -- the script should start within 30 minutes. Note that the script has a large random delay of up to 30 minutes!
      • If you don't want the first "within 30 minutes" wait, just run <tt>/usr/bin/ds-backup.sh</tt> from a Terminal activity (as the olpc user). You will still have to face the large random delay of up to 30 minutes.
    • At this point in the past I've erased the doc from the journal then rebooted. I am going to start doing test cases without implementing this and will confirm what to do in the future.
  2. Open Browse after you've connected back to the school server.
  3. Follow the link to the Schoolserver
  4. Add "ds-restore" to the URL in the url bar, so that it reads http://schoolserver/ds-restore
  5. Click on the serial number of your XO
    • You can find the serial number of your XO by going into the Control Panel and looking in "About My XO"
  6. You will see a listing of the documents available for that date, pick a document
  7. Clicking on that document will download it, and it will appear in the Journal (and it may auto-open - need to check that ;-) ) t may auto-open - need to check that ;-) )
Test setup <br />
  • Get Schoolserver up and run <br />
  • Get Schoolserver up and running
  • Access point connection
  • Open Write activity and type a sentence or two.
  • Add either an image from the internet or a photo from Record (maybe do this test twice, once with an image and one with a photo).
  • Go to Activity tab and rename your activity something like "testWriteimage".
    • NOTE -We will be erasing the entry to confirm that the restore works. Please don't do some extraordinary work that will make you cry if lost (back it up onto a USB if needbe).
  • Confirm that the Journal has an entry called "testWriteimage".
  • Make sure you are still connected to the school server for daily backup.
    • Backup to school server happens every 24 hours, however if you'd like to speed this up read in Procedure (below) how to get backup taken within 30 mins. w) how to get backup taken within 30 mins.
  • Test subcategory {{{testcase_subcategory}}}  +
    Test tools Latest XS software, Write activity, an image either from the internet or a photo from Record Activity and access point.  +
    Personal tools
    • Log in
    • Login with OpenID
    About OLPC
    About the laptop
    About the tablet
    Projects
    OLPC wiki
    Toolbox
    In other languages