-
Functional Test
-
Major
-
Moodle 4.3
This is an exploratory test of a new feature or improvement, so please feel free to try anything you like and not just the test steps!
Test scenario 1 - Apply filters in question bank view
- Go to 'Activity examples' course on the QA site
- Navigate back to the question bank
- Remove the default category from the Type of select selection in the question bank filter
- "Default for questions" in the category filter
- Click apply filters
- Confirm that the 8 questions of that category are visible
- Confirm that other questions from different categories not visible
- Change the selection to "Top for activity examples"
- Click apply filters
- Confirm that no questions are visible
- Check "also show questions from subcategories"
- Click apply filters
- Confirm that questions from all child categories are visible
- Press "Add condition"
- Set the new filter's "Select" menu to "Tag"
- Add the tag "Drag and drop" to the Tag filter
- Click apply filters
- Confirm that you only see the 2 questions tagged "drag and drop"
- Set the "Match" parameter of the tag filter to "None"
- Click apply filters
- Confirm that you only see the questions with tags other than "drag and drop"
- Set the "Match" parameter of the tag filter to "All"
- Add the tag "cloze" to the Tag filter
- Click apply filters
- Confirm that you see no questions
- Set the "Match" parameter of the tag filter to "Any"
- Click apply filters
- Confirm that you see all questions tagged with either "drag and drop" or "cloze"
- Press "Add condition"
- Set the new filter's "Select" menu to "Show question text in the question list?"
- Set the question text filter to "Yes"
- Click apply filters
- Confirm that you see the question text below each question
- Set the question text filter to "No"
- Click apply filters
- Confirm that you don't see the question text below each question
- Reload the page
- Confirm that the existing filters are re-applied
- Click "Clear Filters"
- Add the following filter conditions:
- Category: 3.0 new question types
- Show hidden questions: No
- Click "Apply filters"
- Delete the question "Recreate the river thames"
- You should not see the deleted question
- Set the "Show hidden questions" filter to "Yes"
- Click "Apply filters"
- You should now see the deleted question as well
Test scenario 2 - Adding questions to a quiz from question bank
- Go to the above course and create a quiz
- Go to Quiz > Questions > Add question "from question bank"
- Set the Category filter to "Default for questions"
- Click apply filters
- Select questions
- Click on "Add selected questions to the quiz"
- Expected: those question are added to the quiz
Test scenario 3 - Adding random questions to a quiz
- Create another Quiz
- Go to Quiz > Questions > Add question using "a random question"
- Set the Category filter to "Default for questions"
- Click apply filters
- Scroll down and select number of random question
- Click on "Add random question"
- Expected: random questions are added to the quiz
Test scenario 4 - filters persist via URL
- In the 'Activity examples' course, go to the question bank
- Apply a set of filters and take a note of their values
- Refresh the page
- The same filters should be re-applied
- Turn editing mode on and off
- The same filters should be re-applied each time
- Copy the URL and open it in a new browser, logging in if necessary
- The same filters should be re-applied
- is a QA test written for
-
MDL-72321 Better searching/filtering in the question bank, so more flexible randomisation in quizzes
- Closed