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

Quiz "Try another question like this one" repeats random questions too often

    XMLWordPrintable

Details

    • MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • Hide

      Run the behat test (mod/quiz/tests/behat/attempt_redo_questions.feature:121) several times, to ensure that it passes consistently. (Before the fix, it would only pass 50% of the time.)

      Show
      Run the behat test (mod/quiz/tests/behat/attempt_redo_questions.feature:121) several times, to ensure that it passes consistently. (Before the fix, it would only pass 50% of the time.)

    Description

      Steps to reproduce:

      1. Create a category in the question bank called Q1questions.
      2. In that category create two questions, Q1a and Q1b that you can tell apart.
      3. Create a quiz where question 1 is a random choice from that category.
      4. Ensure the quiz setting "Students may redo another version of any finished question" is on (which requires something like "How questions behave: Immediate feedback".
      5. Attempt the quiz as a student.
      6. Answer the question and "Check" it.
      7. Click the "Try another question like this one"

      Expected result: you should now see the other question.

      Actual result: it is a 50-50 chance which question you see.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Simey Lameze Simey Lameze
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 5 minutes
                  2h 5m

                  Clockify

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