Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17933 Moodle 4.3 QA
  3. MDLQA-18216

CLONE - Quiz user attempt should be autosaved after specified time


    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • Moodle 4.3
    • Moodle 4.3
    • Quiz, Student, Teacher
    • None


      1. Set "Auto-save delay" to 10 seconds (under Site administration ► Plugins ► Activity modules ► Quiz)
      2. Open Network tab to ensure autosave ajax call works as expected.

      Test steps (should be repeated in Firefox, Chrome, IE, Safari)

      1. As a teacher create a quiz with one of each sort of question in (within reason).
      2. Attempt the quiz as a student.
      3. Do some input into one or more of the questions. After the configured delay after your first change, there should be an Ajax request to the server, to save your changes.
      4. Navigate away from the quiz by clicking the 'Home' link, and then clicking 'Leave page' in the warning dialogue. (Or, if you prefer, kill your web browser)
      5. Really you need to repeat 4. for each type of input (text box, HTML editor, radio button, checkbox, dropdown menu, drag-and-drop)
      6. Navigate back to the quiz and continue attempt. Verify that the data that was autosaved is still there.
      7. Change some input again, and then click next, either before or after the autosave happens. In both cases it should just work as it has always worked before autosave was implemented.
      8. Change some data, and try to click next during the gap between the 'Doing a save' and 'Save completed' log messages. Go back to the page you were on, and verify that the outcome of that is sensible.
      9. Set a time-limit on your quiz. Wait until time has nearly expired and change something. It should not be auto-saved. (More specifically, if you set autosaveperiod to 10 seconds as recommended above, then there should be no auto-saves during the last 20 seconds.)

        1. screenshot-1.png
          90 kB
        2. screenshot-2.png
          36 kB
        3. screenshot-3.png
          10 kB
        4. screenshot-4.png
          27 kB

            laurent.david@moodle.com Laurent David
            0 Vote for this issue
            1 Start watching this issue


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