-
Functional Test
-
Minor
-
Moodle 4.3
This QA test requires a local server so a previous moodle version can be installed
Setup
- Setup a Moodle 3.11 site
- Log in as an admin
- Set up a course and access to the question bank
- Add a quiz with at least 3-4 questions, please use different types of questions to get a better feeling of the patch.
- Create a quiz
- Add the created questions to the quiz
- Create a new user
- Enrol that user as a student in that course
- Attempt the quiz
- Backup the course (include user data)
- Download and save the file in the local device
Testing scenario B.1. Migration of questions
- Change the codebase to the latest Moodle version
- 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
- 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 preview is working from quiz
- The previous attempts are available and they can be viewed as expected
- Log out and login as the student
- Navigate to the course
- Re-attempt the quiz
- Confirm:
- The quiz is working as expected without any issue or error
- Log out and login as an admin
- Create some versions of the questions
- Change to those versions from the quiz
- Logout and login 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 in 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 site with the latest version
- Restore the Moodle 3.11 course backup on that site
- Confirm:
- The restored questions are available 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
- Preview of the questions are working as expected