Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25740

Add a configuration options to omit summary page of the quiz if all questions are answered

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0, 2.2
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Testing instructions:
      NOTE: when installing this patch you must go to the "Site administration"->"Notifications" to perform quiz upgrade before attempting the tests below.
      Browser`s pop-up window.
      • Create a new course
      • Add a quiz activity with "Extra restrictions on attempts"->"Browser security" as "none"
      • Set any value of "Attempts allowed" (not unlimited).
      • Go to the created quiz and choose "Edit quiz".
      • Set "Show submit button on" as "Every attempt page".
      • Add any questions and separate pages arbitrarily.
      • Attempt created quiz by clicking "Attempt quiz now" button.
      • Make sure that confirming start pop-up window doesn`t cause any browser`s warnings.
      Test 1.
      Enter answers to some questions during quiz attempt and
      1) try to close current browser`s tab and make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup.
      2) Click any link on the page (for example "Quiz Administration -> Edit settings") and make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup.
      3) Try to change address line and press "Enter". Make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup.
      4) Try to change question in the "Quiz navigation" and make sure that question changes without browser`s warning popup.
      5) Click "Next" button and make sure that page changed without browser`s warning popup.
      6) Click "Submit all and finish". Confirm pop-up window and make sure that attempt was finished without browsers warning popup.
      7) Start the attempt again and click next until summary page. Click "Submit all and finish". Confirm pop-up window and make sure that attempt was finished without browser`s warning popup.
      8) Click "Submit all and finish". Click "Cancel" in the confirmation pop-up window. Try to close current browser`s tab and make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup.
      Test 2.
      Edit quiz settings "Extra restrictions on attempts"->"Browser security" as "Full screen pop-up with some JavaScript security" and repeat all steps from Test 1 except steps 2) and 3). Make sure that all actions give the same effect.
      New option for "submit all and finish" button location.
      • Create a new course
      • Add a quiz activity with "Extra restrictions on attempts"->"Browser security" as "none".
      • Set any value of "Attempts allowed" (not unlimited).
      • Go to the created quiz and choose "Edit quiz".
      • Add any questions and separate pages arbitrarily to create more than one page.
      Test 1.
      1) Set "Show submit button on" as "Every attempt page" in quiz "Edit settings" -> "Layout".
      2) Start new quiz attempt.
      3) Ensure that all pages with questions and summary page contain "submit all and finish" button at the end.
      Test 2.
      1) Set "Show submit button on" as "Last attempt page and summary page" in quiz "Edit settings" -> "Layout".
      2) Start new quiz attempt.
      3) Ensure that only last quiz attempt page with questions and summary page contains "submit all and finish" button.
      Test 3.
      1) Set "Show submit button on" as "Only summary page" in "Edit settings" -> "Layout".
      2) Start new quiz attempt.
      3) Ensure that only summary page contains "submit all and finish" button.
      Test 4.
      1) Go to "Site administration">"Plugins">"Activity modules"->"Quiz" and set "Show submit all button on" as advanced.
      2) Ensure that "Show submit button on" option in quiz settings can be used after "Show more" clicking.
      Test 5.
      1) Go to "Site administration">"Plugins">"Activity modules"->"Quiz" and set "Last attempt page and summary page" value of the list as default.
      2) Create a new quiz and ensure that on quiz editing form "Show submit button on" has deafult "Last attempt page and summary page" value .
      Test 6.
      1) Set any non default value of "Show submit button on" and create backup of this quiz.
      2) Restore quiz and ensure that the value of "Show submit button on" option was not lost.

      Show
      Testing instructions: NOTE: when installing this patch you must go to the "Site administration"->"Notifications" to perform quiz upgrade before attempting the tests below. Browser`s pop-up window. • Create a new course • Add a quiz activity with "Extra restrictions on attempts"->"Browser security" as "none" • Set any value of "Attempts allowed" (not unlimited). • Go to the created quiz and choose "Edit quiz". • Set "Show submit button on" as "Every attempt page". • Add any questions and separate pages arbitrarily. • Attempt created quiz by clicking "Attempt quiz now" button. • Make sure that confirming start pop-up window doesn`t cause any browser`s warnings. Test 1. Enter answers to some questions during quiz attempt and 1) try to close current browser`s tab and make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup. 2) Click any link on the page (for example "Quiz Administration -> Edit settings") and make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup. 3) Try to change address line and press "Enter". Make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup. 4) Try to change question in the "Quiz navigation" and make sure that question changes without browser`s warning popup. 5) Click "Next" button and make sure that page changed without browser`s warning popup. 6) Click "Submit all and finish". Confirm pop-up window and make sure that attempt was finished without browsers warning popup. 7) Start the attempt again and click next until summary page. Click "Submit all and finish". Confirm pop-up window and make sure that attempt was finished without browser`s warning popup. 8) Click "Submit all and finish". Click "Cancel" in the confirmation pop-up window. Try to close current browser`s tab and make sure you see a browser`s warning popup that you are going to lose you data. Press cancel in the popup. Test 2. Edit quiz settings "Extra restrictions on attempts"->"Browser security" as "Full screen pop-up with some JavaScript security" and repeat all steps from Test 1 except steps 2) and 3). Make sure that all actions give the same effect. New option for "submit all and finish" button location. • Create a new course • Add a quiz activity with "Extra restrictions on attempts"->"Browser security" as "none". • Set any value of "Attempts allowed" (not unlimited). • Go to the created quiz and choose "Edit quiz". • Add any questions and separate pages arbitrarily to create more than one page. Test 1. 1) Set "Show submit button on" as "Every attempt page" in quiz "Edit settings" -> "Layout". 2) Start new quiz attempt. 3) Ensure that all pages with questions and summary page contain "submit all and finish" button at the end. Test 2. 1) Set "Show submit button on" as "Last attempt page and summary page" in quiz "Edit settings" -> "Layout". 2) Start new quiz attempt. 3) Ensure that only last quiz attempt page with questions and summary page contains "submit all and finish" button. Test 3. 1) Set "Show submit button on" as "Only summary page" in "Edit settings" -> "Layout". 2) Start new quiz attempt. 3) Ensure that only summary page contains "submit all and finish" button. Test 4. 1) Go to "Site administration" >"Plugins" >"Activity modules"->"Quiz" and set "Show submit all button on" as advanced. 2) Ensure that "Show submit button on" option in quiz settings can be used after "Show more" clicking. Test 5. 1) Go to "Site administration" >"Plugins" >"Activity modules"->"Quiz" and set "Last attempt page and summary page" value of the list as default. 2) Create a new quiz and ensure that on quiz editing form "Show submit button on" has deafult "Last attempt page and summary page" value . Test 6. 1) Set any non default value of "Show submit button on" and create backup of this quiz. 2) Restore quiz and ensure that the value of "Show submit button on" option was not lost.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-25740-finish-button-to-attempt-pages

      Description

      As it was agreed in http://moodle.org/mod/forum/discuss.php?d=164176, it would be better to have options to turn summary page off if all questions are answered, since it is good for short-time one-page quizzes.

      It would also be good to have it defaults to off when one-page quiz is created and to on when many-page quiz is created.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: