-
Functional Test
-
Critical
-
Moodle 4.1
-
None
- 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.
- Add several questions to the quiz.
- 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.
- Verify that the attempt is submitted automatically and is listed as finished.
- 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.
- 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.)
- Log in again as the student, then after the time has expired, go to the quiz.
- Verify that the attempt is listed as 'Never submitted'.
- 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.
- 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.
- 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.'
- Click the button 'Submit all and finish'.
- Verify that the attempt is listed as finished.
- Attempt the quiz again, answering at least one question, but not answering all the questions, then wait for the time left to reach zero.
- 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.'
- Wait for the grace period to expire then attempt to submit it.
- Verify that the attempt is listed as 'Never submitted'.