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

Question bank Activity: mod_qbank

    XMLWordPrintable

Details

    • New Feature
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 4.0, 4.1, 4.2.1
    • None
    • Questions, Quiz
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • master_MDL-71378-mod_qbank
    • Hide

      A. Fresh installation (Moodle 4.1)

      Setup

      1. Create a fresh install of Moodle with this patch.
      2. Confirm that the installation completes successfully.
      3. Log in as an admin
      4. Set up a course
      5. Create a question bank activity
      6. Create some questions in the default category, please use different types of questions to get a better feeling of the patch.
      7. Add a quiz with at least 3-4 questions
      8. Create a new user
      9. Enroll that user as a student in that course

      Testing scenario A.1. General question information

      1. Edit the questions created during setup, to create some versions for those questions
      2. Save changes and go to the question bank activity
      3. Confirm:
        1. All the question information is available on the question bank page
        2. All the question information is available on the question history page

      Testing scenario A.2. Quiz attept using questions from question bank activity

      1. Create a new question bank activity
      2. Add some questions to it
      3. Setup a quiz
      4. Add those questions to the quiz
      5. Use the created category as a random question
      6. Change the versions for the questions in the regular questions in the quiz
      7. Login as student
      8. Attempt the quiz
      9. Confirm
        1. Quiz uses the questions selected in an attempt
        2. Random question picks up the questions from the selected question category

      Testing scenario A3. Question data in restore (same site)

      1. Backup the course and save the .mbz file on the local device
      2. Restore the previous backup file to the same site as a new course
      3. Confirm:
        1. The restored questions are available in question bank activity and working as expected
        2. The restored quiz has all the questions
        3. The restored quiz has all the attempts
        4. All the files are available in the restores questions
        5. The preview of the questions is working as expected

      Testing scenario A.4. Question data in restore (different site)

      1. Setup a new Moodle 4.1 site
      2. Restore the previous backup course (created in scenario A3) on that site
      3. Confirm:
        1. The restored questions are available in question bank activity and working as expected
        2. The restored quiz has all the questions
        3. The restored quiz has all the attempts
        4. All the files are available in the restores questions
        5. The preview of the questions is working as expected

       

      B. Migration from Moodle 3.11

      Setup

      1. Setup a Moodle 3.11 site
      2. Log in as an admin
      3. Set up a course and access to the question bank
      4. Create some questions in the course category, please use different types of questions to get a better feeling of the patch.
      5. Add a quiz with at least 3-4 questions
      6. Create a new user
      7. Enroll that user as a student in that course
      8. Attempt the quiz
      9. Backup the course (including user data)
      10. Download and save the file on the local device

      Testing scenario B.1. Migration of questions

      1. Change the codebase to 4.1 with this patch applied
      2. Upgrade the site.
      3. Go to the quiz and check the questions and any attempts made for those questions.
      4. Confirm:
        1. That all the questions are available in the question bank activity
        2. All the question data including the files added to the questions are available
        3. The preview of the questions is working as expected
        4. All the questions in the quiz are available and the preview is working from the quiz
        5. The previous attempts are available and they can be viewed as expected
      5. Log out and log in as the student
      6. Navigate to the course
      7. Re-attempt the quiz
      8. Confirm:
        1. The quiz is working as expected without any issues or error
      9. Log out and log in as an admin
      10. Create some versions of the questions
      11. Change to those versions from the quiz
      12. Logout and log in as a student
      13. Start a new attempt of the quiz again (if the previous attempt wasn't finished, you should finish it before starting a new attempt; otherwise, the new question versions won't be updated)
      14. Confirm:
        1. That the newly selected versions of the quiz are considered in this attempt
        2. All the questions are working as expected without any issue
        3. Any image or files are available to access

      Testing scenario B.2. Legacy question data migrates in restore

      1. Standup a fresh Moodle 4.1 site
      2. Restore the Moodle 3.11 course backup on that site
      3. Confirm:
        1. The restored questions are available in a question bank activity and working as expected
        2. The restored quiz has all the questions
        3. The restored quiz has all the attempts
        4. All the files are available in the restores questions
        5. The preview of the questions is working as expected
      Show
      A. Fresh installation (Moodle 4.1) Setup Create a fresh install of Moodle with this patch. Confirm that the installation completes successfully. Log in as an admin Set up a course Create a question bank activity Create some questions in the default category, please use different types of questions to get a better feeling of the patch. Add a quiz with at least 3-4 questions Create a new user Enroll that user as a student in that course Testing scenario A.1. General question information Edit the questions created during setup, to create some versions for those questions Save changes and go to the question bank activity Confirm : All the question information is available on the question bank page All the question information is available on the question history page Testing scenario A.2. Quiz attept using questions from question bank activity Create a new question bank activity Add some questions to it Setup a quiz Add those questions to the quiz Use the created category as a random question Change the versions for the questions in the regular questions in the quiz Login as student Attempt the quiz Confirm Quiz uses the questions selected in an attempt Random question picks up the questions from the selected question category Testing scenario A3. Question data in restore (same site) Backup the course and save the .mbz file on the local device Restore the previous backup file to the same site as a new course Confirm : The restored questions are available in question bank activity and working as expected The restored quiz has all the questions The restored quiz has all the attempts All the files are available in the restores questions The preview of the questions is working as expected Testing scenario A.4. Question data in restore (different site) Setup a new Moodle 4.1 site Restore the previous backup course (created in scenario A3) on that site Confirm : The restored questions are available in question bank activity and working as expected The restored quiz has all the questions The restored quiz has all the attempts All the files are available in the restores questions The preview of the questions is working as expected   B. Migration from Moodle 3.11 Setup Setup a Moodle 3.11 site Log in as an admin Set up a course and access to the question bank Create some questions in the course category, please use different types of questions to get a better feeling of the patch. Add a quiz with at least 3-4 questions Create a new user Enroll that user as a student in that course Attempt the quiz Backup the course (including user data) Download and save the file on the local device Testing scenario B.1. Migration of questions Change the codebase to 4.1 with this patch applied Upgrade the site. Go to the quiz and check the questions and any attempts made for those questions. Confirm : That all the questions are available in the question bank activity All the question data including the files added to the questions are available The preview of the questions is working as expected All the questions in the quiz are available and the preview is working from the quiz The previous attempts are available and they can be viewed as expected Log out and log in as the student Navigate to the course Re-attempt the quiz Confirm : The quiz is working as expected without any issues or error Log out and log in as an admin Create some versions of the questions Change to those versions from the quiz Logout and log in as a student Start a new attempt of the quiz again (if the previous attempt wasn't finished, you should finish it before starting a new attempt; otherwise, the new question versions won't be updated) Confirm : That the newly selected versions of the quiz are considered in this attempt All the questions are working as expected without any issue Any image or files are available to access Testing scenario B.2. Legacy question data migrates in restore Standup a fresh Moodle 4.1 site Restore the Moodle 3.11 course backup on that site Confirm : The restored questions are available in a question bank activity and working as expected The restored quiz has all the questions The restored quiz has all the attempts All the files are available in the restores questions The preview of the questions is working as expected

    Description

      Create a dedicated activity for the question bank for Moodle 4.1. This question bank activity (mod_qbank) will allow question banks to be managed and shared like any other activity. One advantage of this is there can be many separate question banks made available at category level to be shared amongst child courses.

      In Moodle 4.1 Course and Category question banks will be replaced by dedicated mod_bank instances. This patch will handle the migration of the existing question bank structure. During the upgrade to Moodle 4.0 mod_qbank will create courses and mod_qbank instances at category level where the questions from category level question banks will be migrated into.  At course level mod_qbank will create instances of itself and existing course level questions will be migrated into them.

      Modules (like quiz) will still be able to implement their own question banks. For mod_quiz specifically the quiz level question bank will still exist and will be able to be used largely as prior to Moodle 4.1

      Attachments

        1. Activity help popup.png
          Activity help popup.png
          40 kB
        2. intermediate_icon.jpg
          intermediate_icon.jpg
          3 kB
        3. new_icons.jpg
          new_icons.jpg
          46 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mattp@catalyst-au.net Matt Porritt
              Tim Hunt Tim Hunt
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              11 Vote for this issue
              Watchers:
              39 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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