Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-19836 Moodle 5.0 QA
  3. MDLQA-20230

CLONE - Backup questions from a previous version is restored in the current moodle

XMLWordPrintable

      This QA test requires a local server so a previous moodle version can be installed

      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. Add a quiz with at least 3-4 questions, please use different types of questions to get a better feeling of the patch.
      5. Create a quiz
      6. Add the created questions to the quiz
      7. Create a new user
      8. Enrol that user as a student in that course
      9. Attempt the quiz
      10. Backup the course (include user data)
      11. Download and save the file in the local device

      Testing scenario B.1. Migration of questions

      1. Change the codebase to the latest Moodle version
      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
        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 preview is working from quiz
        5. The previous attempts are available and they can be viewed as expected
      5. Log out and login as the student
      6. Navigate to the course
      7. Re-attempt the quiz
      8. Confirm:
        1. The quiz is working as expected without any issue or error
      9. Log out and login as an admin
      10. Create some versions of the questions
      11. Change to those versions from the quiz
      12. Logout and login 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 in 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 site with the latest version
      2. Restore the Moodle 3.11 course backup on that site
      3. Confirm:
        1. The restored questions are available 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. Preview of the questions are working as expected

        1. 20230 qa - backup from 3.11.png
          398 kB
          Andrew Gosali
        2. 20230 qa - questions data remained.png
          311 kB
          Andrew Gosali
        3. 20230 qa - questions preview works.png
          209 kB
          Andrew Gosali
        4. 20230 qa - questions remained in question bank.png
          431 kB
          Andrew Gosali
        5. 20230 qa - questions remained in quiz.png
          398 kB
          Andrew Gosali
        6. 20230 qa - quiz attempt remained.png
          326 kB
          Andrew Gosali
        7. 20230 qa - quiz preview works.png
          268 kB
          Andrew Gosali
        8. 20230 qa - quiz version 2 completed.png
          278 kB
          Andrew Gosali
        9. 20230 qa - quiz version 2 images.png
          332 kB
          Andrew Gosali
        10. 20230 qa - quiz version 2 visible.png
          55 kB
          Andrew Gosali
        11. 20230 qa - restored attempt.png
          140 kB
          Andrew Gosali
        12. 20230 qa - restored question.png
          77 kB
          Andrew Gosali
        13. 20230 qa - restored questions.png
          183 kB
          Andrew Gosali
        14. 20230 qa - restored quiz.png
          158 kB
          Andrew Gosali
        15. 20230 qa - restored quiz preview.png
          97 kB
          Andrew Gosali
        16. 20230 qa - student reattempt.png
          280 kB
          Andrew Gosali
        17. 20230 qa - upgrade 3.11 to 4.3.png
          218 kB
          Andrew Gosali
        18. 20230 qa - upgrade 4.3 to main.png
          295 kB
          Andrew Gosali

            andrew.gosali@moodle.com Andrew Gosali
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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