-
Functional Test
-
Major
-
Moodle 4.1
This QA tests requires a server so you can create a fresh moodle install (current).
Setup
- Create a fresh install of Moodle.
- Confirm that installation completes successfully.
- 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 new user
- Enrol that user as a student in that course
Testing scenario A.1. Version of questions
- Edit the questions created during setup, to create some versions for those questions
- Save changes and go to the edit page again
- Confirm:
- That you can see Version 2 instead of version 1
- Every time a question is edited, a new version is created
Testing scenario A.2. Quiz considers the version of questions
- Create a new question category
- 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 quiz
- Login as student
- Attempt the quiz
- Confirm
- Quiz uses the version 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 in the same site as a new course
- 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
Testing scenario A.4. Question data in restore (different site)
- Setup a new site
- Restore the previous backup course (created in scenario A3) 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
- is a QA test written for
-
MDL-71696 Add question versions
- Closed