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

Users are alerted when their session is about to time out and when it has expired

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Open
    • Priority: Minor
    • Affects Version/s: Original - DO NOT REPORT TEST RESULTS HERE
    • Fix Version/s: None
    • Component/s: User
    • Labels:
      None

      Description

      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:

      1. Log in as admin and go to Site administration / Server / Session handling.
      2. 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.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Extend session" button
      5. Confirm that the modal closes
      6. Wait a further ~10 seconds
      7. Navigate to another page in Moodle
      8. 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.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Cancel" button
      5. Confirm that the modal closes*
      6. Wait further ~40 seconds
      7. 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.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. 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.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Click on the "Log in again" button
      8. 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.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Navigate to page within Moodle
      8. Confirm that you are redirected to login page

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: