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

Quiz statistics report doesn't show chosen random questions

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Enrol 2 users as students
      3. Create and view a quiz
      4. Go to the question bank (edit cog > question bank)
      5. Create 5 questions in the default category for the course (it doesn't matter the type of question but I find true/false the easiest because you'll need to attempt the quiz).
      6. Edit the quiz and add a random question from the default course category (the one you added the 5 questions to above)
      7. Log in as each of the students and attempt the quiz
      8. Log in as admin
      9. View the quiz
      10. View the statistics report (edit cog > results > statistics)
      11. CONFIRM you see a row in the "Quiz structure analysis" table for the random question slot (Q# will likely be 1)
      12. CONFIRM you see some rows below that for each of the questions that were allocated during the attempts above (Q# will likely be 1.1, 1.2, 1.3... etc).
      Show
      Log in as admin Enrol 2 users as students Create and view a quiz Go to the question bank (edit cog > question bank) Create 5 questions in the default category for the course (it doesn't matter the type of question but I find true/false the easiest because you'll need to attempt the quiz). Edit the quiz and add a random question from the default course category (the one you added the 5 questions to above) Log in as each of the students and attempt the quiz Log in as admin View the quiz View the statistics report (edit cog > results > statistics) CONFIRM you see a row in the "Quiz structure analysis" table for the random question slot (Q# will likely be 1) CONFIRM you see some rows below that for each of the questions that were allocated during the attempts above (Q# will likely be 1.1, 1.2, 1.3... etc).
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-61950-master

      Description

      The quiz statistics report no longer shows the chosen questions for a random question slot when generating the table summary.

      The table should show the list of questions that were chosen for a random question slot in the quiz attempts (where the number of distinct questions allocated is < 9).

      To replicate:

      1. Log in as admin
      2. Enrol 2 users as students
      3. Create and view a quiz
      4. Go to the question bank (edit cog > question bank)
      5. Create 5 questions in the default category for the course (it doesn't matter the type of question but I find true/false the easiest because you'll need to attempt the quiz).
      6. Edit the quiz and add a random question from the default course category
      7. Log in as each of the students and attempt the quiz
      8. Log in as admin
      9. View the quiz
      10. View the statistics report (edit cog > results > statistics)
      11. You should see a row (Q# will likely be 1) for the random question slot
      12. You should see some rows below that for each of the questions that were allocated during the attempts above (Q# will likely be 1.1, 1.2, 1.3... etc).

      This is how the report should look:

      This is how it looks with the bug:

        Attachments

        1. actual.png
          actual.png
          60 kB
        2. Capture.PNG
          Capture.PNG
          46 kB
        3. expected.png
          expected.png
          95 kB

          Issue Links

            Activity

              People

              • Assignee:
                ryanwyllie Ryan Wyllie
                Reporter:
                ryanwyllie Ryan Wyllie
                Peer reviewer:
                Simey Lameze
                Integrator:
                Jun Pataleta
                Tester:
                Janelle Barcega
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours, 40 minutes
                  1d 2h 40m