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

Behat 'Given user "student1" has attempted "Quiz 1" with responses:' step should be able to do multiple attempt

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76375-401
    • MDL-76375-master
    • Hide

      Covered by behat.

       

      The only idea I have to test this patch is to have a Behat test

          # Add some attempts
          And user "student1" has attempted "Quiz 1" with responses:
            | slot | response |
            | 1    | True     |
            | 2    | False    |
          And user "student2" has attempted "Quiz 1" with responses:
            | slot | response |
            | 1    | True     |
            | 2    | True     |
          # Add a second attempt by student1
          And user "student1" has attempted "Quiz 1" with responses:
            | slot | response |
            | 1    | False    |
            | 2    | False    |
      

      Show
      Covered by behat.   The only idea I have to test this patch is to have a Behat test     # Add some attempts     And user "student1" has attempted "Quiz 1" with responses:       | slot | response |       | 1    | True     |       | 2    | False    |     And user "student2" has attempted "Quiz 1" with responses:       | slot | response |       | 1    | True     |       | 2    | True     |     # Add a second attempt by student1     And user "student1" has attempted "Quiz 1" with responses:       | slot | response |       | 1    | False    |       | 2    | False    |

      The Behat step

      And user "student1" has re-attempted "Quiz 1" with responses:

      can only provide one attempt per student.
      We should aim at let it create multiple attempts (actually it says back:

      Coding error detected, it must be fixed by a programmer: mod_quiz_generator is currently limited to only be able to create one attempt for each user. (This should be fixed.)
      )

            lucaboesch Luca Bösch
            lucaboesch Luca Bösch
            Stephan Robotta Stephan Robotta
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 20 minutes
                1h 20m

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