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

A teacher can set a quiz with a time limit

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Open
    • Priority: Critical
    • Affects Version/s: Original - DO NOT REPORT TEST RESULTS HERE
    • Fix Version/s: None
    • Component/s: Quiz, Student, Teacher
    • Labels:
      None

      Description

      1. Log in as a teacher, go to a course and create a quiz with time limit of 2 minutes and 'When time expires' to 'Open attempts are submitted automatically', then save changes.
      2. Add several questions to the quiz.
      3. Log out then log in as a student and attempt the quiz, answering at least one question, but not answering all the questions, then wait for the time left to reach zero.
      4. Verify that the attempt is submitted automatically and is listed as finished.
      5. Log out then log in as the teacher, update the quiz and change 'When time expires' to 'Attempts must be submitted before time expires, or they are not counted', then save changes.
      6. Log out then log in as a student and attempt the quiz, answering at least one question, but not answering all the questions, then immediately log out before the time left reaches zero. (Note that it is necessary to log out, otherwise the attempt will be submitted automatically.)
      7. Log in again as the student, then after the time has expired, go to the quiz.
      8. Verify that the attempt is listed as 'Never submitted'.
      9. Log out then log in as the teacher, update the quiz and change 'When time expires' to 'There is a grace period when open attempts can be submitted', set a submission grace period of say 1 minute then save changes.
      10. Log out then log in as a student and attempt the quiz, answering at least one question, but not answering all the questions, then wait for the time left to reach zero.
      11. Verify that a message is displayed saying 'This attempt is now overdue. It should already have been submitted. If you would like this quiz to be graded, you must submit it.'
      12. Click the button 'Submit all and finish'.
      13. Verify that the attempt is listed as finished.
      14. Attempt the quiz again, answering at least one question, but not answering all the questions, then wait for the time left to reach zero.
      15. Verify that a message is displayed saying 'This attempt is now overdue. It should already have been submitted. If you would like this quiz to be graded, you must submit it.'
      16. Wait for the grace period to expire then attempt to submit it.
      17. Verify that the attempt is listed as 'Never submitted'.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: