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

CLONE - Exploratory testing for quiz attempt improvements

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • None
    • Moodle 5.0
    • Questions, Quiz

      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!

      Upgrade

      1. Before applying the changes, create a course and add a quiz
      2. Apply the changes and run the upgrade.
      3. During the upgrade, set the new "Precreate period" plugin setting to "5 hours".
      4. Go back to the quiz and access the settings page.
      5. Expand the "Timing" fieldset.
      6. Confirm that you do not see the "Pre-create attempts" setting.
      7. Go to Site Administration > Plugins > Activity modules > Quiz
      8. Uncheck the "Locked" checkbox for the "Precreate period" setting and save.
      9. Return to the quiz settings page.
      10. Expand the "Timing" fieldset.
      11. Confirm that you do not see the "Pre-create attempts" setting.
      12. Check "Enabled" on the "Open the quiz" setting
      13. Confirm that you do see the "Pre-create attempts" setting, and it is unchecked.
      14. Check "Pre-create attempts" and save settings
      15. Return to the quiz settings screen.
      16. Confirm that "Pre-create attempts" is checked.

      Pre-create attempts

      1. Create a course with some students and teacher enrolled.
      2. Log in as admin
      3. Go to Site Administration > Plugins > Activity modules > Quiz
      4. Set the new "Precreate period" plugin setting to "5 hours" and check "Locked", if not already, and save changes.
      5. Create a quiz called "Test Quiz" with Timing > Open the quiz set to 5 minutes from now.
      6. Add a question to the quiz (doesn't matter what).
      7. Go to Site Administration > Server > Tasks > Scheduled tasks, find \mod_quiz\task\precreate_attempts, and click "Run now"
        1. Confirm that you see the following output, where X is the number of enrolled students:
          Found 1 quizzes to create attempts for
          Creating attempts for Test Quiz
          Created X attempts for Test Quiz in Y seconds
          Created attempts for 1 quizzes
      8. Return to the quiz view page
        1. Confirm that you see an "Attempts: X"
      9. Follow the link to the list of attempts
        1. Confirm that the options at the top of the page are set to "Attempts from: enrolled users who have a quiz attempt" and "Attempts that are" has all 6 states selected.
        2. Confirm that the list of attempts contains an attempt for each enrolled student, in the state "Not started", with all subsequent columns containing "-".
      10. Set "Attempts from" to "Enrolled users who do not have a quiz attempt" and click "Show report"
        1. Confirm that no users are shown.
      11. Set "Attempts from" to "Enrolled users who have, or do not have a quiz attempt" and click "Show report"
        1. Confirm that the attempts are shown again
      12. Untick "Not started" from the list of attempt states and click "Show report"
        1. Confirm that no attempts are shown.
      13. Log out

      Start and submit a pre-created attempt

      1. Log in as a student
      2. If necessary, wait until the quiz open time is reached
      3. Go to the course and access the quiz
        1. Confirm you do not see any attempts listed on the page
        2. Confirm you see the "Attempt quiz" button
      4. Click "Attempt quiz"
        1. Confirm you are on this quiz page with the question displayed
      5. Click "Back"
        1. Confirm that the page lists 1 in-progress attempt
      6. Click "Continue attempt"
      7. Answer the question and click "Finish attempt..."
      8. Click "Submit all and finish"

      Re-create pre-created attempts when a question is edited

      1. Log in as admin
      2. Go back to "Test Quiz" and select the "Results" tab.
      3. Check all attempts in the list and select "Delete selected attempts"
      4. Go to the "Settings" tab.
      5. Set "Timing" > "Open the quiz" to 5 minutes from now and save changes.
      6. Go to Site Administration > Server > Tasks > Scheduled tasks, find \mod_quiz\task\precreate_attempts, and click "Run now"
      7. Return to the "Test Quiz" "Results" tab
        1. Confirm that you see a list of attempts in "Not started" state.
      8. Go to the "Question bank" tab.
      9. Pick one of the questions used in the quiz, select "Edit" > "Edit settings".
      10. Edit the question text and save changes.
      11. Log in as a student with a pre-created attempt.
      12. Wait for the quiz to open (if needed) and begin your attempt.
      13. Navigate to the edited question.
        1. Confirm that you see the edited question text, not the original text.

            tusefomal Ferran Recio
            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.