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

Quiz review options: 'After the quiz is closed' should take precedence over 'Immediately after the attempt'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5, 3.1.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      This test is time-critical, you may need to adjust the times to what you can manage. When you set timeclose to about 10 minutes in the future, you need time to add one question to the quiz, make a quiz attempt, wait 2 minutes, then start a second attempt.

      1. Create a quiz. Attempts allowed: 2. How questions behave: Deferred feedback. Timeclose about 10 minutes in the future.
      2. Set the review options:
        • Immediately after the attempt: The attempt and Whether correct.
        • Later while the quiz is open: The attempt only.
        • After the quiz is closed: All turned on.
      3. Add one true-false question (qtype does not matter providing it is automatically graded). Ensure there is some general feedback.
      4. Attempt the quiz as a student. Answer the question, and Submit all and finish.
      5. Verify: you should see the review page, and whether the question was correct, but no your mark or the general feedback.
      6. Wait 2 minutes and reload the review page. Verify: you should no longer see whether you got the qestion right.
      7. Finish review and start a second attempt.
      8. Answer the question, but no not submit. Instead wait for the time to expire and the quiz be auto-submitted.
      9. Verify: you should be taken to the review page with all information visible.
      10. Go back and review the first attempt. Verify: you can now see all the information about this attempt.

      The first attempt verifies that the old behaviour is not broken. The second attempt verifies the changed behaviour is now correct.

      Show
      This test is time-critical, you may need to adjust the times to what you can manage. When you set timeclose to about 10 minutes in the future, you need time to add one question to the quiz, make a quiz attempt, wait 2 minutes, then start a second attempt. Create a quiz. Attempts allowed: 2. How questions behave: Deferred feedback. Timeclose about 10 minutes in the future. Set the review options: Immediately after the attempt: The attempt and Whether correct. Later while the quiz is open: The attempt only. After the quiz is closed: All turned on. Add one true-false question (qtype does not matter providing it is automatically graded). Ensure there is some general feedback. Attempt the quiz as a student. Answer the question, and Submit all and finish. Verify: you should see the review page, and whether the question was correct, but no your mark or the general feedback. Wait 2 minutes and reload the review page. Verify: you should no longer see whether you got the qestion right. Finish review and start a second attempt. Answer the question, but no not submit. Instead wait for the time to expire and the quiz be auto-submitted. Verify: you should be taken to the review page with all information visible. Go back and review the first attempt. Verify: you can now see all the information about this attempt. The first attempt verifies that the old behaviour is not broken. The second attempt verifies the changed behaviour is now correct.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      This problem only maifests itself in specific situations:

      You need a quiz where the 'After the quiz is closed' review options are different from the 'Immediately after the attempt' ones.

      Then you either need to be a teacher, and preview a quiz after the close date. Or, you need to be a student who submits their quiz less than 2 minutes from the close date. (E.g. if the timer submits it automatically for you right at the last second.)

      After the quiz is closed, you expect the 'After the quiz is closed' options to apply.

      The 'Immediately after the attempt' options are just a way to break down the time between submitting the quiz, and the close date (if relevant).

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Sam Marshall
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16