Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-15457 Moodle 3.11 QA
  3. MDLQA-15967

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

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Passed
    • Priority: Minor
    • Affects Version/s: Moodle 3.11
    • Fix Version/s: Moodle 3.11
    • Component/s: User
    • Labels:

      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

        1. case1.1.png
          case1.1.png
          578 kB
        2. case1.2.png
          case1.2.png
          547 kB
        3. case1.3.png
          case1.3.png
          200 kB
        4. case2.1.png
          case2.1.png
          598 kB
        5. case2.2.png
          case2.2.png
          547 kB
        6. case2.3.png
          case2.3.png
          547 kB
        7. case3.1.png
          case3.1.png
          600 kB
        8. case3.2.png
          case3.2.png
          550 kB
        9. case3.3.png
          case3.3.png
          549 kB
        10. case4.1.png
          case4.1.png
          600 kB
        11. case4.2.png
          case4.2.png
          549 kB
        12. case4.3.png
          case4.3.png
          549 kB
        13. case4.4.png
          case4.4.png
          91 kB
        14. case5.1.png
          case5.1.png
          597 kB
        15. case5.2.png
          case5.2.png
          547 kB
        16. case5.3.png
          case5.3.png
          547 kB
        17. case5.4.png
          case5.4.png
          165 kB
        18. Screenshot from 2021-04-22 09-31-18.png
          Screenshot from 2021-04-22 09-31-18.png
          180 kB
        19. Screenshot from 2021-04-22 09-31-49.png
          Screenshot from 2021-04-22 09-31-49.png
          178 kB
        20. Screenshot from 2021-04-22 09-36-21.png
          Screenshot from 2021-04-22 09-36-21.png
          185 kB
        21. Screenshot from 2021-04-22 09-36-49.png
          Screenshot from 2021-04-22 09-36-49.png
          183 kB
        22. Selection_063.png
          Selection_063.png
          27 kB

          Issue Links

            Activity

              People

              Assignee:
              chenlevy Chen Levy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: