Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4269

Support to "Save content state" in mod_h5pactivity

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0
    • 4.1.1
    • H5P
    • Hide

      This issue needs to be tested in a site with MDL-77802 integrated.

      This issue should be tested in 1 Android and 1 iOS device.

      Test setting disabled

      1. Login as admin in browser.
      2. Go to "Site administration > Plugins > H5P" and disable "Save state".
      3. In the app, login as a student.
      4. Open an H5P activity that has tracking enabled and the user needs to enter more than one answer (e.g. in our master site > H5P reports > H5P packages with tracking and grading > Fill the blanks [FIRST ATTEMPT]).
      5. Enter some data in the activity but don't finish it (don't answer all the questions).
      6. Leave the activity and open it again. Check that you need to start over, no data was saved.

      Test online

      1. Login as admin in browser.
      2. Go to "Site administration > Plugins > H5P" and disable "Save state". I also recommend setting "Save state frequency" to 60 or less.
      3. In the app, login as a student. If you used the same device to test setting disabled, I recommend deleting and re-adding the site or go to app settings and click Synchronize to force the data to be updated.
      4. Open an H5P activity that has tracking enabled and the user needs to enter more than one answer (e.g. in our master site > H5P reports > H5P packages with tracking and grading > Fill the blanks [FIRST ATTEMPT]).
      5. Enter some data in the activity but don't finish it (don't answer all the questions).
      6. Leave the activity and open it again. Check that all the data you entered has been saved.
      7. Now enter some more data without finishing it (if there's only 1 answer left to finish the attempt, just finish it and start again).
      8. After entering the data, wait the number of seconds you specified as admin in "Save state frequency". I recommend waiting a few more seconds to be sure that data has been sent to the server.
      9. Kill the app, start it again and open the same activity again. Check that all the data you entered has been saved.

      Test prefetch

      1. Login as a student in a site with save state enabled.
      2. Go to course downloads and prefetch an H5P activity that has some data saved (e.g. if you followed the testing instructions, the activity used in step 9 of the online test should have an unfinished attempt).
      3. Go offline and open the activity. Check that the saved data is loaded, you don't need to start over.

      Test offline

      1. Login as a student in a site with save state enabled.
      2. Open an H5P activity that has tracking enabled and the user needs to enter more than one answer (e.g. in our master site > H5P reports > H5P packages with tracking and grading > Fill the blanks [FIRST ATTEMPT]).
      3. Go offline and enter some data in the activity but don't finish it (don't answer all the questions).
      4. Leave the activity and open it again. Check that all the data you entered has been saved. You should see a message saying that the activity has offline data.
      5. To synchronize the data, you have 2 options:
        1. Go online, open the module info and click Synchronize, OR
        2. Leave the activity, go online and open it again.
      6. Check that the package displays the data you entered in offline and the message saying that there is offline data no longer appears.
      7. Now go offline again and enter some data in the activity but don't finish it (don't answer all the questions). If there is only 1 answer left, please finish the attempt and restart it in online first.
      8. In browser in another device, open the same activity with the same user and enter some data (it can be the same as the one you entered in the app or different, it doesn't matter). After entering the data, leave the activity to make sure it has been saved.
      9. In the app, go online and synchronize. Check that the offline data has been discarded and you see the data you entered in the other device.
      Show
      This issue needs to be tested in a site with MDL-77802 integrated. This issue should be tested in 1 Android and 1 iOS device. Test setting disabled Login as admin in browser. Go to "Site administration > Plugins > H5P" and disable "Save state". In the app, login as a student. Open an H5P activity that has tracking enabled and the user needs to enter more than one answer (e.g. in our master site > H5P reports > H5P packages with tracking and grading > Fill the blanks [FIRST ATTEMPT] ). Enter some data in the activity but don't finish it (don't answer all the questions). Leave the activity and open it again. Check that you need to start over, no data was saved. Test online Login as admin in browser. Go to "Site administration > Plugins > H5P" and disable "Save state". I also recommend setting "Save state frequency" to 60 or less. In the app, login as a student. If you used the same device to test setting disabled, I recommend deleting and re-adding the site or go to app settings and click Synchronize to force the data to be updated. Open an H5P activity that has tracking enabled and the user needs to enter more than one answer (e.g. in our master site > H5P reports > H5P packages with tracking and grading > Fill the blanks [FIRST ATTEMPT] ). Enter some data in the activity but don't finish it (don't answer all the questions). Leave the activity and open it again. Check that all the data you entered has been saved. Now enter some more data without finishing it (if there's only 1 answer left to finish the attempt, just finish it and start again). After entering the data, wait the number of seconds you specified as admin in "Save state frequency". I recommend waiting a few more seconds to be sure that data has been sent to the server. Kill the app, start it again and open the same activity again.  Check that all the data you entered has been saved. Test prefetch Login as a student in a site with save state enabled. Go to course downloads and prefetch an H5P activity that has some data saved (e.g. if you followed the testing instructions, the activity used in step 9 of the online test should have an unfinished attempt). Go offline and open the activity. Check that the saved data is loaded, you don't need to start over. Test offline Login as a student in a site with save state enabled. Open an H5P activity that has tracking enabled and the user needs to enter more than one answer (e.g. in our master site > H5P reports > H5P packages with tracking and grading > Fill the blanks [FIRST ATTEMPT] ). Go offline and enter some data in the activity but don't finish it (don't answer all the questions). Leave the activity and open it again. Check that all the data you entered has been saved. You should see a message saying that the activity has offline data. To synchronize the data, you have 2 options: Go online, open the module info and click Synchronize, OR Leave the activity, go online and open it again. Check that the package displays the data you entered in offline and the message saying that there is offline data no longer appears. Now go offline again and enter some data in the activity but don't finish it (don't answer all the questions). If there is only 1 answer left, please finish the attempt and restart it in online first. In browser in another device, open the same activity with the same user and enter some data (it can be the same as the one you entered in the app or different, it doesn't matter). After entering the data, leave the activity to make sure it has been saved. In the app, go online and synchronize. Check that the offline data has been discarded and you see the data you entered in the other device.
    • MOODLE_401_STABLE
    • MOODLE_402_STABLE
    • Moodle App 4.2.0

          dpalou Dani Palou
          dpalou Dani Palou
          Pau Ferrer Pau Ferrer
          Isabel Renedo Rouco Isabel Renedo Rouco
          Votes:
          0 Vote for this issue
          Watchers:
          5 Start watching this issue

            Created:
            Updated:
            Resolved:

              Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.