Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-18442

Exploratory testing for quiz attempt improvements

    XMLWordPrintable

Details

    • Functional Test
    • Minor
    • None
    • Moodle 4.4
    • Questions, Quiz

    Description

      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!

      Pre-create attempts

      1. Create a course with some students and teacher enrolled.
      2. Log in as admin
      3. Create a quiz called "Test Quiz" with Timing > Open the quiz set to 5 minutes from now.
      4. Add a question to the quiz (doesn't matter what).
      5. 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
      6. Return to the quiz view page
        1. Confirm that you see an "Attempts: X"
      7. 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 "-".
      8. Set "Attempts from" to "Enrolled users who do not have a quiz attempt" and click "Show report"
        1. Confirm that no users are shown.
      9. 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
      10. Untick "Not started" from the list of attempt states and click "Show report"
        1. Confirm that no attempts are shown.
      11. 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"

      Review a submitted attempt

      1. Click "Submit all and finish" in the confirmation modal
        1. Confirm that you see the attempt review page
        2. Confirm that the attempt details table at the top of the page shows only the Started on, Completed on, Time taken and State rows, with the state "Submitted".
        3. Confirm that the message "This attempt has been submitted and is queued for grading. Please check back shortly to see grades and feedback." is displayed above the question.
        4. Confirm that the question is displayed with your answer in place, no marks or feedback, and your answer cannot be altered.
      2. Click "Finish review"
        1. Confirm that the quiz front page shows your attempt with state "Submitted", the submitted date, and "Not yet graded" for the Marks and Grade.

      Grade submitted attempts

      1. Run `php admin/cli/adhoc_task.php --classname='\mod_quiz\task\grade_submission'` to process the attempt.
      2. Click "Review" to return to the attempt review.
        1. Confirm that you now see the "Marks" and "Grade" rows in the summary table.
        2. Confirm that you no longer see the "queued for grading" message.
        3. Confirm that the question displays indicating whether the answer is correct, showing the marks awarded and any feedback is displayed.
      3. Log out.

      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 name and save changes.
      11. Go back to the "Results" tab.
        1. Confirm that there are no attempts listed as they have been deleted.
      12. Go to Site Administration > Server > Tasks > Scheduled tasks, find \mod_quiz\task\precreate_attempts, and click "Run now"
      13. Go back to the "Results" tab.
        1. Confirm that you see a list of attempts in "Not started" state.

      Attachments

        Issue Links

          Activity

            People

              lameze Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.