Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-19376 Question bank improvements QA testing
  3. MDLQA-19699

CLONE - A teacher can select random quiz questions using tags

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • None
    • Moodle Qbank
    • Questions, Quiz, Tags
    • None

      This test requires a course to be created and a teacher and student enrolled in the course.

      1. As the teacher go to the course and select "Question banks" in the More menu.
      2. Click "Create default question bank" and access it.
      3. Select "Categories" in the drop down and then click "Add category".
      4. Create 2 question child categories cat1 and cat2 setting the parent category to "Top for course x course question bank"
      5. Create 2 true/false questions in each of the cat1 and cat2 categories (name them cat1-q1cat1-q2cat2-q1cat2-q2) (Also for simplicity of the test, enter the question text the same as the question name).
      6. In the question bank, where you see the list of the questions you created, click on 'Edit' and then 'manage tags'. Tag the questions with t1 and t2 like this:
        cat1-q1 --> t1
        cat1-q2 --> t2
        cat2-q1 --> t1
        cat2-q2 --> t2
      7. Create a quiz activity in the course and name that Quiz1
      8. Go to "Questions" page and click "Add > a random question"
      9. In the "Add a random question..." modal click "Switch bank" and select the default course question bank created on step 2.
      10. In the category autocomplete element, set the question to "cat1"
      11. Add a "random" question in the quiz from cat1. set the tag to t1
      12. Create another "random" question in the quiz from cat2. set the tag to t2
      13. Attempt the quiz as a student
      14. Confirm that the first question is cat1-q1
      15. Confirm that the second question is cat2-q2
      16. Create another quiz in the course and name that Quiz2
      17. Create a "random" question in the new quiz you just created (Quiz2) from cat1. Leave the tags field empty.
      18. Create another "random" question in Quiz2 from the "Top for course..." question category (the one that contains cat1 and cat2). Set the tag to t1.
      19. Log out as the teacher and log in with the student account.
      20. Attempt the quiz as a student.
      21. Confirm that the first question is either cat1-q1 or cat1-q2
      22. Confirm that the second question is either cat1-q1 or cat2-q1
      23. Confirm that the 2 questions that the students see in the exam are not the same

        1. 19699 test - fail getting the TOP.png
          19699 test - fail getting the TOP.png
          44 kB
        2. 19699 test - result 1.png
          19699 test - result 1.png
          47 kB
        3. 19699 test - setup 1.png
          19699 test - setup 1.png
          36 kB
        4. MDLQA-19699 step 11.png
          MDLQA-19699 step 11.png
          67 kB
        5. MDLQA-19699 step 12.png
          MDLQA-19699 step 12.png
          81 kB
        6. MDLQA-19699 step 15.png
          MDLQA-19699 step 15.png
          27 kB
        7. MDLQA-19699 step 16.png
          MDLQA-19699 step 16.png
          30 kB
        8. MDLQA-19699 step 17.png
          MDLQA-19699 step 17.png
          85 kB
        9. MDLQA-19699 step 5.png
          MDLQA-19699 step 5.png
          81 kB
        10. MDLQA-19699 step 6.1.png
          MDLQA-19699 step 6.1.png
          92 kB
        11. MDLQA-19699 step 6.png
          MDLQA-19699 step 6.png
          77 kB
        12. MDLQA-19699 step 8.png
          MDLQA-19699 step 8.png
          26 kB
        13. MDLQA-19699 step 9.png
          MDLQA-19699 step 9.png
          30 kB

            lameze Simey Lameze
            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.