-
Functional Test
-
Minor
-
None
-
Original - DO NOT REPORT TEST RESULTS HERE
-
None
This test requires admin access. If you would like to use the QA testing site for running the test, please see the QA testing guide for details of how to request admin access. Begin just after the hourly reset to give yourself plenty of time to complete the test!
Test preparation:
- Log in as admin and go to Site administration / Server / Session handling.
- Set sessiontimeout to 60 seconds and sessiontimeoutwarning to 40 seconds and save changes.
Note: There is not much time between the steps in this test and if you wait too long before extending the session, you may be logged out!
Case 1
This test requires you to wait 20 seconds which is the value of the first warning time (sessiontimeout - sessiontimeoutwarning).
The idea is to test that you are shown the extend session dialogue after 20 seconds, and that you extend the session. Waiting a further 10-15 seconds confirms that the session was extended but without causing the extend dialogue to be shown for a second time.
- Log in as a student
- Wait ~20 seconds
- Confirm that the "No recent activity" modal appears
- Click on the "Extend session" button
- Confirm that the modal closes
- Wait a further ~10 seconds
- Navigate to another page in Moodle
- Confirm that you had not been logged out
Case 2
This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.
The idea is to test that you are shown the extend session dialogue after 20 seconds, and you cancel the warning. Session expired dialogue is shown after ~40 seconds of extend dialogue.
- Log in as a student
- Wait ~20 seconds
- Confirm that the "No recent activity" modal appears
- Click on the "Cancel" button
- Confirm that the modal closes*
- Wait further ~40 seconds
- Confirm that the "Session expired" modal appears
Case 3
This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.
The idea is to test that you are shown the extend dialogue after 20 seconds, and there are no interactions. Session expired dialogue is shown after ~40 seconds of extend dialogue.
- Log in as a student
- Wait ~20 seconds
- Confirm that the "No recent activity" modal appears
- Wait further ~40 seconds
- Confirm that the "No recent activity" modal disappears
- Confirm that the "Session expired" modal appears
Case 4
This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.
The idea is to test that you are shown the Session expired dialogue, and you are redirected to the login page.
- Log in as a student
- Wait ~20 seconds
- Confirm that the "No recent activity" modal appears
- Wait further ~40 seconds
- Confirm that the "No recent activity" modal disappears
- Confirm that the "Session expired" modal appears
- Click on the "Log in again" button
- Confirm that you are redirected to login page
Case 5
This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.
The idea is to test that you are shown the Session expired dialogue, and you are redirected to the login page automatically by navigating to another page in Moodle.
- Log in as a student
- Wait ~20 seconds
- Confirm that the "No recent activity" modal appears
- Wait further ~40 seconds
- Confirm that the "No recent activity" modal disappears
- Confirm that the "Session expired" modal appears
- Navigate to page within Moodle
- Confirm that you are redirected to login page